From 59e2829634b6a96a36c6358253860db4350024b4 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 21:10:02 +0100 Subject: Different config for testing --- src/config.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 76a9463..f3b40f6 100644 --- a/src/config.rs +++ b/src/config.rs @@ -25,15 +25,12 @@ 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::N4; - -/// Command for application menu / launcher. -pub const MENU_COMMAND: &str = "j4-dmenu-desktop"; +pub const MAIN_MODIFIER: ModMask = ModMask::CONTROL; /// The keybinds to use. pub const KEYBINDS: Keybinds = Keybinds(&[ - bind!(MAIN_MODIFIER , Return -> &|_| spawn::<_, &str>(MENU_COMMAND, [])), - bind!(MAIN_MODIFIER , t -> &|_| spawn::<_, &str>("alacritty", [])), + bind!(MAIN_MODIFIER , Return -> &|_| spawn::<_, &str>("dmenu_run", [])), + bind!(MAIN_MODIFIER , t -> &|_| spawn::<_, &str>("xterm", [])), 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%+"])), -- cgit v1.2.3