aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-04-30 11:57:26 +0200
committerMateja <mail@matejamaric.com>2021-04-30 11:57:26 +0200
commit8a884ff8e98d6f33076449151cd4e16f5a6ec841 (patch)
tree6731d9a10f15f8bb5c72133dcecdc058cd90a5b6
parent9bc271e08e5e15d55902bcc9525e6e445e73cb59 (diff)
downloaddotfiles-8a884ff8e98d6f33076449151cd4e16f5a6ec841.tar.gz
dotfiles-8a884ff8e98d6f33076449151cd4e16f5a6ec841.zip
Added keybindings for unmount script and taking screenshots.
-rw-r--r--.config/awesome/rc.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index 79b90c5..01fa04a 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -187,11 +187,11 @@ globalkeys = gears.table.join(
-- Audio
awful.key({ modkey }, "h", function () awful.spawn("amixer -q sset Master 1%+") end,
- {description = "Increase volume", group = "widgets"}),
+ {description = "Increase volume", group = "audio"}),
awful.key({ modkey }, "n", function () awful.spawn("amixer -q sset Master 1%-") end,
- {description = "Decrease volume", group = "widgets"}),
+ {description = "Decrease volume", group = "audio"}),
awful.key({ modkey }, "m", function () awful.spawn("amixer -q sset Master toggle") end,
- {description = "Toggle mute", group = "widgets"}),
+ {description = "Toggle mute", group = "audio"}),
-- Music
awful.key({ modkey }, "x", function () awful.spawn("mpc toggle") end,
@@ -202,7 +202,13 @@ globalkeys = gears.table.join(
awful.key({ modkey }, "z", function () awful.spawn("mpc next") end,
{description = "MPD next song", group = "music"}),
awful.key({ modkey, "Shift" }, "z", function () awful.spawn("mpc prev") end,
- {description = "MPD previous song", group = "music"})
+ {description = "MPD previous song", group = "music"}),
+
+ -- Utilities
+ awful.key({ modkey }, "e", function () awful.spawn("bash -c ~/.local/bin/unmount_usb.sh") end,
+ {description = "Eject USB", group = "utilities"}),
+ awful.key({ modkey, "Control" }, "p", function () awful.spawn("scrot -ze 'mv $f ~/stuff/pictures/screenshots/'") end,
+ {description = "Take a screenshot", group = "utilities"})
)