PPaste!

AwesomeWM Fn keys shortcuts

Home - All the pastes - Authored by Thooms

Raw version

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
    -- ALSA volume control
    awful.key({ }, "#123",
        function ()
            os.execute(string.format("amixer set %s 5%%+", volume.channel))
            volume.update()
        end),
    awful.key({ }, "#122",
        function ()
            os.execute(string.format("amixer set %s 5%%-", volume.channel))
            volume.update()
        end),
    awful.key({ }, "#121",
        function ()
            os.execute(string.format("amixer set %s toggle", volume.togglechannel or volume.channel))
            volume.update()
        end),
    awful.key({ altkey, "Control" }, "m",
        function ()
            os.execute(string.format("amixer set %s 100%%", volume.channel))
            volume.update()
        end),

        awful.key({ altkey, "Control" }, "0",
                function ()
                        os.execute(string.format("amixer -q set %s 0%%", volume.channel))
                        volume.update()
                end),

   -- Backlight control
   awful.key({ }, "#233",
      function ()
         os.execute("xbacklight -steps 200 -time 200  -inc 5%%")
      end
   ),
   awful.key({ }, "#232",
      function ()
         os.execute("xbacklight -steps 200 -time 200 -dec 5%%")
      end
   ),