summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/config.rs b/src/config.rs
index 54549b7..76a9463 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -25,15 +25,25 @@ pub const BORDER_NORMAL: Colour = Colour::from_hex(0x000000);
pub const BORDER_FOCUSED: Colour = Colour::from_hex(0xff0000);
/// The main modifier used for keybinds.
-pub const MAIN_MODIFIER: ModMask = ModMask::CONTROL;
+pub const MAIN_MODIFIER: ModMask = ModMask::N4;
/// Command for application menu / launcher.
-pub const MENU_COMMAND: &str = "dmenu_run";
+pub const MENU_COMMAND: &str = "j4-dmenu-desktop";
/// The keybinds to use.
pub const KEYBINDS: Keybinds = Keybinds(&[
- bind!(MAIN_MODIFIER , Return -> &|_| spawn::<_, &str>("xterm", [])),
- bind!(MAIN_MODIFIER , p -> &|_| spawn::<_, &str>(MENU_COMMAND, [])),
+ bind!(MAIN_MODIFIER , Return -> &|_| spawn::<_, &str>(MENU_COMMAND, [])),
+ bind!(MAIN_MODIFIER , t -> &|_| spawn::<_, &str>("alacritty", [])),
+ bind!(MAIN_MODIFIER , i -> &|_| spawn::<_, &str>("sh", ["-c", "if pgrep eww; then pkill eww; else eww daemon && eww open overlay; fi"])),
+ bind!(MAIN_MODIFIER , XF86_AudioRaiseVolume -> &|_| spawn::<_, &str>("/run/current-system/sw/bin/wpctl", ["set-volume", "@DEFAULT_AUDIO_SINK@", "5%+"])),
+ bind!(MAIN_MODIFIER , F7 -> &|_| spawn::<_, &str>("/run/current-system/sw/bin/wpctl", ["set-volume", "@DEFAULT_AUDIO_SINK@", "5%+"])),
+ bind!(MAIN_MODIFIER , XF86_AudioLowerVolume -> &|_| spawn::<_, &str>("/run/current-system/sw/bin/wpctl", ["set-volume", "@DEFAULT_AUDIO_SINK@", "5%-"])),
+ bind!(MAIN_MODIFIER , F6 -> &|_| spawn::<_, &str>("/run/current-system/sw/bin/wpctl", ["set-volume", "@DEFAULT_AUDIO_SINK@", "5%+"])),
+ bind!(MAIN_MODIFIER , XF86_AudioMute -> &|_| spawn::<_, &str>("/run/current-system/sw/bin/wpctl", ["set-mute", "toggle"])),
+ bind!(MAIN_MODIFIER , F8 -> &|_| spawn::<_, &str>("/run/current-system/sw/bin/wpctl", ["set-volume", "@DEFAULT_AUDIO_SINK@", "5%+"])),
+ bind!(MAIN_MODIFIER , XF86_MonBrightnessUp -> &|_| spawn::<_, &str>("/run/current-system/sw/bin/light", ["-A", "5"])),
+ bind!(MAIN_MODIFIER , XF86_MonBrightnessDown -> &|_| spawn::<_, &str>("/run/current-system/sw/bin/light", ["-U", "5"])),
+ bind!(MAIN_MODIFIER , Print -> &|_| spawn::<_, &str>("sh", ["-c", "screenshot"])),
bind!(MAIN_MODIFIER , j -> &focus_next),
bind!(MAIN_MODIFIER , k -> &focus_prev),
bind!(MAIN_MODIFIER.union(ModMask::SHIFT) , space -> &toggle_floating),