some hyprland configs and other stuff

This commit is contained in:
2025-11-20 04:17:46 +03:00
parent 54b708815e
commit b1fd965700
17 changed files with 645 additions and 229 deletions
+32 -47
View File
@@ -11,23 +11,14 @@
# Move from silent to normal workspace
# ----
# -- Missing scripts --
# switch_config.sh
# hide_window.sh
# workspace_action.sh
# launch_first_available.sh
# ----
{
home.packages = with pkgs; [ wl-clipboard hyprshot tesseract ];
wayland.windowManager.hyprland.settings = let super = "Super";
in {
bind = [
"${super}, Super_L, exec, pkill fuzzel || fuzzel"
"${super}, H, exec, ~/.config/hypr/hyprland/scripts/hide_window.sh h"
"${super}, I, exec, ~/.config/hypr/hyprland/scripts/hide_window.sh u"
"${super}, H, exec, ~/.config/hypr/scripts/hide_window.sh h"
"${super}, I, exec, ~/.config/hypr/scripts/hide_window.sh u"
"${super}, P, pseudo"
"${super}, Q, killactive"
@@ -43,22 +34,20 @@
"${super}+Shift, Up, movewindow, u"
"${super}+Shift, Down, movewindow, d"
"Alt, F4, killactive"
"${super}, D, fullscreen, 1"
"${super}, F, fullscreen, 0"
"${super}+Alt, F, togglefloating"
"${super}, 1, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1"
"${super}, 2, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2"
"${super}, 3, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3"
"${super}, 4, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4"
"${super}, 5, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5"
"${super}, 6, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6"
"${super}, 7, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7"
"${super}, 8, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8"
"${super}, 9, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9"
"${super}, 0, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10"
"${super}, 1, exec, ~/.config/hypr/scripts/workspace_action.sh workspace 1"
"${super}, 2, exec, ~/.config/hypr/scripts/workspace_action.sh workspace 2"
"${super}, 3, exec, ~/.config/hypr/scripts/workspace_action.sh workspace 3"
"${super}, 4, exec, ~/.config/hypr/scripts/workspace_action.sh workspace 4"
"${super}, 5, exec, ~/.config/hypr/scripts/workspace_action.sh workspace 5"
"${super}, 6, exec, ~/.config/hypr/scripts/workspace_action.sh workspace 6"
"${super}, 7, exec, ~/.config/hypr/scripts/workspace_action.sh workspace 7"
"${super}, 8, exec, ~/.config/hypr/scripts/workspace_action.sh workspace 8"
"${super}, 9, exec, ~/.config/hypr/scripts/workspace_action.sh workspace 9"
"${super}, 0, exec, ~/.config/hypr/scripts/workspace_action.sh workspace 10"
"Ctrl+${super}, Right, workspace, r+1"
"Ctrl+${super}, Left, workspace, r-1"
@@ -66,23 +55,35 @@
"${super}, L, exec, loginctl lock-session"
''
${super}, Return, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "kitty" "foot" "alacritty" "wezterm" "konsole" "kgx" "uxterm" "xterm"''
${super}, Return, exec, ~/.config/hypr/scripts/launch_first_available.sh "kitty" "foot" "alacritty" "wezterm" "konsole" "kgx" "uxterm" "xterm"''
"${super}, T, exec, Telegram"
''
${super}, E, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "dolphin" "nautilus" "nemo" "thunar" "kitty -1 fish -c yazi"''
${super}, E, exec, ~/.config/hypr/scripts/launch_first_available.sh "dolphin" "nautilus" "nemo" "thunar" "kitty -1 fish -c yazi"''
''
${super}, W, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "google-chrome-stable" "zen" "firefox" "brave" "chromium" "microsoft-edge-stable" "opera" "librewolf"''
${super}, W, exec, ~/.config/hypr/scripts/launch_first_available.sh "google-chrome-stable" "zen" "firefox" "brave" "chromium" "microsoft-edge-stable" "opera" "librewolf"''
''
${super}, C, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "code" "codium" "cursor" "zed" "zedit" "zeditor" "kate" "gnome-text-editor" "emacs" "command -v nvim && kitty -1 nvim"''
${super}, C, exec, ~/.config/hypr/scripts/launch_first_available.sh "code" "codium" "cursor" "zed" "zedit" "zeditor" "kate" "gnome-text-editor" "emacs" "command -v nvim && kitty -1 nvim"''
''
Ctrl+Shift, Escape, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "kitty -1 fish -c btop"''
Ctrl+Shift, Escape, exec, ~/.config/hypr/scripts/launch_first_available.sh "kitty -1 fish -c btop"''
"${super}+Alt, 1, exec, ~/.config/hypr/scripts/workspace_action.sh movetoworkspacesilent 1"
"${super}+Alt, 2, exec, ~/.config/hypr/scripts/workspace_action.sh movetoworkspacesilent 2"
"${super}+Alt, 3, exec, ~/.config/hypr/scripts/workspace_action.sh movetoworkspacesilent 3"
"${super}+Alt, 4, exec, ~/.config/hypr/scripts/workspace_action.sh movetoworkspacesilent 4"
"${super}+Alt, 5, exec, ~/.config/hypr/scripts/workspace_action.sh movetoworkspacesilent 5"
"${super}+Alt, 6, exec, ~/.config/hypr/scripts/workspace_action.sh movetoworkspacesilent 6"
"${super}+Alt, 7, exec, ~/.config/hypr/scripts/workspace_action.sh movetoworkspacesilent 7"
"${super}+Alt, 8, exec, ~/.config/hypr/scripts/workspace_action.sh movetoworkspacesilent 8"
"${super}+Alt, 9, exec, ~/.config/hypr/scripts/workspace_action.sh movetoworkspacesilent 9"
"${super}+Alt, 0, exec, ~/.config/hypr/scripts/workspace_action.sh movetoworkspacesilent 10"
"${super}+Alt, S, movetoworkspacesilent, special"
"${super}, S, togglespecialworkspace"
];
bindd = [
"${super}, M, exec, ~/.config/hypr/hyprland/scripts/switch_config.sh"
"${super}+Shift, S, exec, hyprshot --freeze --clipboard-only --mode region --silent"
"${super}+Shift, T, exec, hyprshot -m region --raw | tesseract stdin stdout"
"${super}, M, Toggle power profile,exec, ~/.config/hypr/scripts/switch_config.sh"
"${super}+Shift, S, Screenshot, exec, hyprshot --freeze --clipboard-only --mode region --silent"
"${super}+Shift, T, OCR, exec, hyprshot -m region --raw | tesseract stdin stdout"
];
bindm = [
@@ -111,21 +112,5 @@
"${super}, Minus, splitratio, -0.1"
"${super}, Equal, splitratio, +0.1"
];
# Move window to workspace
bindwsMove = [
"${super}+Alt, 1, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1"
"${super}+Alt, 2, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2"
"${super}+Alt, 3, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3"
"${super}+Alt, 4, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4"
"${super}+Alt, 5, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5"
"${super}+Alt, 6, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6"
"${super}+Alt, 7, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7"
"${super}+Alt, 8, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8"
"${super}+Alt, 9, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9"
"${super}+Alt, 0, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10"
"${super}+Alt, S, movetoworkspacesilent, special"
"${super}, S, togglespecialworkspace"
];
};
}