From 2e9d1e2ad41a20dcda72ba6f4a453aa320b08b43 Mon Sep 17 00:00:00 2001 From: Lucas Barbieri Date: Wed, 10 Jan 2024 12:27:51 -0300 Subject: [PATCH] adding dvorak layout and switcher --- desktop/configs/hypr/binds.conf | 3 ++- desktop/configs/hypr/rules.conf | 8 +++++--- desktop/configs/hypr/settings.conf | 23 ++++++++++++++++++++--- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/desktop/configs/hypr/binds.conf b/desktop/configs/hypr/binds.conf index 704b04c..276d402 100644 --- a/desktop/configs/hypr/binds.conf +++ b/desktop/configs/hypr/binds.conf @@ -1,6 +1,8 @@ # control bindings $mainMod = SUPER +bind = $mainMod, apostrophe, exec, hyprctl switchxkblayout logotech-gaming-keyboard next + # app bindings bind = $mainMod, Return, exec, wezterm bind = $mainMod, E, exec, thunar @@ -13,7 +15,6 @@ bind = CONTROL SHIFT, Print, exec, ~/.local/bin/print-tmp.sh bind = CONTROL, Print, exec, ~/.local/bin/print-window.sh bind = $mainMod, b, exec, MOZ_ENABLE_WAYLAND=1 firefox-bin bind = $mainMod ALT, x, exec, XL_SECRET_PROVIDER=file xivlauncher -bind = $mainMod, apostrophe, exec, ~/scripts/animations.sh # window control bind = $mainMod SHIFT, C, killactive, diff --git a/desktop/configs/hypr/rules.conf b/desktop/configs/hypr/rules.conf index b9ea883..f0f2c75 100644 --- a/desktop/configs/hypr/rules.conf +++ b/desktop/configs/hypr/rules.conf @@ -1,3 +1,5 @@ +# rules file + workspace= 9, border:0,rounding:0,decorate:0, windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$ @@ -41,9 +43,9 @@ windowrule=workspace 9 silent,cs2 windowrule=workspace 11 silent,.*league.* windowrule=workspace 11 silent,.*riot.* windowrule=float,steam_.* -windowrule=fakefullscreen,steam_.* -windowrule=nomaximizerequest,steam_.* -windowrule=nofullscreenrequest,steam_.* +# windowrule=fakefullscreen,steam_.* +# windowrule=nomaximizerequest,steam_.* +# windowrule=nofullscreenrequest,steam_.* windowrule=workspace 9 silent,steam_.* windowrule=workspace 10 silent,SFP_UI windowrule=workspace 4 silent,Spotify diff --git a/desktop/configs/hypr/settings.conf b/desktop/configs/hypr/settings.conf index 2abfaff..d59591b 100644 --- a/desktop/configs/hypr/settings.conf +++ b/desktop/configs/hypr/settings.conf @@ -1,8 +1,8 @@ input { - kb_layout = br - kb_variant = abnt2 + kb_layout = br,br + kb_variant = abnt2,dvorak + kb_options = ctrl:nocaps,grp:alt_shift_toggle kb_model = - kb_options = kb_rules = follow_mouse = 1 @@ -14,6 +14,11 @@ input { sensitivity = -0.3 # -1.0 - 1.0, 0 means no modification. } +device:logotech-gaming-keyboard { + kb_layout = br,br + kb_variant = abnt2,dvorak + kb_options = ctrl:nocaps,grp:alt_shift_toggle +} general { gaps_in = 0 gaps_out = 0 @@ -72,3 +77,15 @@ misc { binds { workspace_back_and_forth = true } + +plugin { + hyprbars { + # example config + bar_height = 20 + + # example buttons (R -> L) + # hyprbars-button = color, size, on-click + hyprbars-button = rgb(ff4040), 10, 󰖭, hyprctl dispatch killactive + hyprbars-button = rgb(eeee11), 10, , hyprctl dispatch fullscreen 1 + } +}