Browse Source

Add laptop keys

master
Emiel Kollof 3 years ago
parent
commit
6dcddc6cad
  1. 62
      config.py
  2. 4
      contrib/dunst/dunstrc

62
config.py

@ -113,22 +113,22 @@ keys = [ @@ -113,22 +113,22 @@ keys = [
lazy.layout.shrink(), # Shrink size of current window (XmonadTall)
lazy.layout.decrease_nmaster(), # Decrease number in master pane (Tile)
),
Key(
[mod, "shift"], "Left", # Move window to workspace to the left
window_to_prev_group
),
Key(
[mod, "shift"], "Right", # Move window to workspace to the right
window_to_next_group
),
Key(
[mod], "n",
lazy.layout.normalize() # Restore all windows to default size ratios
),
Key(
[mod], "m",
lazy.layout.maximize() # Toggle a window between minimum and maximum sizes
),
Key(
[mod, "shift"], "Left", # Move window to workspace to the left
window_to_prev_group
),
Key(
[mod, "shift"], "Right", # Move window to workspace to the right
window_to_next_group
),
Key(
[mod], "n",
lazy.layout.normalize() # Restore all windows to default size ratios
),
Key(
[mod], "m",
lazy.layout.maximize() # Toggle a window between minimum and maximum sizes
),
Key(
[mod, "shift"], "KP_Enter",
@ -149,6 +149,36 @@ Key( @@ -149,6 +149,36 @@ Key(
lazy.layout.toggle_split() # Toggle between split and unsplit sides of stack
),
# Laptop keys
Key(
[], "XF86AudioMute",
lazy.spawn("pulseaudio-ctl mute")
),
Key(
[], "XF86AudioLowerVolume",
lazy.spawn("pulseaudio-ctl up")
),
Key(
[], "XF86AudioRaiseVolume",
lazy.spawn("pulseaudio-ctl up")
),
Key(
[], "XF86MonBrightnessUp",
lazy.spawn("light -A 10")
),
Key(
[], "XF86MonBrightnessDown",
lazy.spawn("light -U 10")
),
Key(
[], "XF86KbdBrightnessUp",
lazy.spawn("light -k -A 10")
),
Key(
[], "XF86KbdBrightnessDown",
lazy.spawn("light -k -U 10")
),
]
groups = [Group(i) for i in "12345678"]

4
contrib/dunst/dunstrc

@ -118,10 +118,10 @@ @@ -118,10 +118,10 @@
startup_notification = true
# dmenu path
dmenu = /usr/local/bin/dmenu -p dunst:
dmenu = /usr/bin/dmenu -p dunst:
# browser for opening urls in context menu
browser = /usr/local/bin/firefox -new-tab
browser = /usr/bin/firefox -new-tab
[frame]
width = 0

Loading…
Cancel
Save