updated colors to work with noctalia
This commit is contained in:
@@ -1,271 +0,0 @@
|
|||||||
:q
|
|
||||||
:q
|
|
||||||
## KEYBINDINGS ###
|
|
||||||
###################
|
|
||||||
|
|
||||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
|
||||||
$ipc = qs -c noctalia-shell ipc call
|
|
||||||
|
|
||||||
# 1. Basic Binds
|
|
||||||
bind = $mainMod, Q, exec, $terminal
|
|
||||||
bind = ALT, Q, exec, $terminal --class popup-term
|
|
||||||
bind = $mainMod, W, exec, $terminal --class popup-term
|
|
||||||
bind = $mainMod, C, killactive,
|
|
||||||
bind = $mainMod SHIFT CTRL, M, exec, command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit
|
|
||||||
# bind = $mainMod, E, exec, $fileManager
|
|
||||||
|
|
||||||
# Workspace movement and tiling rule
|
|
||||||
bind = $mainMod, P, togglefloating,
|
|
||||||
bind = $mainMod, P, pin,
|
|
||||||
bind = $mainMod SHIFT, BACKSLASH, togglefloating, # float
|
|
||||||
bind = $mainMod, BACKSLASH, layoutmsg, togglesplit # dwindle
|
|
||||||
bind = $mainMod CTRL, BACKSLASH, pseudo #
|
|
||||||
|
|
||||||
# bind = $mainMod, SEMICOLON, exec, hyprctl general:layout master
|
|
||||||
# bind = $mainMod, APOSTROPHE, exec, hyprctl general:layout dwindle
|
|
||||||
|
|
||||||
# Compiler window
|
|
||||||
bind = $mainMod SHIFT, A, tagwindow, compiler
|
|
||||||
bind = $mainMod, A, exec, $XDG_CONFIG_HOME/hypr/scripts/compile.sh
|
|
||||||
|
|
||||||
# 2. moving focus with vim
|
|
||||||
bind = $mainMod, H, movefocus, l
|
|
||||||
bind = $mainMod, L, movefocus, r
|
|
||||||
bind = $mainMod, K, movefocus, u
|
|
||||||
bind = $mainMod, J, movefocus, d
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, H, moveWindow, l
|
|
||||||
bind = $mainMod SHIFT, L, moveWindow, r
|
|
||||||
bind = $mainMod SHIFT, K, moveWindow, u
|
|
||||||
bind = $mainMod SHIFT, J, moveWindow, d
|
|
||||||
|
|
||||||
bind = $mainMod, mouse_up, workspace, m-1
|
|
||||||
bind = $mainMod, mouse_down, workspace, m-1
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT , mouse_up, workspace, e-1
|
|
||||||
bind = $mainMod SHIFT , mouse_down, workspace, e-1
|
|
||||||
|
|
||||||
bind = $mainMod CTRL, right, workspace, m+1 # alt-tab switch workspace
|
|
||||||
bind = $mainMod CTRL, left, workspace, m-1 # alt-tab switch workspace
|
|
||||||
|
|
||||||
bind = CTRL, SPACE, focuscurrentorlast
|
|
||||||
|
|
||||||
# bind = $mainMod, TAB, focusmonitor, +1
|
|
||||||
# bind = $mainMod SHIFT, TAB, focusmonitor, -1
|
|
||||||
|
|
||||||
# bind = ALT, TAB, hyprexpo:expo, toggle
|
|
||||||
# bind = ALT, TAB, overview:toggle, all
|
|
||||||
|
|
||||||
# 3. resize with arrows
|
|
||||||
binde = $mainMod, right, resizeActive, 20 0
|
|
||||||
binde = $mainMod, left, resizeActive, -20 0
|
|
||||||
binde = $mainMod, up, resizeActive, 0 -20
|
|
||||||
binde = $mainMod, down, resizeActive, 0 20
|
|
||||||
|
|
||||||
# 4. Switch workspaces with mainMod + [0-9]
|
|
||||||
bind = $mainMod, 1, workspace, 1
|
|
||||||
bind = $mainMod, 2, workspace, 2
|
|
||||||
bind = $mainMod, 3, workspace, 3
|
|
||||||
bind = $mainMod, 4, workspace, 4
|
|
||||||
bind = $mainMod, 5, workspace, 5
|
|
||||||
bind = $mainMod, 6, workspace, 6
|
|
||||||
bind = $mainMod, 7, workspace, 7
|
|
||||||
bind = $mainMod, 8, workspace, 8
|
|
||||||
bind = $mainMod, 9, workspace, 9
|
|
||||||
bind = $mainMod, 0, workspace, 10
|
|
||||||
|
|
||||||
# 5. Move actihe window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
|
||||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
|
||||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
|
||||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
|
||||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
|
||||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
|
||||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
|
||||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
|
||||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
|
||||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
|
||||||
|
|
||||||
# 6. special workspace (scratchpad)
|
|
||||||
bind = $mainMod, S, togglespecialworkspace, magic
|
|
||||||
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
|
||||||
|
|
||||||
bind = $mainMod, B, togglespecialworkspace, magic2
|
|
||||||
bind = $mainMod SHIFT, B, movetoworkspace, special:book
|
|
||||||
|
|
||||||
bind = $mainMod, D, exec, discord
|
|
||||||
bind = $mainMod, D, togglespecialworkspace, discord
|
|
||||||
|
|
||||||
bind = $mainMod, E, exec, $email
|
|
||||||
bind = $mainMod, E, togglespecialworkspace, email
|
|
||||||
|
|
||||||
bind = $mainMod, G, exec, steam -forcedesktopscaling 0.5
|
|
||||||
bind = $mainMod, G, togglespecialworkspace, gaming
|
|
||||||
|
|
||||||
bind = $mainMod, N, togglespecialworkspace, notes
|
|
||||||
|
|
||||||
bind = $mainMod, X, togglespecialworkspace, phantom
|
|
||||||
bind = $mainMod, X, togglespecialworkspace, phantom
|
|
||||||
|
|
||||||
# 7. Other Workspace tools
|
|
||||||
# 8. Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
bindm = $mainMod, mouse:272, movewindow
|
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
|
||||||
|
|
||||||
# 9. Laptop multimedia keys for volume and LCD brightness
|
|
||||||
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
|
||||||
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
|
||||||
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
|
||||||
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
|
||||||
bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+
|
|
||||||
bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
|
|
||||||
|
|
||||||
# Requires playerctl
|
|
||||||
bindl = , XF86AudioNext, exec, playerctl next
|
|
||||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
|
||||||
bind = ALT, mouse:274, exec, playerctl play-pause
|
|
||||||
|
|
||||||
|
|
||||||
# 10. Applications and shortcuts
|
|
||||||
# bindr = SUPER, SUPER_L, exec, $menu
|
|
||||||
bind = $mainMod, D, exec, vesktop
|
|
||||||
bind = $mainMod, F, exec, firefox
|
|
||||||
bind = $mainMod SHIFT, F, exec, qutebrowser
|
|
||||||
bind = $mainMod SHIFT, Q, exec, qutebrowser
|
|
||||||
bind = $mainMod, SPACE, exec, playerctl play-pause
|
|
||||||
# bind = FUNCTION, L, exec, command, qs noctalia-shell ipc call lockScreen lock
|
|
||||||
bind = ALT_L, C, exec, $ipc plugin:clipper openPanel
|
|
||||||
bind = ,code:148, exec, kitty --class calc-term -o "confirm_os_window_close 0" /home/venus/.cargo/bin/mathypad
|
|
||||||
bind = SUPER, escape, exec, kitty --class btop -o "confirm_os_window_close 0" /usr/bin/btop
|
|
||||||
bind = SUPER SHIFT, escape, exec, kitty --class btop -o "confirm_os_window_close 0" /usr/bin/nvtop
|
|
||||||
bind = $mainMod, I, exec, /home/venus/.config/scripts/connectPhone.sh
|
|
||||||
bind = $mainMod, I, exec, scrcpy --no-audio --no-video --keyboard=uhid --mouse=uhid
|
|
||||||
bind = $mainMod SHIFT, I, exec, /home/venus/.config/scripts/connectPhone.sh
|
|
||||||
bind = $mainMod SHIFT, I, exec, scrcpy --no-audio --keyboard=uhid --mouse=uhid
|
|
||||||
|
|
||||||
bind = CTRL,SHIFT ESCAPE, exec, btop++
|
|
||||||
bind = $mainMod, T, exec, notify-send "$(/home/venus/.config/hypr/scripts/getIp.sh)"
|
|
||||||
bind = $mainMod, T, exec, kdeconnect-app
|
|
||||||
|
|
||||||
# Change background opacity of terminal window
|
|
||||||
# bind = $mainMod ALT, k, exec,kitty +kitten @ set-background-opacity -a 1
|
|
||||||
|
|
||||||
# 11. hande lid switch
|
|
||||||
# bindl = , switch:Lid Switch, exec, s$ipc lockScreen lock
|
|
||||||
#Plugin shortcuts
|
|
||||||
# This will toggle HyprExpo when SUPER+g is pressed
|
|
||||||
|
|
||||||
### GESTURES
|
|
||||||
gesture = 3, up, dispatcher, hyprexpo:expo
|
|
||||||
# gesture = 3, pinch, special, magic
|
|
||||||
gesture = 3, down, special, magic
|
|
||||||
# gesture = 3, up, dispatcher, overview:toggle
|
|
||||||
|
|
||||||
|
|
||||||
# 12. quick access to controls submap
|
|
||||||
bind = $mainMod, comma, exec, $ipc controlCenter toggle
|
|
||||||
bind = $mainMod, period, exec, $ipc settings toggle
|
|
||||||
bind = , PRINT, exec, hyprshot -m active -m window --output-folder ~/Images/Screenshots
|
|
||||||
bind = SHIFT, PRINT, exec, hyprshot -m region --output-folder ~/Images/Screenshots
|
|
||||||
bind = ALT, PRINT, exec, hyprshot -m active -m output --output-folder ~/Images/Screenshots
|
|
||||||
|
|
||||||
bind = $mainMod, M, exec, $ipc controlCenter toggle #& hyprctl dispatch submap quick-settings
|
|
||||||
bind = $mainMod, M, submap, quick-settings
|
|
||||||
bind = $mainMod, O, submap, open-apps
|
|
||||||
|
|
||||||
# 13. Mouse binds
|
|
||||||
|
|
||||||
submap = quick-settings, reset
|
|
||||||
bind = , V, exec, protonvpn-app & hyprctl dispatch submap vpn
|
|
||||||
bind = , S, exec, $ipc settings toggle
|
|
||||||
bind = , C, exec, $ipc plugin:clipper togglePanel
|
|
||||||
bind = , P, exec, $ipc sessionMenu toggle
|
|
||||||
bind = $mainMod, L, exec, $ipc sessionMenu toggle
|
|
||||||
bind = , T, exec, $ipc systemMonitor toggle
|
|
||||||
bind = , M, exec, $ipc controlCenter toggle
|
|
||||||
bind = , D, exec, $ipc notifications toggleDND
|
|
||||||
bind = , A, exec, $ipc notifications dismissAll
|
|
||||||
bind = , N, exec, $ipc notifications toggleHistory & hyprctl dispatch submap notifications-sub
|
|
||||||
# bind = , L, exec, notify-send "layout switching" & hyprctl dispatch submap layouts
|
|
||||||
bind = , L, submap, layouts
|
|
||||||
# To Do bind clear and dnd toggles inside this shell
|
|
||||||
bind = SHIFT, B, exec, $ipc bar toggle
|
|
||||||
bind = , P, exec, $ipc wallpaper toggle
|
|
||||||
bind = , B, exec, $ipc bluetooth togglePanel & hyprctl dispatch submap bt-sub
|
|
||||||
# To Do add submenu for bt
|
|
||||||
bind = , W, exec, $ipc network togglePanel & hyprctl dispatch submap wifi-sub
|
|
||||||
bind = SHIFT, W, exec, $ipc wifi toggle # toggle wifi
|
|
||||||
bind = $mainMod, B, exec, $ipc battery togglePanel # toggle battery panel
|
|
||||||
bind = $mainMod, C, exec, $ipc calendar toggle
|
|
||||||
bind = , E, exec, nvim /home/venus/.config/hypr/basic/keybinds
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
submap = notifications-sub
|
|
||||||
bind = , D, exec, $ipc notifications toggleDND
|
|
||||||
bind = , S, exec, $ipc notifications toggleDND
|
|
||||||
bind = , Q, exec, $ipc notifications toggleDND
|
|
||||||
bind = , A, exec, $ipc notifications dismissAll
|
|
||||||
bind = CTRL, D, exec, $ipc notifications dismissAll
|
|
||||||
bind = SHIFT, D, exec, $ipc notifications dismissAll
|
|
||||||
bind = $mainMod, D, exec, $ipc notifications dismissAll
|
|
||||||
bind = , C, exec, $ipc notifications clear
|
|
||||||
bind = , catchall, exec, hyprctl dispatch submap reset && qs -c noctalia-shell ipc call notifications toggleHistory
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
submap = wifi-sub
|
|
||||||
$call = exec, $ipc wifi
|
|
||||||
bind = , T, $call toggle
|
|
||||||
bind = , S, $call togglePanel
|
|
||||||
bind = , D, $call disable
|
|
||||||
bind = , E, $call enable
|
|
||||||
bind = , R, exec, sudo systemctl restart iwd
|
|
||||||
bind = , catchall, exec, hyprctl dispatch submap reset && qs -c noctalia-shell ipc call network togglePanel
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
submap = bt-sub
|
|
||||||
$call = exec, $ipc bluetooth
|
|
||||||
bind = , T, $call toggle
|
|
||||||
bind = , S, $call togglePanel
|
|
||||||
bind = , D, $call disable
|
|
||||||
bind = , E, $call enable
|
|
||||||
bind = , H, exec, sh -c "bluetoothctl connect 88:92:CC:53:88:7E" && notify-send "connected to headphones"
|
|
||||||
bind = , J, exec, sh -c "bluetoothctl disconnect 88:92:CC:53:88:7E" && notify-send "disconnected from headphones"
|
|
||||||
bind = , P, exec, sh -c "bluetoothctl connect 64:9D:38:E0:4D:02" && notify-send "Connected to phone"
|
|
||||||
bind = , M, exec, sh -c "bluetoothctl disconnect 64:9D:38:E0:4D:02" && notify-send "Disconnected from phone"
|
|
||||||
# bind = CTRL, H, exec, bluetoothctl connect 88:92:CC:53:88:7E
|
|
||||||
# bind = , escape, submap, reset
|
|
||||||
bind = , catchall, exec, hyprctl dispatch submap reset && qs -c noctalia-shell ipc call bluetooth togglePanel
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
submap = vpn
|
|
||||||
$call = exec, protonvpn
|
|
||||||
bind = , O, $call-app
|
|
||||||
bind = , C, $call connect
|
|
||||||
bind = , D, $call disconnect
|
|
||||||
bind = , catchall, submap, reset
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
submap = open-apps, reset
|
|
||||||
bind = , S, exec, signal-desktop
|
|
||||||
bind = , D, exec, vesktop
|
|
||||||
bind = , F, exec, firefox
|
|
||||||
bind = , Q, exec, qutebrowser
|
|
||||||
bind = , M, exec, feishin
|
|
||||||
bind = , O, exec, obsidian
|
|
||||||
bind = , T, exec, thunderbird
|
|
||||||
bind = , R, exec, calibre
|
|
||||||
bind = , E, exec, darktable
|
|
||||||
bind = , catchall, submap, reset
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
submap = layouts, reset
|
|
||||||
bind = , D, exec, hyprctl general:layout dwindle
|
|
||||||
bind = , M, exec, hyprctl general:layout master
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
|
|
||||||
# 13. Misc tools.
|
|
||||||
bind = ALT, SPACE, exec, $menu
|
|
||||||
bind = $mainMod CTRL, L, exec, $ipc lockScreen lock
|
|
||||||
@@ -1,269 +0,0 @@
|
|||||||
## KEYBINDINGS ###
|
|
||||||
###################
|
|
||||||
|
|
||||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
|
||||||
$ipc = qs -c noctalia-shell ipc call
|
|
||||||
|
|
||||||
# 1. Basic Binds
|
|
||||||
bind = $mainMod, Q, exec, $terminal
|
|
||||||
bind = ALT, Q, exec, $terminal --class popup-term
|
|
||||||
bind = $mainMod, W, exec, $terminal --class popup-term
|
|
||||||
bind = $mainMod, C, killactive,
|
|
||||||
bind = $mainMod SHIFT CTRL, M, exec, command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit
|
|
||||||
# bind = $mainMod, E, exec, $fileManager
|
|
||||||
|
|
||||||
# Workspace movement and tiling rule
|
|
||||||
bind = $mainMod, P, togglefloating,
|
|
||||||
bind = $mainMod, P, pin,
|
|
||||||
bind = $mainMod SHIFT, BACKSLASH, togglefloating, # float
|
|
||||||
bind = $mainMod, BACKSLASH, layoutmsg, togglesplit # dwindle
|
|
||||||
bind = $mainMod CTRL, BACKSLASH, pseudo #
|
|
||||||
|
|
||||||
# bind = $mainMod, SEMICOLON, exec, hyprctl general:layout master
|
|
||||||
# bind = $mainMod, APOSTROPHE, exec, hyprctl general:layout dwindle
|
|
||||||
|
|
||||||
# Compiler window
|
|
||||||
bind = $mainMod SHIFT, A, tagwindow, compiler
|
|
||||||
bind = $mainMod, A, exec, $XDG_CONFIG_HOME/hypr/scripts/compile.sh
|
|
||||||
|
|
||||||
# 2. moving focus with vim
|
|
||||||
bind = $mainMod, H, movefocus, l
|
|
||||||
bind = $mainMod, L, movefocus, r
|
|
||||||
bind = $mainMod, K, movefocus, u
|
|
||||||
bind = $mainMod, J, movefocus, d
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT, H, moveWindow, l
|
|
||||||
bind = $mainMod SHIFT, L, moveWindow, r
|
|
||||||
bind = $mainMod SHIFT, K, moveWindow, u
|
|
||||||
bind = $mainMod SHIFT, J, moveWindow, d
|
|
||||||
|
|
||||||
bind = $mainMod, mouse_up, workspace, m-1
|
|
||||||
bind = $mainMod, mouse_down, workspace, m-1
|
|
||||||
|
|
||||||
bind = $mainMod SHIFT , mouse_up, workspace, e-1
|
|
||||||
bind = $mainMod SHIFT , mouse_down, workspace, e-1
|
|
||||||
|
|
||||||
bind = $mainMod CTRL, right, workspace, m+1 # alt-tab switch workspace
|
|
||||||
bind = $mainMod CTRL, left, workspace, m-1 # alt-tab switch workspace
|
|
||||||
|
|
||||||
bind = CTRL, SPACE, focuscurrentorlast
|
|
||||||
|
|
||||||
# bind = $mainMod, TAB, focusmonitor, +1
|
|
||||||
# bind = $mainMod SHIFT, TAB, focusmonitor, -1
|
|
||||||
|
|
||||||
# bind = ALT, TAB, hyprexpo:expo, toggle
|
|
||||||
# bind = ALT, TAB, overview:toggle, all
|
|
||||||
|
|
||||||
# 3. resize with arrows
|
|
||||||
binde = $mainMod, right, resizeActive, 20 0
|
|
||||||
binde = $mainMod, left, resizeActive, -20 0
|
|
||||||
binde = $mainMod, up, resizeActive, 0 -20
|
|
||||||
binde = $mainMod, down, resizeActive, 0 20
|
|
||||||
|
|
||||||
# 4. Switch workspaces with mainMod + [0-9]
|
|
||||||
bind = $mainMod, 1, workspace, 1
|
|
||||||
bind = $mainMod, 2, workspace, 2
|
|
||||||
bind = $mainMod, 3, workspace, 3
|
|
||||||
bind = $mainMod, 4, workspace, 4
|
|
||||||
bind = $mainMod, 5, workspace, 5
|
|
||||||
bind = $mainMod, 6, workspace, 6
|
|
||||||
bind = $mainMod, 7, workspace, 7
|
|
||||||
bind = $mainMod, 8, workspace, 8
|
|
||||||
bind = $mainMod, 9, workspace, 9
|
|
||||||
bind = $mainMod, 0, workspace, 10
|
|
||||||
|
|
||||||
# 5. Move actihe window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
|
||||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
|
||||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
|
||||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
|
||||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
|
||||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
|
||||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
|
||||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
|
||||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
|
||||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
|
||||||
|
|
||||||
# 6. special workspace (scratchpad)
|
|
||||||
bind = $mainMod, S, togglespecialworkspace, magic
|
|
||||||
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
|
||||||
|
|
||||||
bind = $mainMod, B, togglespecialworkspace, magic2
|
|
||||||
bind = $mainMod SHIFT, B, movetoworkspace, special:book
|
|
||||||
|
|
||||||
bind = $mainMod, D, exec, discord
|
|
||||||
bind = $mainMod, D, togglespecialworkspace, discord
|
|
||||||
|
|
||||||
bind = $mainMod, E, exec, $email
|
|
||||||
bind = $mainMod, E, togglespecialworkspace, email
|
|
||||||
|
|
||||||
bind = $mainMod, G, exec, steam -forcedesktopscaling 0.5
|
|
||||||
bind = $mainMod, G, togglespecialworkspace, gaming
|
|
||||||
|
|
||||||
bind = $mainMod, N, togglespecialworkspace, notes
|
|
||||||
|
|
||||||
bind = $mainMod, X, togglespecialworkspace, phantom
|
|
||||||
bind = $mainMod, X, togglespecialworkspace, phantom
|
|
||||||
|
|
||||||
# 7. Other Workspace tools
|
|
||||||
# 8. Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
bindm = $mainMod, mouse:272, movewindow
|
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
|
||||||
|
|
||||||
# 9. Laptop multimedia keys for volume and LCD brightness
|
|
||||||
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
|
||||||
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
|
||||||
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
|
||||||
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
|
||||||
bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+
|
|
||||||
bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
|
|
||||||
|
|
||||||
# Requires playerctl
|
|
||||||
bindl = , XF86AudioNext, exec, playerctl next
|
|
||||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
|
||||||
bind = ALT, mouse:274, exec, playerctl play-pause
|
|
||||||
|
|
||||||
|
|
||||||
# 10. Applications and shortcuts
|
|
||||||
# bindr = SUPER, SUPER_L, exec, $menu
|
|
||||||
bind = $mainMod, D, exec, vesktop
|
|
||||||
bind = $mainMod, F, exec, firefox
|
|
||||||
bind = $mainMod SHIFT, F, exec, qutebrowser
|
|
||||||
bind = $mainMod SHIFT, Q, exec, qutebrowser
|
|
||||||
bind = $mainMod, SPACE, exec, playerctl play-pause
|
|
||||||
# bind = FUNCTION, L, exec, command, qs noctalia-shell ipc call lockScreen lock
|
|
||||||
bind = ALT_L, C, exec, $ipc plugin:clipper openPanel
|
|
||||||
bind = ,code:148, exec, kitty --class calc-term -o "confirm_os_window_close 0" /home/venus/.cargo/bin/mathypad
|
|
||||||
bind = SUPER, escape, exec, kitty --class btop -o "confirm_os_window_close 0" /usr/bin/btop
|
|
||||||
bind = SUPER SHIFT, escape, exec, kitty --class btop -o "confirm_os_window_close 0" /usr/bin/nvtop
|
|
||||||
bind = $mainMod, I, exec, /home/venus/.config/scripts/connectPhone.sh
|
|
||||||
bind = $mainMod, I, exec, scrcpy --no-audio --no-video --keyboard=uhid --mouse=uhid
|
|
||||||
bind = $mainMod SHIFT, I, exec, /home/venus/.config/scripts/connectPhone.sh
|
|
||||||
bind = $mainMod SHIFT, I, exec, scrcpy --no-audio --keyboard=uhid --mouse=uhid
|
|
||||||
|
|
||||||
bind = CTRL,SHIFT ESCAPE, exec, btop++
|
|
||||||
bind = $mainMod, T, exec, notify-send "$(/home/venus/.config/hypr/scripts/getIp.sh)"
|
|
||||||
bind = $mainMod, T, exec, kdeconnect-app
|
|
||||||
|
|
||||||
# Change background opacity of terminal window
|
|
||||||
# bind = $mainMod ALT, k, exec,kitty +kitten @ set-background-opacity -a 1
|
|
||||||
|
|
||||||
# 11. hande lid switch
|
|
||||||
# bindl = , switch:Lid Switch, exec, s$ipc lockScreen lock
|
|
||||||
#Plugin shortcuts
|
|
||||||
# This will toggle HyprExpo when SUPER+g is pressed
|
|
||||||
|
|
||||||
### GESTURES
|
|
||||||
gesture = 3, up, dispatcher, hyprexpo:expo
|
|
||||||
# gesture = 3, pinch, special, magic
|
|
||||||
gesture = 3, down, special, magic
|
|
||||||
# gesture = 3, up, dispatcher, overview:toggle
|
|
||||||
|
|
||||||
|
|
||||||
# 12. quick access to controls submap
|
|
||||||
bind = $mainMod, comma, exec, $ipc controlCenter toggle
|
|
||||||
bind = $mainMod, period, exec, $ipc settings toggle
|
|
||||||
bind = , PRINT, exec, hyprshot -m active -m window --output-folder ~/Images/Screenshots
|
|
||||||
bind = SHIFT, PRINT, exec, hyprshot -m region --output-folder ~/Images/Screenshots
|
|
||||||
bind = ALT, PRINT, exec, hyprshot -m active -m output --output-folder ~/Images/Screenshots
|
|
||||||
|
|
||||||
bind = $mainMod, M, exec, $ipc controlCenter toggle #& hyprctl dispatch submap quick-settings
|
|
||||||
bind = $mainMod, M, submap, quick-settings
|
|
||||||
bind = $mainMod, O, submap, open-apps
|
|
||||||
|
|
||||||
# 13. Mouse binds
|
|
||||||
|
|
||||||
submap = quick-settings, reset
|
|
||||||
bind = , V, exec, protonvpn-app & hyprctl dispatch submap vpn
|
|
||||||
bind = , S, exec, $ipc settings toggle
|
|
||||||
bind = , C, exec, $ipc plugin:clipper togglePanel
|
|
||||||
bind = , P, exec, $ipc sessionMenu toggle
|
|
||||||
bind = $mainMod, L, exec, $ipc sessionMenu toggle
|
|
||||||
bind = , T, exec, $ipc systemMonitor toggle
|
|
||||||
bind = , M, exec, $ipc controlCenter toggle
|
|
||||||
bind = , D, exec, $ipc notifications toggleDND
|
|
||||||
bind = , A, exec, $ipc notifications dismissAll
|
|
||||||
bind = , N, exec, $ipc notifications toggleHistory & hyprctl dispatch submap notifications-sub
|
|
||||||
# bind = , L, exec, notify-send "layout switching" & hyprctl dispatch submap layouts
|
|
||||||
bind = , L, submap, layouts
|
|
||||||
# To Do bind clear and dnd toggles inside this shell
|
|
||||||
bind = SHIFT, B, exec, $ipc bar toggle
|
|
||||||
bind = , P, exec, $ipc wallpaper toggle
|
|
||||||
bind = , B, exec, $ipc bluetooth togglePanel & hyprctl dispatch submap bt-sub
|
|
||||||
# To Do add submenu for bt
|
|
||||||
bind = , W, exec, $ipc network togglePanel & hyprctl dispatch submap wifi-sub
|
|
||||||
bind = SHIFT, W, exec, $ipc wifi toggle # toggle wifi
|
|
||||||
bind = $mainMod, B, exec, $ipc battery togglePanel # toggle battery panel
|
|
||||||
bind = $mainMod, C, exec, $ipc calendar toggle
|
|
||||||
bind = , E, exec, nvim /home/venus/.config/hypr/basic/keybinds
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
submap = notifications-sub
|
|
||||||
bind = , D, exec, $ipc notifications toggleDND
|
|
||||||
bind = , S, exec, $ipc notifications toggleDND
|
|
||||||
bind = , Q, exec, $ipc notifications toggleDND
|
|
||||||
bind = , A, exec, $ipc notifications dismissAll
|
|
||||||
bind = CTRL, D, exec, $ipc notifications dismissAll
|
|
||||||
bind = SHIFT, D, exec, $ipc notifications dismissAll
|
|
||||||
bind = $mainMod, D, exec, $ipc notifications dismissAll
|
|
||||||
bind = , C, exec, $ipc notifications clear
|
|
||||||
bind = , catchall, exec, hyprctl dispatch submap reset && qs -c noctalia-shell ipc call notifications toggleHistory
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
submap = wifi-sub
|
|
||||||
$call = exec, $ipc wifi
|
|
||||||
bind = , T, $call toggle
|
|
||||||
bind = , S, $call togglePanel
|
|
||||||
bind = , D, $call disable
|
|
||||||
bind = , E, $call enable
|
|
||||||
bind = , R, exec, sudo systemctl restart iwd
|
|
||||||
bind = , catchall, exec, hyprctl dispatch submap reset && qs -c noctalia-shell ipc call network togglePanel
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
submap = bt-subbind = SUPER, Space, exec, rofi -- This launches the menu
|
|
||||||
$call = exec, $ipc bluetooth
|
|
||||||
bind = , T, $call toggle
|
|
||||||
bind = , S, $call togglePanel
|
|
||||||
bind = , D, $call disable
|
|
||||||
bind = , E, $call enable
|
|
||||||
bind = , H, exec, sh -c "bluetoothctl connect 88:92:CC:53:88:7E" && notify-send "connected to headphones"
|
|
||||||
bind = , J, exec, sh -c "bluetoothctl disconnect 88:92:CC:53:88:7E" && notify-send "disconnected from headphones"
|
|
||||||
bind = , P, exec, sh -c "bluetoothctl connect 64:9D:38:E0:4D:02" && notify-send "Connected to phone"
|
|
||||||
bind = , M, exec, sh -c "bluetoothctl disconnect 64:9D:38:E0:4D:02" && notify-send "Disconnected from phone"
|
|
||||||
# bind = CTRL, H, exec, bluetoothctl connect 88:92:CC:53:88:7E
|
|
||||||
# bind = , escape, submap, reset
|
|
||||||
bind = , catchall, exec, hyprctl dispatch submap reset && qs -c noctalia-shell ipc call bluetooth togglePanel
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
submap = vpn
|
|
||||||
$call = exec, protonvpn
|
|
||||||
bind = , O, $call-app
|
|
||||||
bind = , C, $call connect
|
|
||||||
bind = , D, $call disconnect
|
|
||||||
bind = , catchall, submap, reset
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
submap = open-apps, reset
|
|
||||||
bind = , S, exec, signal-desktop
|
|
||||||
bind = , D, exec, vesktop
|
|
||||||
bind = , F, exec, firefox
|
|
||||||
bind = , Q, exec, qutebrowser
|
|
||||||
bind = , M, exec, feishin
|
|
||||||
bind = , O, exec, obsidian
|
|
||||||
bind = , T, exec, thunderbird
|
|
||||||
bind = , R, exec, calibre
|
|
||||||
bind = , E, exec, darktable
|
|
||||||
bind = , catchall, submap, reset
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
submap = layouts, reset
|
|
||||||
bind = , D, exec, hyprctl general:layout dwindle
|
|
||||||
bind = , M, exec, hyprctl general:layout master
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
|
|
||||||
# 13. Misc tools.
|
|
||||||
bind = ALT, SPACE, exec, $menu
|
|
||||||
bind = $mainMod CTRL, L, exec, $ipc lockScreen lock
|
|
||||||
106
basic/looks.conf
Normal file
106
basic/looks.conf
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
#####################
|
||||||
|
### LOOK AND FEEL ###
|
||||||
|
#####################
|
||||||
|
|
||||||
|
# Refer to https://wiki.hypr.land/Configuring/Variables/
|
||||||
|
|
||||||
|
# https://wiki.hypr.land/Configuring/Variables/#general
|
||||||
|
general {
|
||||||
|
gaps_in = 5
|
||||||
|
gaps_out = 10
|
||||||
|
}
|
||||||
|
|
||||||
|
decoration {
|
||||||
|
rounding = 20
|
||||||
|
rounding_power = 2
|
||||||
|
|
||||||
|
shadow {
|
||||||
|
enabled = true
|
||||||
|
range = 4
|
||||||
|
render_power = 3
|
||||||
|
color = rgba(1a1a1aee)
|
||||||
|
}
|
||||||
|
|
||||||
|
blur {
|
||||||
|
enabled = true
|
||||||
|
size = 3
|
||||||
|
passes = 2
|
||||||
|
vibrancy = 0.1696
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# https://wiki.hypr.land/Configuring/Variables/#animations
|
||||||
|
animations {
|
||||||
|
enabled = yes, please :)
|
||||||
|
|
||||||
|
# Default curves, see https://wiki.hypr.land/Configuring/Animations/#curves
|
||||||
|
# NAME, X0, Y0, X1, Y1
|
||||||
|
bezier = easeOutQuint, 0.23, 1, 0.32, 1
|
||||||
|
bezier = easeInOutCubic, 0.65, 0.05, 0.36, 1
|
||||||
|
bezier = linear, 0, 0, 1, 1
|
||||||
|
bezier = almostLinear, 0.5, 0.5, 0.75, 1
|
||||||
|
bezier = quick, 0.15, 0, 0.1, 1
|
||||||
|
|
||||||
|
# Default animations, see https://wiki.hypr.land/Configuring/Animations/
|
||||||
|
# NAME, ONOFF, SPEED, CURVE, [STYLE]
|
||||||
|
animation = global, 1, 10, default
|
||||||
|
animation = border, 1, 5.39, easeOutQuint
|
||||||
|
animation = windows, 1, 4.79, easeOutQuint
|
||||||
|
animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
|
||||||
|
animation = windowsOut, 1, 1.49, linear, popin 87%
|
||||||
|
animation = fadeIn, 1, 1.73, almostLinear
|
||||||
|
animation = fadeOut, 1, 1.46, almostLinear
|
||||||
|
animation = fade, 1, 3.03, quick
|
||||||
|
animation = layers, 1, 3.81, easeOutQuint
|
||||||
|
animation = layersIn, 1, 4, easeOutQuint, fade
|
||||||
|
animation = layersOut, 1, 1.5, linear, fade
|
||||||
|
animation = fadeLayersIn, 1, 1.79, almostLinear
|
||||||
|
animation = fadeLayersOut, 1, 1.39, almostLinear
|
||||||
|
animation = workspaces, 1, 1.94, almostLinear, fade
|
||||||
|
animation = workspacesIn, 1, 1.21, almostLinear, fade
|
||||||
|
animation = workspacesOut, 1, 1.94, almostLinear, fade
|
||||||
|
animation = zoomFactor, 1, 7, quick
|
||||||
|
}
|
||||||
|
|
||||||
|
# Ref https://wiki.hypr.land/Configuring/Workspace-Rules/
|
||||||
|
# "Smart gaps" / "No gaps when only"
|
||||||
|
# uncomment all if you wish to use that.
|
||||||
|
# workspace = w[tv1], gapsout:0, gapsin:0
|
||||||
|
# workspace = f[1], gapsout:0, gapsin:0
|
||||||
|
# windowrule {
|
||||||
|
# name = no-gaps-wtv1
|
||||||
|
# match:float = false
|
||||||
|
# match:workspace = w[tv1]
|
||||||
|
#
|
||||||
|
# border_size = 0
|
||||||
|
# rounding = 0
|
||||||
|
# }
|
||||||
|
#
|
||||||
|
# windowrule {
|
||||||
|
# name = no-gaps-f1
|
||||||
|
# match:float = false
|
||||||
|
# match:workspace = f[1]
|
||||||
|
#
|
||||||
|
# border_size = 0
|
||||||
|
# rounding = 0
|
||||||
|
# }
|
||||||
|
|
||||||
|
# See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more
|
||||||
|
# dwindle {
|
||||||
|
# pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||||
|
# preserve_split = true # You probably want this
|
||||||
|
# }
|
||||||
|
|
||||||
|
# See https://wiki.hypr.land/Configuring/Master-Layout/ for more
|
||||||
|
master {
|
||||||
|
new_status = master
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hypr.land/Configuring/Variables/#misc
|
||||||
|
misc {
|
||||||
|
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||||
|
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -5,15 +5,18 @@
|
|||||||
-- Refer to https://wiki.hypr.land/Configuring/Variables/
|
-- Refer to https://wiki.hypr.land/Configuring/Variables/
|
||||||
|
|
||||||
-- https://wiki.hypr.land/Configuring/Variables/--general
|
-- https://wiki.hypr.land/Configuring/Variables/--general
|
||||||
|
-- Bypass the Lua module cache to load fresh Noctalia colors on reload
|
||||||
|
local colors = dofile(os.getenv("HOME") .. "/.config/hypr/noctalia/noctalia-colors.lua")
|
||||||
|
|
||||||
hl.config ({
|
hl.config ({
|
||||||
general = {
|
general = {
|
||||||
gaps_in = 3,
|
gaps_in = 5,
|
||||||
gaps_out = 5,
|
gaps_out = 10,
|
||||||
border_size = 1,
|
border_size = 1,
|
||||||
-- https://wiki.hypr.land/Configuring/Variables/--variable-types for info about colors,
|
-- https://wiki.hypr.land/Configuring/Variables/--variable-types for info about colors,
|
||||||
col = {
|
col = {
|
||||||
active_border = { colors = { "rgba(33ccffee)", "rgba(00ff99ee)"}, angle = 45},
|
["active_border"] = { colors = { colors.primary, colors.tertiary }, angle = 9},
|
||||||
inactive_border = "rgba(595959aa)",
|
["inactive_border"] = colors.background,
|
||||||
},
|
},
|
||||||
-- Set to true enable resizing windows by clicking and dragging on borders and gaps,
|
-- Set to true enable resizing windows by clicking and dragging on borders and gaps,
|
||||||
|
|
||||||
@@ -26,22 +29,22 @@ hl.config ({
|
|||||||
|
|
||||||
-- https://wiki.hypr.land/Configuring/Variables/--decoration
|
-- https://wiki.hypr.land/Configuring/Variables/--decoration
|
||||||
decoration = {
|
decoration = {
|
||||||
rounding = 10,
|
rounding = 20,
|
||||||
rounding_power = 2,
|
rounding_power = 2,
|
||||||
-- Change transparency of focused and unfocused windows,
|
-- Change transparency of focused and unfocused windows,
|
||||||
active_opacity = 1.0,
|
active_opacity = 1.0,
|
||||||
inactive_opacity = 1.0,
|
inactive_opacity = 1.0,
|
||||||
shadow = {
|
shadow = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
range = 4,
|
range = 5,
|
||||||
render_power = 3,
|
render_power = 7,
|
||||||
color = "rgba(1a1a1aee)",
|
color = colors.background,
|
||||||
},
|
},
|
||||||
-- https://wiki.hypr.land/Configuring/Variables/--blur,
|
-- https://wiki.hypr.land/Configuring/Variables/--blur,
|
||||||
blur = {
|
blur = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
size = 3,
|
size = 3,
|
||||||
passes = 1,
|
passes = 2,
|
||||||
vibrancy = 0.1696,
|
vibrancy = 0.1696,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
|
|
||||||
source = /home/venus/.config/hypr/noctalia/noctalia-colors.conf
|
|
||||||
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
################
|
|
||||||
### STARTUP ###
|
|
||||||
################
|
|
||||||
|
|
||||||
$terminal = kitty
|
|
||||||
$fileManager = dolphin
|
|
||||||
$menu = qs -c noctalia-shell ipc call launcher toggle
|
|
||||||
# $menu = vicinae open
|
|
||||||
$browser = qutebrowser
|
|
||||||
$menuBar = qs -c noctalia-shell
|
|
||||||
$shellWrapper = qs -c noctalia-shell
|
|
||||||
$blkmanager = udiskie
|
|
||||||
$email = thunderbird
|
|
||||||
|
|
||||||
exec-once = qs -c noctalia-shell
|
|
||||||
exec-once = systemctl --user start hyprpolkitagent
|
|
||||||
exec-once = udiskie
|
|
||||||
exec-once = hyprpm reload -n
|
|
||||||
exec-once = kdeconnectd
|
|
||||||
exec-once = hyprshell run &
|
|
||||||
exec-once = [workspace special:discord silent] vesktop -m
|
|
||||||
exec-once = [workspace special:email silent] $email
|
|
||||||
exec-once = [workspace special:notes silent] obsidian
|
|
||||||
exec-once = protonmail-bridge --no-window
|
|
||||||
|
|
||||||
general:layout = dwindle
|
|
||||||
|
|
||||||
|
|
||||||
#############################
|
|
||||||
### ENVIRONMENT VARIABLES ###
|
|
||||||
#############################
|
|
||||||
|
|
||||||
# See https://wiki.hypr.land/Configuring/Environment-variables/
|
|
||||||
|
|
||||||
env = XCURSOR_SIZE,24
|
|
||||||
env = HYPRCURSOR_SIZE,24
|
|
||||||
env = ELECTRON_OZONE_PLATFORM_HINT,auto
|
|
||||||
|
|
||||||
#_____________________________#
|
|
||||||
|
|
||||||
$base = /home/venus/.config/hypr
|
|
||||||
$basic = $base/basic
|
|
||||||
|
|
||||||
|
|
||||||
source = $basic/looks.conf
|
|
||||||
source = $base/noctalia/noctalia-colors.conf
|
|
||||||
source = $basic/keybinds.conf
|
|
||||||
source = $basic/windows.conf
|
|
||||||
source = $basic/plugins.conf
|
|
||||||
source = $basic/inputs.conf
|
|
||||||
source = $basic/permissions.conf
|
|
||||||
source = $base/monitors.conf
|
|
||||||
#wayland rules in basic/windows.conf
|
|
||||||
|
|
||||||
source = $base/noctalia/noctalia-colors.conf
|
|
||||||
|
|
||||||
|
|
||||||
source = /home/venus/.config/hypr/noctalia/noctalia-colors.conf
|
|
||||||
|
|
||||||
12
noctalia/noctalia-colors.lua
Normal file
12
noctalia/noctalia-colors.lua
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
-- ~/.config/noctalia/templates/hyprland-colors.lua
|
||||||
|
-- Automatically generated by Noctalia user-templates
|
||||||
|
|
||||||
|
local colors = {
|
||||||
|
background = "#121316",
|
||||||
|
primary = "#9fcaff",
|
||||||
|
tertiary = "#d7bee4",
|
||||||
|
secondary = "#bbc7db",
|
||||||
|
error = "#ffb4ab",
|
||||||
|
}
|
||||||
|
|
||||||
|
return colors
|
||||||
356
old.hyprland.lua
356
old.hyprland.lua
@@ -1,356 +0,0 @@
|
|||||||
-- This is an example Hyprland Lua config file.
|
|
||||||
-- Refer to the wiki for more information.
|
|
||||||
-- https://wiki.hypr.land/Configuring/Start/
|
|
||||||
|
|
||||||
-- Please note not all available settings / options are set here.
|
|
||||||
-- For a full list, see the wiki
|
|
||||||
|
|
||||||
-- You can (and should!!) split this configuration into multiple files
|
|
||||||
-- Create your files separately and then require them like this:
|
|
||||||
-- require("myColors")
|
|
||||||
|
|
||||||
|
|
||||||
------------------
|
|
||||||
---- MONITORS ----
|
|
||||||
------------------
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Basics/Monitors/
|
|
||||||
hl.monitor({
|
|
||||||
output = "",
|
|
||||||
mode = "preferred",
|
|
||||||
position = "auto",
|
|
||||||
scale = "auto",
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
---------------------
|
|
||||||
---- MY PROGRAMS ----
|
|
||||||
---------------------
|
|
||||||
|
|
||||||
-- Set programs that you use
|
|
||||||
local terminal = "kitty"
|
|
||||||
local fileManager = "dolphin"
|
|
||||||
local menu = "hyprlauncher"
|
|
||||||
|
|
||||||
|
|
||||||
-------------------
|
|
||||||
---- AUTOSTART ----
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Basics/Autostart/
|
|
||||||
|
|
||||||
-- Autostart necessary processes (like notifications daemons, status bars, etc.)
|
|
||||||
-- Or execute your favorite apps at launch like this:
|
|
||||||
--
|
|
||||||
-- hl.on("hyprland.start", function ()
|
|
||||||
-- hl.exec_cmd(terminal)
|
|
||||||
-- hl.exec_cmd("nm-applet")
|
|
||||||
-- hl.exec_cmd("waybar & hyprpaper & firefox")
|
|
||||||
-- end)
|
|
||||||
|
|
||||||
|
|
||||||
-------------------------------
|
|
||||||
---- ENVIRONMENT VARIABLES ----
|
|
||||||
-------------------------------
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Environment-variables/
|
|
||||||
|
|
||||||
hl.env("XCURSOR_SIZE", "24")
|
|
||||||
hl.env("HYPRCURSOR_SIZE", "24")
|
|
||||||
|
|
||||||
|
|
||||||
-----------------------
|
|
||||||
----- PERMISSIONS -----
|
|
||||||
-----------------------
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Permissions/
|
|
||||||
-- Please note permission changes here require a Hyprland restart and are not applied on-the-fly
|
|
||||||
-- for security reasons
|
|
||||||
|
|
||||||
-- hl.config({
|
|
||||||
-- ecosystem = {
|
|
||||||
-- enforce_permissions = true,
|
|
||||||
-- },
|
|
||||||
-- })
|
|
||||||
|
|
||||||
-- hl.permission("/usr/(bin|local/bin)/grim", "screencopy", "allow")
|
|
||||||
-- hl.permission("/usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland", "screencopy", "allow")
|
|
||||||
-- hl.permission("/usr/(bin|local/bin)/hyprpm", "plugin", "allow")
|
|
||||||
|
|
||||||
|
|
||||||
-----------------------
|
|
||||||
---- LOOK AND FEEL ----
|
|
||||||
-----------------------
|
|
||||||
|
|
||||||
-- Refer to https://wiki.hypr.land/Configuring/Basics/Variables/
|
|
||||||
hl.config({
|
|
||||||
general = {
|
|
||||||
gaps_in = 5,
|
|
||||||
gaps_out = 20,
|
|
||||||
|
|
||||||
border_size = 2,
|
|
||||||
|
|
||||||
col = {
|
|
||||||
active_border = { colors = {"rgba(33ccffee)", "rgba(00ff99ee)"}, angle = 45 },
|
|
||||||
inactive_border = "rgba(595959aa)",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Set to true to enable resizing windows by clicking and dragging on borders and gaps
|
|
||||||
resize_on_border = false,
|
|
||||||
|
|
||||||
-- Please see https://wiki.hypr.land/Configuring/Advanced-and-Cool/Tearing/ before you turn this on
|
|
||||||
allow_tearing = false,
|
|
||||||
|
|
||||||
layout = "dwindle",
|
|
||||||
},
|
|
||||||
|
|
||||||
decoration = {
|
|
||||||
rounding = 10,
|
|
||||||
rounding_power = 2,
|
|
||||||
|
|
||||||
-- Change transparency of focused and unfocused windows
|
|
||||||
active_opacity = 1.0,
|
|
||||||
inactive_opacity = 1.0,
|
|
||||||
|
|
||||||
shadow = {
|
|
||||||
enabled = true,
|
|
||||||
range = 4,
|
|
||||||
render_power = 3,
|
|
||||||
color = 0xee1a1a1a,
|
|
||||||
},
|
|
||||||
|
|
||||||
blur = {
|
|
||||||
enabled = true,
|
|
||||||
size = 3,
|
|
||||||
passes = 1,
|
|
||||||
vibrancy = 0.1696,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
animations = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Default curves and animations, see https://wiki.hypr.land/Configuring/Advanced-and-Cool/Animations/
|
|
||||||
hl.curve("easeOutQuint", { type = "bezier", points = { {0.23, 1}, {0.32, 1} } })
|
|
||||||
hl.curve("easeInOutCubic", { type = "bezier", points = { {0.65, 0.05}, {0.36, 1} } })
|
|
||||||
hl.curve("linear", { type = "bezier", points = { {0, 0}, {1, 1} } })
|
|
||||||
hl.curve("almostLinear", { type = "bezier", points = { {0.5, 0.5}, {0.75, 1} } })
|
|
||||||
hl.curve("quick", { type = "bezier", points = { {0.15, 0}, {0.1, 1} } })
|
|
||||||
|
|
||||||
-- Default springs
|
|
||||||
hl.curve("easy", { type = "spring", mass = 1, stiffness = 71.2633, dampening = 15.8273644 })
|
|
||||||
|
|
||||||
hl.animation({ leaf = "global", enabled = true, speed = 10, bezier = "default" })
|
|
||||||
hl.animation({ leaf = "border", enabled = true, speed = 5.39, bezier = "easeOutQuint" })
|
|
||||||
hl.animation({ leaf = "windows", enabled = true, speed = 4.79, spring = "easy" })
|
|
||||||
hl.animation({ leaf = "windowsIn", enabled = true, speed = 4.1, spring = "easy", style = "popin 87%" })
|
|
||||||
hl.animation({ leaf = "windowsOut", enabled = true, speed = 1.49, bezier = "linear", style = "popin 87%" })
|
|
||||||
hl.animation({ leaf = "fadeIn", enabled = true, speed = 1.73, bezier = "almostLinear" })
|
|
||||||
hl.animation({ leaf = "fadeOut", enabled = true, speed = 1.46, bezier = "almostLinear" })
|
|
||||||
hl.animation({ leaf = "fade", enabled = true, speed = 3.03, bezier = "quick" })
|
|
||||||
hl.animation({ leaf = "layers", enabled = true, speed = 3.81, bezier = "easeOutQuint" })
|
|
||||||
hl.animation({ leaf = "layersIn", enabled = true, speed = 4, bezier = "easeOutQuint", style = "fade" })
|
|
||||||
hl.animation({ leaf = "layersOut", enabled = true, speed = 1.5, bezier = "linear", style = "fade" })
|
|
||||||
hl.animation({ leaf = "fadeLayersIn", enabled = true, speed = 1.79, bezier = "almostLinear" })
|
|
||||||
hl.animation({ leaf = "fadeLayersOut", enabled = true, speed = 1.39, bezier = "almostLinear" })
|
|
||||||
hl.animation({ leaf = "workspaces", enabled = true, speed = 1.94, bezier = "almostLinear", style = "fade" })
|
|
||||||
hl.animation({ leaf = "workspacesIn", enabled = true, speed = 1.21, bezier = "almostLinear", style = "fade" })
|
|
||||||
hl.animation({ leaf = "workspacesOut", enabled = true, speed = 1.94, bezier = "almostLinear", style = "fade" })
|
|
||||||
hl.animation({ leaf = "zoomFactor", enabled = true, speed = 7, bezier = "quick" })
|
|
||||||
|
|
||||||
-- Ref https://wiki.hypr.land/Configuring/Basics/Workspace-Rules/
|
|
||||||
-- "Smart gaps" / "No gaps when only"
|
|
||||||
-- uncomment all if you wish to use that.
|
|
||||||
-- hl.workspace_rule({ workspace = "w[tv1]", gaps_out = 0, gaps_in = 0 })
|
|
||||||
-- hl.workspace_rule({ workspace = "f[1]", gaps_out = 0, gaps_in = 0 })
|
|
||||||
-- hl.window_rule({
|
|
||||||
-- name = "no-gaps-wtv1",
|
|
||||||
-- match = { float = false, workspace = "w[tv1]" },
|
|
||||||
-- border_size = 0,
|
|
||||||
-- rounding = 0,
|
|
||||||
-- })
|
|
||||||
-- hl.window_rule({
|
|
||||||
-- name = "no-gaps-f1",
|
|
||||||
-- match = { float = false, workspace = "f[1]" },
|
|
||||||
-- border_size = 0,
|
|
||||||
-- rounding = 0,
|
|
||||||
-- })
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Layouts/Dwindle-Layout/ for more
|
|
||||||
hl.config({
|
|
||||||
dwindle = {
|
|
||||||
preserve_split = true, -- You probably want this
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Layouts/Master-Layout/ for more
|
|
||||||
hl.config({
|
|
||||||
master = {
|
|
||||||
new_status = "master",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Layouts/Scrolling-Layout/ for more
|
|
||||||
hl.config({
|
|
||||||
scrolling = {
|
|
||||||
fullscreen_on_one_column = true,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
----------------
|
|
||||||
---- MISC ----
|
|
||||||
----------------
|
|
||||||
|
|
||||||
hl.config({
|
|
||||||
misc = {
|
|
||||||
force_default_wallpaper = -1, -- Set to 0 or 1 to disable the anime mascot wallpapers
|
|
||||||
disable_hyprland_logo = false, -- If true disables the random hyprland logo / anime girl background. :(
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
---------------
|
|
||||||
---- INPUT ----
|
|
||||||
---------------
|
|
||||||
|
|
||||||
hl.config({
|
|
||||||
input = {
|
|
||||||
kb_layout = "us",
|
|
||||||
kb_variant = "",
|
|
||||||
kb_model = "",
|
|
||||||
kb_options = "",
|
|
||||||
kb_rules = "",
|
|
||||||
|
|
||||||
follow_mouse = 1,
|
|
||||||
|
|
||||||
sensitivity = 0, -- -1.0 - 1.0, 0 means no modification.
|
|
||||||
|
|
||||||
touchpad = {
|
|
||||||
natural_scroll = false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
hl.gesture({
|
|
||||||
fingers = 3,
|
|
||||||
direction = "horizontal",
|
|
||||||
action = "workspace"
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Example per-device config
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Devices/ for more
|
|
||||||
hl.device({
|
|
||||||
name = "epic-mouse-v1",
|
|
||||||
sensitivity = -0.5,
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
---------------------
|
|
||||||
---- KEYBINDINGS ----
|
|
||||||
---------------------
|
|
||||||
|
|
||||||
local mainMod = "SUPER" -- Sets "Windows" key as main modifier
|
|
||||||
|
|
||||||
-- Example binds, see https://wiki.hypr.land/Configuring/Basics/Binds/ for more
|
|
||||||
hl.bind(mainMod .. " + Q", hl.dsp.exec_cmd(terminal))
|
|
||||||
local closeWindowBind = hl.bind(mainMod .. " + C", hl.dsp.window.close())
|
|
||||||
-- closeWindowBind:set_enabled(false)
|
|
||||||
hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'"))
|
|
||||||
hl.bind(mainMod .. " + E", hl.dsp.exec_cmd(fileManager))
|
|
||||||
hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" }))
|
|
||||||
hl.bind(mainMod .. " + R", hl.dsp.exec_cmd(menu))
|
|
||||||
hl.bind(mainMod .. " + P", hl.dsp.window.pseudo())
|
|
||||||
hl.bind(mainMod .. " + J", hl.dsp.layout("togglesplit")) -- dwindle only
|
|
||||||
|
|
||||||
-- Move focus with mainMod + arrow keys
|
|
||||||
hl.bind(mainMod .. " + left", hl.dsp.focus({ direction = "left" }))
|
|
||||||
hl.bind(mainMod .. " + right", hl.dsp.focus({ direction = "right" }))
|
|
||||||
hl.bind(mainMod .. " + up", hl.dsp.focus({ direction = "up" }))
|
|
||||||
hl.bind(mainMod .. " + down", hl.dsp.focus({ direction = "down" }))
|
|
||||||
|
|
||||||
-- Switch workspaces with mainMod + [0-9]
|
|
||||||
-- Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
for i = 1, 10 do
|
|
||||||
local key = i % 10 -- 10 maps to key 0
|
|
||||||
hl.bind(mainMod .. " + " .. key, hl.dsp.focus({ workspace = i}))
|
|
||||||
hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i }))
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Example special workspace (scratchpad)
|
|
||||||
hl.bind(mainMod .. " + S", hl.dsp.workspace.toggle_special("magic"))
|
|
||||||
hl.bind(mainMod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special:magic" }))
|
|
||||||
|
|
||||||
-- Scroll through existing workspaces with mainMod + scroll
|
|
||||||
hl.bind(mainMod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }))
|
|
||||||
hl.bind(mainMod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" }))
|
|
||||||
|
|
||||||
-- Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
|
|
||||||
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
|
|
||||||
|
|
||||||
-- Laptop multimedia keys for volume and LCD brightness
|
|
||||||
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"), { locked = true, repeating = true })
|
|
||||||
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), { locked = true, repeating = true })
|
|
||||||
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { locked = true, repeating = true })
|
|
||||||
hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { locked = true, repeating = true })
|
|
||||||
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"), { locked = true, repeating = true })
|
|
||||||
hl.bind("XF86MonBrightnessDown",hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"), { locked = true, repeating = true })
|
|
||||||
|
|
||||||
-- Requires playerctl
|
|
||||||
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), { locked = true })
|
|
||||||
hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
|
|
||||||
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
|
|
||||||
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), { locked = true })
|
|
||||||
|
|
||||||
|
|
||||||
--------------------------------
|
|
||||||
---- WINDOWS AND WORKSPACES ----
|
|
||||||
--------------------------------
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Basics/Window-Rules/
|
|
||||||
-- and https://wiki.hypr.land/Configuring/Basics/Workspace-Rules/
|
|
||||||
|
|
||||||
-- Example window rules that are useful
|
|
||||||
|
|
||||||
local suppressMaximizeRule = hl.window_rule({
|
|
||||||
-- Ignore maximize requests from all apps. You'll probably like this.
|
|
||||||
name = "suppress-maximize-events",
|
|
||||||
match = { class = ".*" },
|
|
||||||
|
|
||||||
suppress_event = "maximize",
|
|
||||||
})
|
|
||||||
-- suppressMaximizeRule:set_enabled(false)
|
|
||||||
|
|
||||||
hl.window_rule({
|
|
||||||
-- Fix some dragging issues with XWayland
|
|
||||||
name = "fix-xwayland-drags",
|
|
||||||
match = {
|
|
||||||
class = "^$",
|
|
||||||
title = "^$",
|
|
||||||
xwayland = true,
|
|
||||||
float = true,
|
|
||||||
fullscreen = false,
|
|
||||||
pin = false,
|
|
||||||
},
|
|
||||||
|
|
||||||
no_focus = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Layer rules also return a handle.
|
|
||||||
-- local overlayLayerRule = hl.layer_rule({
|
|
||||||
-- name = "no-anim-overlay",
|
|
||||||
-- match = { namespace = "^my-overlay$" },
|
|
||||||
-- no_anim = true,
|
|
||||||
-- })
|
|
||||||
-- overlayLayerRule:set_enabled(false)
|
|
||||||
|
|
||||||
-- Hyprland-run windowrule
|
|
||||||
hl.window_rule({
|
|
||||||
name = "move-hyprland-run",
|
|
||||||
match = { class = "hyprland-run" },
|
|
||||||
|
|
||||||
move = "20 monitor_h-120",
|
|
||||||
float = true,
|
|
||||||
})
|
|
||||||
Reference in New Issue
Block a user