aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGlizda <[email protected]>2023-12-04 19:47:58 +0100
committerGitHub <[email protected]>2023-12-04 18:47:58 +0000
commitaa46aaed04f089b849c45a077e81e8b562be23df (patch)
tree11d00b2f5c4b39c887703b001eda6780b3c4341c
parent68783d904d850df65887adb1bab7eff59943c1ac (diff)
downloadHyprland-aa46aaed04f089b849c45a077e81e8b562be23df.tar.gz
Hyprland-aa46aaed04f089b849c45a077e81e8b562be23df.zip
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
-rw-r--r--example/hyprland.conf10
-rw-r--r--src/config/defaultConfig.hpp11
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