diff options
author | tcmal <me@aria.rip> | 2024-08-14 17:45:21 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 21:09:51 +0100 |
commit | 5acbda1ceeac1faa12566cac186ec1a367dd73e0 (patch) | |
tree | 2a944e0384bc61a534b914e9b27d0f2d521f89e8 | |
parent | 6fd934872a3c9f868bed5bd2f5ee33f0cb748912 (diff) |
use my config as default (for now)
-rw-r--r-- | src/config.rs | 18 |
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), |