diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-05-09 14:08:17 +0300 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-05-09 14:08:17 +0300 |
| commit | 4b03a8311272e99e9fe0c2c869928f60e54c2483 (patch) | |
| tree | ad8ad22855cce44586ac62aa87a5b4230d90bdcb /awesome | |
| parent | f90b78e354a71cfbc73ad17194dead598c5c820f (diff) | |
| download | dotfiles-4b03a8311272e99e9fe0c2c869928f60e54c2483.tar.xz dotfiles-4b03a8311272e99e9fe0c2c869928f60e54c2483.zip | |
Added user directory
Diffstat (limited to 'awesome')
| -rw-r--r-- | awesome/.config/awesome/rc.lua | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index c64d457..b94aaa1 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -26,7 +26,7 @@ local freedesktop = require("freedesktop") -- when client with a matching name is opened: local hotkeys_popup = require("awful.hotkeys_popup").widget require("awful.hotkeys_popup.keys") -local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility +local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility local dpi = require("beautiful.xresources").apply_dpi -- }}} @@ -337,25 +337,33 @@ globalkeys = my_table.join( -- alt + ... awful.key({ altkey, "Shift" }, "t", - function() awful.spawn.with_shell( - "variety -t && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&") end, + function() + awful.spawn.with_shell( + "variety -t && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&") + end, { description = "Pywal Wallpaper trash", group = "altkey" }), awful.key({ altkey, "Shift" }, "n", - function() awful.spawn.with_shell( - "variety -n && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&") end, + function() + awful.spawn.with_shell( + "variety -n && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&") + end, { description = "Pywal Wallpaper next", group = "altkey" }), awful.key({ altkey, "Shift" }, "u", function() awful.spawn.with_shell("wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&") end, { description = "Pywal Wallpaper update", group = "altkey" }), awful.key({ altkey, "Shift" }, "p", - function() awful.spawn.with_shell( - "variety -p && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&") end, + function() + awful.spawn.with_shell( + "variety -p && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&") + end, { description = "Pywal Wallpaper previous", group = "altkey" }), -- screenshots awful.key({}, "Print", - function() awful.util.spawn( - "scrot 'ArcoLinux-%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f $$(xdg-user-dir PICTURES)'") end, + function() + awful.util.spawn( + "scrot 'ArcoLinux-%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f $$(xdg-user-dir PICTURES)'") + end, { description = "Scrot", group = "screenshots" }), awful.key({ modkey1 }, "Print", function() awful.util.spawn("xfce4-screenshooter") end, { description = "Xfce screenshot", group = "screenshots" }), @@ -593,7 +601,7 @@ globalkeys = my_table.join( awful.key({}, "XF86AudioMute", function() os.execute(string.format("amixer -q set %s toggle", - beautiful.volume.togglechannel or beautiful.volume.channel)) + beautiful.volume.togglechannel or beautiful.volume.channel)) beautiful.volume.update() end), awful.key({ modkey1, "Shift" }, "m", @@ -775,7 +783,7 @@ awful.rules.rules = { { rule_any = { instance = { - "DTA", -- Firefox addon DownThemAll. + "DTA", -- Firefox addon DownThemAll. "copyq", -- Includes session name in class. }, class = { @@ -805,7 +813,7 @@ awful.rules.rules = { }, role = { "AlarmWindow", -- Thunderbird's calendar. - "pop-up", -- e.g. Google Chrome's (detached) Developer Tools. + "pop-up", -- e.g. Google Chrome's (detached) Developer Tools. "Preferences", "setup", } @@ -867,15 +875,15 @@ client.connect_signal("request::titlebars", function(c) awful.titlebar(c, { size = dpi(21) }):setup { { - -- Left + -- Left awful.titlebar.widget.iconwidget(c), buttons = buttons, layout = wibox.layout.fixed.horizontal }, { - -- Middle + -- Middle { - -- Title + -- Title align = "center", widget = awful.titlebar.widget.titlewidget(c) }, @@ -883,7 +891,7 @@ client.connect_signal("request::titlebars", function(c) layout = wibox.layout.flex.horizontal }, { - -- Right + -- Right awful.titlebar.widget.floatingbutton(c), awful.titlebar.widget.maximizedbutton(c), awful.titlebar.widget.stickybutton(c), |
