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
@@ -1,114 +0,0 @@
# -- Missing --
# Toggle cheatsheet
# Clipboard history
# Emoji
# Toggle media controls ?
# Change wallpaper
# Restart hyprland and plugins
# AI
# Move from silent to normal workspace
# ----
# -- Missing scripts --
# switch_config.sh
# hide_window.sh
# workspace_action.sh
# launch_first_available.sh
# tesseract
# ----
# -- To fix now --
# add hyprshot
# wl-clipboard
# ----
bind = Super, Super_L, exec, pkill fuzzel || fuzzel # [hidden] Launcher
bindle=, XF86MonBrightnessUp, exec, brightnessctl s 5%+ # [hidden]
bindle=, XF86MonBrightnessDown, exec, brightnessctl s 5%- # [hidden]
bindle=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 2%+ # [hidden]
bindle=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- # [hidden]
bindl = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle # [hidden]
bindd = Super, M, Toggle power profile, exec, ~/.config/hypr/hyprland/scripts/switch_config.sh # [hidden] Toggle power profile
bind = Super, H, exec, ~/.config/hypr/hyprland/scripts/hide_window.sh h # hide active window
bind = Super, I, exec, ~/.config/hypr/hyprland/scripts/hide_window.sh u # show hide window
bind = Super, P, pseudo, # [hidden] dwindle
bindd = Super+Shift, S, Screen snip, exec, hyprshot --freeze --clipboard-only --mode region --silent # Screen snip
bindld = ,Print, Screenshot >> clipboard ,exec, hyprshot -m output
bindd = Super+Shift, T, Character recognition,exec,hyprshot -m region --raw | tesseract stdin stdout # OCR
bindm = Super, mouse:272, movewindow # Move
bindm = Super, mouse:274, movewindow # [hidden]
bindm = Super, mouse:273, resizewindow # Resize
#/# bind = Super, ←/↑/→/↓,, # Focus in direction
bind = Super, Left, movefocus, l # [hidden]
bind = Super, Right, movefocus, r # [hidden]
bind = Super, Up, movefocus, u # [hidden]
bind = Super, Down, movefocus, d # [hidden]
#/# bind = Super+Shift, ←/↑/→/↓,, # Move in direction
bind = Super+Shift, Left, movewindow, l # [hidden]
bind = Super+Shift, Right, movewindow, r # [hidden]
bind = Super+Shift, Up, movewindow, u # [hidden]
bind = Super+Shift, Down, movewindow, d # [hidden]
bind = Alt, F4, killactive, # [hidden] Close (Windows)
bind = Super, Q, killactive, # Close
bind = Super+Shift+Alt, Q, exec, hyprctl kill # Forcefully zap a window
#/# binde = Super, -/+,, # Adjust split ratio
binde = Super, Minus, splitratio, -0.1
binde = Super, Equal, splitratio, +0.1
bind = Super+Alt, F, togglefloating,
bind = Super, D, fullscreen, 1 # Maximize
bind = Super, F, fullscreen, 0 # Fullscreen
#/# bind = Super+Alt, Hash,, # Send to workspace # (1, 2, 3,...)
bind = Super+Alt, 1, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1 # [hidden]
bind = Super+Alt, 2, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2 # [hidden]
bind = Super+Alt, 3, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3 # [hidden]
bind = Super+Alt, 4, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4 # [hidden]
bind = Super+Alt, 5, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5 # [hidden]
bind = Super+Alt, 6, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6 # [hidden]
bind = Super+Alt, 7, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7 # [hidden]
bind = Super+Alt, 8, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8 # [hidden]
bind = Super+Alt, 9, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9 # [hidden]
bind = Super+Alt, 0, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10 # [hidden]
bind = Super+Alt, S, movetoworkspacesilent, special # Send to scratchpad
bind = Super, S, togglespecialworkspace, # Toggle scratchpad
bind = Super, mouse:275, togglespecialworkspace, # [hidden]
#/# bind = Super, Hash,, # Focus workspace # (1, 2, 3,...)
bind = Super, 1, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1 # [hidden]
bind = Super, 2, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2 # [hidden]
bind = Super, 3, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3 # [hidden]
bind = Super, 4, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4 # [hidden]
bind = Super, 5, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5 # [hidden]
bind = Super, 6, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6 # [hidden]
bind = Super, 7, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7 # [hidden]
bind = Super, 8, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8 # [hidden]
bind = Super, 9, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9 # [hidden]
bind = Super, 0, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10 # [hidden]
#/# bind = Ctrl+Super, ←/→,, # Focus left/right
bind = Ctrl+Super, Right, workspace, r+1 # [hidden]
bind = Ctrl+Super, Left, workspace, r-1 # [hidden]
#/# bind = Ctrl+Super, ←/→,, # Focus left/right
bind = Ctrl+Super, Right, workspace, r+1 # [hidden]
bind = Ctrl+Super, Left, workspace, r-1 # [hidden]
bindd = Super, L, Lock, exec, loginctl lock-session # Lock
bindl= ,XF86AudioNext, exec, playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"` # [hidden]
bindl= ,XF86AudioPrev, exec, playerctl previous # [hidden]
bindl= ,XF86AudioNext, exec, playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"` # [hidden]
bindl= ,XF86AudioPrev, exec, playerctl previous # [hidden]
bind = Super, Return, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "kitty" "foot" "alacritty" "wezterm" "konsole" "kgx" "uxterm" "xterm" # Terminal
bind = Super, T, exec, Telegram
bind = Super, E, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "dolphin" "nautilus" "nemo" "thunar" "kitty -1 fish -c yazi" # File manager
bind = Super, W, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "google-chrome-stable" "zen" "firefox" "brave" "chromium" "microsoft-edge-stable" "opera" "librewolf" # Browser
bind = 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" # Code editor
bind = Ctrl+Shift, Escape, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "kitty -1 fish -c btop" # Task manager
+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"
];
};
}
@@ -0,0 +1,160 @@
{
wayland.windowManager.hyprland.settings = {
# Window rules
windowrule = [
"opacity 0.97 override 0.85 override 1 override, class:^(firefox|Code|obsidian|zen)$"
];
windowrulev2 = [
# Basic rules
"noblur,class:^()$,title:^()$"
"idleinhibit fullscreen, class:^(*)$"
"idleinhibit fullscreen, title:^(*)$"
"idleinhibit fullscreen, fullscreen:1"
# Floating windows
"float, class:^(blueberry.py)$"
"float, class:^(steam)$"
"float, class:^(guifetch)$" # FlafyDev/guifetch
"float, class:^(pavucontrol)$"
"size 45%, class:^(pavucontrol)$"
"center, class:^(pavucontrol)$"
"float, class:^(org.pulseaudio.pavucontrol)$"
"size 45%, class:^(org.pulseaudio.pavucontrol)$"
"center, class:^(org.pulseaudio.pavucontrol)$"
"float, class:^(nm-connection-editor)$"
"size 45%, class:^(nm-connection-editor)$"
"center, class:^(nm-connection-editor)$"
"float, class:.*plasmawindowed.*"
"float, class:kcm_.*"
"float, class:.*bluedevilwizard"
"float, title:.*Welcome"
"float, title:^(illogical-impulse Settings)$"
"float, class:org.freedesktop.impl.portal.desktop.kde"
"float, class:^(Zotero)$"
"size 45%, class:^(Zotero)$"
# Move rules
"float, class:^(plasma-changeicons)$"
"noinitialfocus, class:^(plasma-changeicons)$"
"move 999999 999999, class:^(plasma-changeicons)$"
"move 40 80, title:^(Copying Dolphin)$"
# Tiling
"tile, class:^dev.warp.Warp$"
# Picture-in-Picture
"float, title:^([Pp]icture[-s]?[Ii]n[-s]?[Pp]icture)(.*)$"
"keepaspectratio, title:^([Pp]icture[-s]?[Ii]n[-s]?[Pp]icture)(.*)$"
"move 73% 72%, title:^([Pp]icture[-s]?[Ii]n[-s]?[Pp]icture)(.*)$"
"size 25%, title:^([Pp]icture[-s]?[Ii]n[-s]?[Pp]icture)(.*)$"
"pin, title:^([Pp]icture[-s]?[Ii]n[-s]?[Pp]icture)(.*)$"
# Dialog windows - float+center
"center, title:^(Open File)(.*)$"
"center, title:^(Select a File)(.*)$"
"center, title:^(Choose wallpaper)(.*)$"
"center, title:^(Open Folder)(.*)$"
"center, title:^(Save As)(.*)$"
"center, title:^(Library)(.*)$"
"center, title:^(File Upload)(.*)$"
"center, title:^(.*)(wants to save)$"
"center, title:^(.*)(wants to open)$"
"float, title:^(Open File)(.*)$"
"float, title:^(Select a File)(.*)$"
"float, title:^(Choose wallpaper)(.*)$"
"float, title:^(Open Folder)(.*)$"
"float, title:^(Save As)(.*)$"
"float, title:^(Library)(.*)$"
"float, title:^(File Upload)(.*)$"
"float, title:^(.*)(wants to save)$"
"float, title:^(.*)(wants to open)$"
# Tearing
"immediate, title:.*.exe"
"immediate, title:.*minecraft.*"
"immediate, class:^(steam_app).*"
# No shadow for tiled windows
"noshadow, floating:0"
];
# Workspace rules
workspace = [ "special:special, gapsout:30" ];
# Layer rules
layerrule = [
# Basic layer rules
"noanim, walker"
"noanim, selection"
"noanim, overview"
"noanim, anyrun"
"noanim, indicator.*"
"noanim, osk"
"noanim, hyprpicker"
"noanim, noanim"
# Blur effects
"blur, gtk-layer-shell"
"ignorezero, gtk-layer-shell"
"blur, launcher"
"ignorealpha 0.5, launcher"
"blur, notifications"
"ignorealpha 0.69, notifications"
"blur, logout_dialog" # wlogout
# AGS rules
"animation slide left, sideleft.*"
"animation slide right, sideright.*"
"blur, session[0-9]*"
"blur, bar[0-9]*"
"ignorealpha 0.6, bar[0-9]*"
"blur, barcorner.*"
"ignorealpha 0.6, barcorner.*"
"blur, dock[0-9]*"
"ignorealpha 0.6, dock[0-9]*"
"blur, indicator.*"
"ignorealpha 0.6, indicator.*"
"blur, overview[0-9]*"
"ignorealpha 0.6, overview[0-9]*"
"blur, cheatsheet[0-9]*"
"ignorealpha 0.6, cheatsheet[0-9]*"
"blur, sideright[0-9]*"
"ignorealpha 0.6, sideright[0-9]*"
"blur, sideleft[0-9]*"
"ignorealpha 0.6, sideleft[0-9]*"
"blur, osk[0-9]*"
"ignorealpha 0.6, osk[0-9]*"
# Quickshell rules
"blurpopups, quickshell:.*"
"blur, quickshell:.*"
"ignorealpha 0.79, quickshell:.*"
"animation slide top, quickshell:bar"
"animation fade, quickshell:screenCorners"
"animation slide right, quickshell:sidebarRight"
"animation slide left, quickshell:sidebarLeft"
"animation slide bottom, quickshell:osk"
"animation slide bottom, quickshell:dock"
"blur, quickshell:session"
"noanim, quickshell:session"
"ignorealpha 0, quickshell:session"
"animation fade, quickshell:notificationPopup"
"blur, quickshell:backgroundWidgets"
"ignorealpha 0.05, quickshell:backgroundWidgets"
"noanim, quickshell:screenshot"
"animation popin 120%, quickshell:screenCorners"
"noanim, quickshell:lockWindowPusher"
# Launchers need to be FAST
"noanim, quickshell:overview"
"noanim, gtk4-layer-shell"
# outfoxxed's stuff
"blur, shell:bar"
"ignorezero, shell:bar"
"blur, shell:notifications"
"ignorealpha 0.1, shell:notifications"
];
};
}