not forgetting to update dotfiles
This commit is contained in:
@@ -57,12 +57,12 @@ modkey = "Mod4"
|
||||
|
||||
-- Table of layouts to cover with awful.layout.inc, order matters.
|
||||
awful.layout.layouts = {
|
||||
awful.layout.suit.fair,
|
||||
awful.layout.suit.fair.horizontal,
|
||||
awful.layout.suit.tile,
|
||||
awful.layout.suit.tile.left,
|
||||
awful.layout.suit.tile.bottom,
|
||||
awful.layout.suit.tile.top,
|
||||
awful.layout.suit.fair,
|
||||
awful.layout.suit.fair.horizontal,
|
||||
awful.layout.suit.spiral,
|
||||
awful.layout.suit.spiral.dwindle,
|
||||
awful.layout.suit.floating,
|
||||
@@ -305,9 +305,62 @@ globalkeys = gears.table.join(
|
||||
{description = "select previous", group = "layout"}),
|
||||
|
||||
-- Display Brightness
|
||||
awful.key({}, "XF86MonBrightnessUp", function () awful.util.spawn("/home/snarbutas/.bin/brightness +15") end),
|
||||
awful.key({}, "XF86MonBrightnessDown",function () awful.util.spawn("/home/snarbutas/.bin/brightness -15") end),
|
||||
awful.key({}, "XF86MonBrightnessUp", function () awful.util.spawn("/home/snarbutas/.bin/brightness +15", false) end),
|
||||
awful.key({}, "XF86MonBrightnessDown",function () awful.util.spawn("/home/snarbutas/.bin/brightness -15", false) end),
|
||||
-- Extend monitor
|
||||
awful.key({ "Control", "Mod4" }, "e", function () awful.util.spawn("/home/snarbutas/.bin/dualhead", false) end),
|
||||
-- Lock computer
|
||||
awful.key({ "Control", "Mod4" }, "l", function () awful.util.spawn("i3lock -c 000000 -i /home/snarbutas/Pictures/spiral1.png") end),
|
||||
awful.key({ "Control", "Mod4", "Shift" }, "l",
|
||||
function ()
|
||||
awful.util.spawn("i3lock -c 000000 -i /home/snarbutas/Pictures/spiral1.png")
|
||||
awful.util.spawn("sleep 1")
|
||||
awful.util.spawn("systemctl suspend")
|
||||
end),
|
||||
-- Audio controls
|
||||
awful.key({ }, "XF86AudioMute",
|
||||
function ()
|
||||
awful.util.spawn("pamixer --sink 0 -t", false)
|
||||
awful.spawn.easy_async("pamixer --sink 0 --get-mute", function(stdout, stderr, reason, exit_code)
|
||||
naughty.notify {title = "mute", text = stdout, timeout = 0.5}
|
||||
end)
|
||||
end),
|
||||
awful.key({ }, "XF86AudioMicMute",
|
||||
function ()
|
||||
awful.util.spawn("pamixer --source 1 -t", false)
|
||||
awful.spawn.easy_async("pamixer --source 1 --get-mute", function(stdout, stderr, reason, exit_code)
|
||||
naughty.notify {title = "mute mic", text = stdout, timeout = 0.5}
|
||||
end)
|
||||
end),
|
||||
awful.key({ }, "XF86AudioLowerVolume",
|
||||
function ()
|
||||
awful.spawn.easy_async("pamixer --sink 0 -d 5 --get-volume", function(stdout, stderr, reason, exit_code)
|
||||
naughty.notify {title = "Inc", text = stdout, timeout = 0.5}
|
||||
end)
|
||||
end),
|
||||
awful.key({ }, "XF86AudioRaiseVolume",
|
||||
function ()
|
||||
awful.spawn.easy_async("pamixer --sink 0 -i 5 --get-volume", function(stdout, stderr, reason, exit_code)
|
||||
naughty.notify {title = "Dec", text = stdout, timeout = 0.5}
|
||||
end)
|
||||
end),
|
||||
awful.key({ "Control", "Mod4" }, "Up",
|
||||
function ()
|
||||
awful.util.spawn("dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause", naughty.notify {title = "play/pause", timeout = 0.5, bg = "#ad11c7"})
|
||||
end),
|
||||
awful.key({ "Control", "Mod4" }, "Down",
|
||||
function ()
|
||||
awful.util.spawn("dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop", naughty.notify {title = "Stop", timeout = 0.5, bg = "#ad11c7"})
|
||||
end),
|
||||
awful.key({ "Control", "Mod4" }, "Left",
|
||||
function ()
|
||||
awful.util.spawn("dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous", naughty.notify {title = "Previous", timeout = 0.5, bg = "#ad11c7"})
|
||||
end),
|
||||
awful.key({ "Control", "Mod4" }, "Right",
|
||||
function ()
|
||||
awful.util.spawn("dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next", naughty.notify {title = "Next", timeout = 0.5, bg = "#ad11c7"})
|
||||
end),
|
||||
|
||||
awful.key({ modkey, "Control" }, "n",
|
||||
function ()
|
||||
local c = awful.client.restore()
|
||||
|
||||
Reference in New Issue
Block a user