Advertisement
Guest User

Untitled

a guest
Oct 7th, 2022
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. pcall(require, "luarocks.loader")
  2.  
  3. --[[
  4. Special thanks to JavaCafe01
  5. __ ___ _____ ___ ___ _ __ ___ ___
  6. / _` \ \ /\ / / _ \/ __|/ _ \| '_ ` _ \ / _ \
  7. | (_| |\ V V / __/\__ \ (_) | | | | | | __/
  8. \__,_| \_/\_/ \___||___/\___/|_| |_| |_|\___|
  9. ]]
  10.  
  11. -- 📚 Library
  12.  
  13. local gears = require("gears")
  14. local gfs = require("gears.filesystem")
  15. local awful = require("awful")
  16. local beautiful = require("beautiful")
  17.  
  18. -- 🎨 Theme
  19.  
  20. beautiful.init(gfs.get_configuration_dir() .. "theme/theme.lua")
  21.  
  22. -- ✨ Bling
  23.  
  24. local bling = require("bling")
  25.  
  26. -- 🐣 Require
  27.  
  28. require("awful.autofocus")
  29. require("awful.hotkeys_popup.keys")
  30. require("config")
  31. require("ui")
  32.  
  33. -- 🚀 Launch Script
  34.  
  35. awful.spawn.with_shell("~/.config/awesome/autostart.sh")
  36.  
  37. -- 🛑 Signals And Rules
  38.  
  39. awful.rules.rules = {
  40.  
  41. { rule = { },
  42. properties = { border_width = beautiful.border_width,
  43. border_color = beautiful.border_normal,
  44. focus = awful.client.focus.filter,
  45. raise = true,
  46. keys = clientkeys,
  47. buttons = clientbuttons,
  48. screen = awful.screen.preferred,
  49. placement = awful.placement.no_overlap+awful.placement.no_offscreen
  50. }
  51. },
  52.  
  53. { rule_any = {
  54. }, properties = { floating = true }},
  55.  
  56. { rule_any = {type = { "normal", "dialog" }
  57. }, properties = { titlebars_enabled = true }
  58. },
  59. }
  60.  
  61. if awesome.startup_errors then
  62. naughty.notify({ preset = naughty.config.presets.critical,
  63. title = "Error occured",
  64. text = awesome.startup_errors })
  65. end
  66.  
  67. client.connect_signal("manage", function (c)
  68. end)
  69.  
  70. client.connect_signal("mouse::enter", function(c)
  71. c:emit_signal("request::activate", "mouse_enter", {raise = false})
  72. end)
  73.  
  74. client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
  75. client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
  76.  
  77. root.keys(globalkeys)
  78.  
  79. require("signals")
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement