From 9d2832e6ca78124714275c20beaa3fc58eecfbca Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 20 Sep 2024 23:26:02 +0800 Subject: fixed hyprswitch --- dot-config/alacritty/colorschemes/wallust.toml | 30 ++++++++++++++++++++++++++ dot-config/hypr/binds.conf | 20 +++++++++++------ 2 files changed, 43 insertions(+), 7 deletions(-) create mode 100644 dot-config/alacritty/colorschemes/wallust.toml diff --git a/dot-config/alacritty/colorschemes/wallust.toml b/dot-config/alacritty/colorschemes/wallust.toml new file mode 100644 index 00000000..a0881bde --- /dev/null +++ b/dot-config/alacritty/colorschemes/wallust.toml @@ -0,0 +1,30 @@ +[window] +opacity = 0.25 + +[colors.primary] +background = '#0C0D0E' +foreground = '#FDEFF9' + +[colors.cursor] +text = '#FDEFF9' +cursor = '#FDEFF9' + +[colors.normal] +black = '#363737' +red = '#070E11' +green = '#3D3253' +yellow = '#5966AD' +blue = '#886272' +magenta = '#AC8BC9' +cyan = '#FAD2EF' +white = '#F4E0EF' + +[colors.bright] +black = '#AB9DA7' +red = '#070E11' +green = '#3D3253' +yellow = '#5966AD' +blue = '#886272' +magenta = '#AC8BC9' +cyan = '#FAD2EF' +white = '#F4E0EF' diff --git a/dot-config/hypr/binds.conf b/dot-config/hypr/binds.conf index a0651adc..445ea478 100644 --- a/dot-config/hypr/binds.conf +++ b/dot-config/hypr/binds.conf @@ -80,7 +80,10 @@ bind = $mainMod, q, killactive bind = $mainMod shift, q, exec, kill -9 $(hyprctl activewindow | grep pid | tail -1 | awk '{print$2}') bind = ctrl alt, escape, exec, hyprctl kill bind = ctrl $mainMod shift, r, exec, systemctl restart $sessionManager +# restart bar bind = ctrl $mainMod, escape, exec, killall -SIGUSR2 waybar || waybar & +# reload wall +bind = $mainMod alt, b, exec, killall wallust; killall swww.sh; $SCRIPTSDIR/swww.sh # bind = ctrl, up, hyprexpo:expo, on # bind = ctrl, down, hyprexpo:expo, off # bind = ctrl, up, overview:open @@ -89,20 +92,23 @@ bind = ctrl $mainMod, escape, exec, killall -SIGUSR2 waybar || waybar & # bind = alt, grave, exec, hyprswitch gui --reverse # bindr = alt, tab, exec, hyprswitch close # bindr = alt, grave, exec, hyprswitch close -bind = alt, tab, exec, /home/system/.cargo/bin/hyprswitch gui --mod-key alt_l --key tab --close mod-key-release && hyprswitch dispatch -bind = alt, grave, exec, /home/system/.cargo/bin/hyprswitch gui --mod-key alt_l --key tab --close mod-key-release && hyprswitch dispatch -r +bind = alt, tab, exec, /home/system/.cargo/bin/hyprswitch gui --mod-key alt_l --key tab --close mod-key-release --reverse-key=key=grave && hyprswitch dispatch +bind = alt, grave, exec, /home/system/.cargo/bin/hyprswitch gui --mod-key alt_l --key tab --close mod-key-release --reverse-key=key=grave && hyprswitch dispatch -r -# restart bar bind = ctrl alt, left, workspace, -1 bind = ctrl alt, right, workspace, +1 bind = $mainMod shift, left, movewindow, l bind = $mainMod shift, right, movewindow, r bind = $mainMod shift, up, movewindow, u bind = $mainMod shift, down, movewindow, d -bind = alt shift, right, resizeactive, 10 0 -bind = alt shift, left, resizeactive, -10 0 -bind = alt shift, up, resizeactive, 0 -10 -bind = alt shift, down, resizeactive, 0 10 +bind = alt shift, left, resizeactive, left -20 -20 +bind = alt shift, right, resizeactive, 0 20 +bind = alt shift, up, resizeactive, 0 -20 +bind = alt shift, down, resizeactive, 20 0 +bind = $mainMod ctrl, left, resizeactive, -20 0 +bind = $mainMod ctrl, right, resizeactive, 20 0 +bind = $mainMod ctrl, up, resizeactive, 0 -20 +bind = $mainMod ctrl, down, resizeactive, 0 20 bind = $mainMod, f, fullscreen, bind = $mainMod, space, togglefloating, bind = $mainMod shift, space, pseudo, # dwindle -- cgit v1.2.3