From aa46aaed04f089b849c45a077e81e8b562be23df Mon Sep 17 00:00:00 2001 From: Glizda Date: Mon, 4 Dec 2023 19:47:58 +0100 Subject: [PATCH] config: Add variables to default config (#4032) * update default config * Fix inconsistency in variable naming * continuation of last commit * edited example/hyprland.conf for parity * fix issue * deleted unwanted newline --- example/hyprland.conf | 10 +++++++--- src/config/defaultConfig.hpp | 11 ++++++++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/example/hyprland.conf b/example/hyprland.conf index 7560fefe..e6c2a641 100644 --- a/example/hyprland.conf +++ b/example/hyprland.conf @@ -19,6 +19,10 @@ monitor=,preferred,auto,auto # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf +# Set programs that you use +$terminal = kitty +$fileManager = dolphin +$menu = wofi --show drun # Some default env vars. env = XCURSOR_SIZE,24 @@ -127,12 +131,12 @@ windowrulev2 = nomaximizerequest, class:.* # You'll probably like this. $mainMod = SUPER # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more -bind = $mainMod, Q, exec, kitty +bind = $mainMod, Q, exec, $terminal bind = $mainMod, C, killactive, bind = $mainMod, M, exit, -bind = $mainMod, E, exec, dolphin +bind = $mainMod, E, exec, $fileManager bind = $mainMod, V, togglefloating, -bind = $mainMod, R, exec, wofi --show drun +bind = $mainMod, R, exec, $menu bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle diff --git a/src/config/defaultConfig.hpp b/src/config/defaultConfig.hpp index 6a859220..22d3b332 100644 --- a/src/config/defaultConfig.hpp +++ b/src/config/defaultConfig.hpp @@ -28,6 +28,11 @@ monitor=,preferred,auto,auto # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf +# Set programs that you use +$terminal = kitty +$fileManager = dolphin +$menu = wofi --show drun + # Some default env vars. env = XCURSOR_SIZE,24 @@ -134,12 +139,12 @@ windowrulev2 = nomaximizerequest, class:.* # You'll probably like this. $mainMod = SUPER # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more -bind = $mainMod, Q, exec, kitty +bind = $mainMod, Q, exec, $terminal bind = $mainMod, C, killactive, bind = $mainMod, M, exit, -bind = $mainMod, E, exec, dolphin +bind = $mainMod, E, exec, $fileManager bind = $mainMod, V, togglefloating, -bind = $mainMod, R, exec, wofi --show drun +bind = $mainMod, R, exec, $menu bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle