Compare commits
10 Commits
2980d6a656
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95db385700 | ||
|
|
bff9e48dfe | ||
|
|
68224c1308 | ||
|
|
f5781cb444 | ||
|
|
2250446148 | ||
|
|
a16ae88cdc | ||
|
|
16d2ca17b1 | ||
|
|
e42e1cc875 | ||
|
|
a2663734c5 | ||
|
|
0b6dfdc3ad |
5
.luarc.json
Normal file
5
.luarc.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"diagnostics": {
|
||||
"globals": ["hl", "ipc", "mainMod"]
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
#############
|
||||
### INPUT ###
|
||||
#############
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#input
|
||||
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 = true
|
||||
}
|
||||
}
|
||||
cursor_inactive_timeout = 0.1
|
||||
# See https://wiki.hypr.land/Configuring/Gestures
|
||||
gesture = 3, horizontal, workspace
|
||||
# gesture = 3, vertical, hyprexpo:expo, toggle
|
||||
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hypr.land/Configuring/Keywords/#per-device-input-configs for more
|
||||
device {
|
||||
name = epic-mouse-v1
|
||||
sensitivity = -0.5
|
||||
}
|
||||
|
||||
@@ -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-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
|
||||
322
basic/keybinds.lua
Normal file
322
basic/keybinds.lua
Normal file
@@ -0,0 +1,322 @@
|
||||
---- KEYBINDINGS ----
|
||||
---------------------
|
||||
------@meta
|
||||
--## @declaration hl, ipc, mainMod
|
||||
|
||||
local mainMod = "SUPER" -- Sets "Windows" key as main modifier
|
||||
local ipc = "qs -c noctalia-shell ipc call "
|
||||
local custom = require("custom-functions")
|
||||
|
||||
-- 1. Basic Binds
|
||||
hl.bind(mainMod .. " + Q ", hl.dsp.exec_cmd(terminal))
|
||||
hl.bind(mainMod .. " + C ", hl.dsp.window.close())
|
||||
hl.bind(mainMod .. " + SHIFT + CTRL + M ", hl.dsp.exit())
|
||||
-- hl.bind(mainMod .. " + E ", hl.dsp.exec(fileManager))
|
||||
|
||||
-- Workspace movement and tiling rule
|
||||
hl.bind(mainMod .. "+ P" ,hl.dsp.window.float({ action = "toggle" }))
|
||||
hl.bind(mainMod .. "+ P" ,hl.dsp.window.pin())
|
||||
hl.bind(mainMod .. "+ SHIFT + BACKSLASH" ,hl.dsp.window.float({ action = "toggle"}))
|
||||
hl.bind(mainMod .. "+ BACKSLASH" ,hl.dsp.layout ("togglesplit"))
|
||||
hl.bind(mainMod .. "+ CTRL + BACKSLASH " ,hl.dsp.window.pseudo({action = "toggle"}))
|
||||
|
||||
-- hl.bind(mainMod .. " + SEMICOLON ", hl.dsp.exec_cmd( hyprctl general:layout master )
|
||||
-- hl.bind(mainMod .. " + APOSTROPHE ", hl.dsp.exec_cmd( hyprctl general:layout dwindle )
|
||||
|
||||
-- Compiler window
|
||||
-- hl.bind(mainMod .. " + SHIFT + A ", "tagwindow", "compiler")
|
||||
--hl.bind(mainMod .. " + A ", hl.dsp.exec_cmd( $XDG_CONFIG_HOME/hypr/scripts/compile.sh)
|
||||
|
||||
-- 2. Navigation
|
||||
-- 2.1 Vim Binds
|
||||
hl.bind(mainMod .. " + H " , hl.dsp.focus( { direction = "left" }))
|
||||
hl.bind(mainMod .. " + L " , hl.dsp.focus( { direction = "right" }))
|
||||
hl.bind(mainMod .. " + K " , hl.dsp.focus( { direction = "up" }))
|
||||
hl.bind(mainMod .. " + J " , hl.dsp.focus( { direction = "down" }))
|
||||
hl.bind(mainMod .. " + SHIFT + H" , hl.dsp.window.move( { direction = "left" }))
|
||||
hl.bind(mainMod .. " + SHIFT + L" , hl.dsp.window.move( { direction = "right" }))
|
||||
hl.bind(mainMod .. " + SHIFT + K" , hl.dsp.window.move( { direction = "up" }))
|
||||
hl.bind(mainMod .. " + SHIFT + J" , hl.dsp.window.move( { direction = "down" }))
|
||||
-- 2.2 Workspace and monitor keys
|
||||
hl.bind(mainMod .. " + mouse_up" , hl.dsp.focus ({ workspace = "m-1"}))
|
||||
hl.bind(mainMod .. " + mouse_down" , hl.dsp.focus ({ workspace = "m+1"}))
|
||||
hl.bind(mainMod .. " + SHIFT + mouse_up " , hl.dsp.focus ({ workspace = "e-1"}))
|
||||
hl.bind(mainMod .. " + SHIFT + mouse_down " , hl.dsp.focus ({ workspace = "e+1"}))
|
||||
hl.bind(mainMod .. " + CTRL + right" , hl.dsp.focus ({ workspace = "m+1"}))
|
||||
hl.bind(mainMod .. " + CTRL + left" , hl.dsp.focus ({ workspace = "m-1"}))
|
||||
hl.bind(mainMod .. " + TAB " , hl.dsp.focus ({ monitor = "-1"}))
|
||||
hl.bind(mainMod .. " + SHIFT + TAB " , hl.dsp.focus ({ monitor = "+1"}))
|
||||
|
||||
---- 3. resize with arrows
|
||||
hl.bind(mainMod .. " + right " , hl.dsp.window.resize({ x = 20, y = 0, relative = true}) , {repeating = true})
|
||||
hl.bind(mainMod .. " + left " , hl.dsp.window.resize({ x =-20, y = 0, relative = true}) , {repeating = true})
|
||||
hl.bind(mainMod .. " + up " , hl.dsp.window.resize({ x = 0, y = -20, relative = true}) , {repeating = true})
|
||||
hl.bind(mainMod .. " + down " , hl.dsp.window.resize({ x = 0, y = 20, relative = true}) , {repeating = true})
|
||||
|
||||
---- 4. Switch workspaces with mainMod + [0-9]
|
||||
hl.bind(mainMod .. " + 1 ", hl.dsp.focus({workspace = 1 }))
|
||||
hl.bind(mainMod .. " + 2 ", hl.dsp.focus({workspace = 2 }))
|
||||
hl.bind(mainMod .. " + 3 ", hl.dsp.focus({workspace = 3 }))
|
||||
hl.bind(mainMod .. " + 4 ", hl.dsp.focus({workspace = 4 }))
|
||||
hl.bind(mainMod .. " + 5 ", hl.dsp.focus({workspace = 5 }))
|
||||
hl.bind(mainMod .. " + 6 ", hl.dsp.focus({workspace = 6 }))
|
||||
hl.bind(mainMod .. " + 7 ", hl.dsp.focus({workspace = 7 }))
|
||||
hl.bind(mainMod .. " + 8 ", hl.dsp.focus({workspace = 8 }))
|
||||
hl.bind(mainMod .. " + 9 ", hl.dsp.focus({workspace = 9 }))
|
||||
hl.bind(mainMod .. " + 0 ", hl.dsp.focus({workspace = 10}))
|
||||
|
||||
---- 5. Move actihe window to a workspace with mainMod + SHIFT + [0-9]
|
||||
hl.bind(mainMod .. " + SHIFT + 1 ", hl.dsp.window.move({workspace = 1 }))
|
||||
hl.bind(mainMod .. " + SHIFT + 2 ", hl.dsp.window.move({workspace = 2 }))
|
||||
hl.bind(mainMod .. " + SHIFT + 3 ", hl.dsp.window.move({workspace = 3 }))
|
||||
hl.bind(mainMod .. " + SHIFT + 4 ", hl.dsp.window.move({workspace = 4 }))
|
||||
hl.bind(mainMod .. " + SHIFT + 5 ", hl.dsp.window.move({workspace = 5 }))
|
||||
hl.bind(mainMod .. " + SHIFT + 6 ", hl.dsp.window.move({workspace = 6 }))
|
||||
hl.bind(mainMod .. " + SHIFT + 7 ", hl.dsp.window.move({workspace = 7 }))
|
||||
hl.bind(mainMod .. " + SHIFT + 8 ", hl.dsp.window.move({workspace = 8 }))
|
||||
hl.bind(mainMod .. " + SHIFT + 9 ", hl.dsp.window.move({workspace = 9 }))
|
||||
hl.bind(mainMod .. " + SHIFT + 0 ", hl.dsp.window.move({workspace = 10}))
|
||||
|
||||
---- 6. special workspace (scratchpad)
|
||||
hl.bind(mainMod .. " + S ", hl.dsp.workspace.toggle_special("magic" ))
|
||||
hl.bind(mainMod .. " + B ", hl.dsp.workspace.toggle_special("magic2" ))
|
||||
hl.bind(mainMod .. " + X ", hl.dsp.workspace.toggle_special("phantom" ))
|
||||
hl.bind(mainMod .. " + X ", hl.dsp.workspace.toggle_special("phantom" ))
|
||||
|
||||
hl.bind(mainMod .. " + SHIFT + S ", hl.dsp.window.move({ workspace = "special:magic" }))
|
||||
hl.bind(mainMod .. " + SHIFT + B ", hl.dsp.window.move({ workspace = "special:book" }))
|
||||
hl.bind(mainMod .. " + SHIFT + G ", hl.dsp.window.move({ workspace = "special:gaming" }))
|
||||
|
||||
hl.bind(mainMod .. " + D " ,function ()
|
||||
hl.dispatch(hl.dsp.workspace.toggle_special("vesktop"))
|
||||
hl.exec_cmd("vesktop -m", {workspace ="special:vesktop silent"})
|
||||
end)
|
||||
hl.bind(mainMod .. " + E " ,function ()
|
||||
hl.dispatch(hl.dsp.workspace.toggle_special("email"))
|
||||
hl.exec_cmd(email, {workspace ="special:email silent"})
|
||||
end)
|
||||
hl.bind(mainMod .. " + G " ,function ()
|
||||
hl.dispatch(hl.dsp.workspace.toggle_special("gaming"))
|
||||
hl.exec_cmd("steam -forcedesktopscaling 0.5",{workspace ="special:gaming silent"})
|
||||
end)
|
||||
hl.bind(mainMod .. " + N " ,function ()
|
||||
hl.dispatch(hl.dsp.workspace.toggle_special("notes"))
|
||||
-- TODO dont run if obsidian alr running
|
||||
-- hl.exec_cmd(notes)
|
||||
end)
|
||||
|
||||
-- 8. 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})
|
||||
|
||||
---- 9. Multimedia keys for volume and LCD brightness
|
||||
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"))
|
||||
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"))
|
||||
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"))
|
||||
hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"))
|
||||
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"))
|
||||
hl.bind("XF86MonBrightnessDown",hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"))
|
||||
|
||||
---- Requires playerctl
|
||||
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"))
|
||||
hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"))
|
||||
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"))
|
||||
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"))
|
||||
hl.bind("ALT + mouse:274", hl.dsp.exec_cmd("playerctl play-pause"))
|
||||
hl.bind(mainMod .. " + SPACE " ,hl.dsp.exec_cmd("playerctl play-pause"))
|
||||
|
||||
|
||||
---- 10. Application launching
|
||||
hl.bind(mainMod .. " + SUPER_L" ,hl.dsp.exec_cmd(launcher .. " toggle"), { release = true })
|
||||
hl.bind(mainMod .. " + F " ,hl.dsp.exec_cmd(browser))
|
||||
hl.bind("ALT + C" ,hl.dsp.exec_cmd(ipc .. "plugin:clipper openPanel"))
|
||||
-- hl.bind("code:148" ,hl.dsp.exec_cmd("kitty --class calc-term -o 'confirm_os_window_close 0' /home/venus/.cargo/bin/mathypad "))
|
||||
hl.bind("code:148" ,hl.dsp.exec_cmd(ipc .. "plugin:noctalia-calulator toggle"))
|
||||
|
||||
hl.bind(" ALT + Q " , hl.dsp.exec_cmd(terminal, {float = true, border_size = 2, size = {"(monitor_w * 0.8)", "(monitor_h * 0.7)"}}))
|
||||
hl.bind(mainMod .. " + W ", hl.dsp.exec_cmd(terminal, {float = true, border_size = 2, size = {"(monitor_w * 0.8)", "(monitor_h * 0.7)"}}))
|
||||
|
||||
-- TODO rework with LUA
|
||||
-- hl.bind(mainMod .. " + escape" ,hl.dsp.exec_cmd("kitty --class btop -o "confirm_os_window_close 0" /usr/bin/btop"))
|
||||
-- hl.bind(mainMod .. " + SHIFT + escape" ,hl.dsp.exec_cmd("kitty --class btop -o "confirm_os_window_close 0" /usr/bin/nvtop"))
|
||||
hl.bind(mainMod .. " + escape" ,hl.dsp.exec_cmd("kitty btop" ,{float = true, border_size = 2, size = {"(monitor_w * 0.9)", "(monitor_h * 0.9)"}}))
|
||||
hl.bind("CTRL + SHIFT + ESCAPE" ,hl.dsp.exec_cmd("kitty btop" ,{float = true, border_size = 2, size = {"(monitor_w * 0.9)", "(monitor_h * 0.9)"}}))
|
||||
hl.bind(mainMod .. " + SHIFT + escape" ,hl.dsp.exec_cmd("kitty nvtop",{float = true, border_size = 2, size = {"(monitor_w * 0.9)", "(monitor_h * 0.9)"}}))
|
||||
hl.bind(mainMod .. " + I" ,hl.dsp.exec_cmd("/home/venus/.config/scripts/connectPhone.sh "))
|
||||
hl.bind(mainMod .. " + I" ,hl.dsp.exec_cmd("scrcpy --no-audio --no-video --keyboard=uhid --mouse=uhid"))
|
||||
hl.bind(mainMod .. " + SHIFT + I" ,hl.dsp.exec_cmd("/home/venus/.config/scripts/connectPhone.sh "))
|
||||
hl.bind(mainMod .. " + SHIFT + I" ,hl.dsp.exec_cmd("scrcpy --no-audio --keyboard=uhid --mouse=uhid"))
|
||||
|
||||
|
||||
---- 10.1 Shortcuts
|
||||
hl.bind(mainMod .. " + CTRL + L " , hl.dsp.exec_cmd(ipc .. "lockScreen lock"))
|
||||
-- Move window to monitor darkspot
|
||||
hl.bind(mainMod .. " + ALT + H" , custom.MoveToDarkSpot)
|
||||
|
||||
|
||||
-- TODO Implement these
|
||||
---- Change background opacity of terminal window
|
||||
-- hl.bind(mainMod .. " + ALT + k ", hl.dsp.exec_cmd("kitty +kitten @ set-background-opacity -a 1"))
|
||||
---- hande lid switch
|
||||
-- bindl = , switch:Lid Switch, hl.dsp.exec_cmd( s$ipc lockScreen lock
|
||||
|
||||
---- 12. quick access to controls submap
|
||||
hl.bind(mainMod .. " + comma" , hl.dsp.exec_cmd(ipc .. "controlCenter toggle"))
|
||||
hl.bind(mainMod .. " + period" , hl.dsp.exec_cmd(ipc .. "settings toggle"))
|
||||
hl.bind("PRINT" , hl.dsp.exec_cmd("hyprshot -m active -m window --output-folder ~/Images/Screenshots"))
|
||||
hl.bind("SHIFT + PRINT" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit annotate"))
|
||||
hl.bind("ALT + PRINT" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit annotateWindow"))
|
||||
hl.bind("CTRL + PRINT" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit annotateFullscreen"))
|
||||
-- hl.bind("SHIFT + PRINT" , hl.dsp.exec_cmd("hyprshot -m region --output-folder ~/Images/Screenshots"))
|
||||
-- hl.bind("ALT + PRINT" , hl.dsp.exec_cmd("hyprshot -m active -m output --output-folder ~/Images/Screenshots"))
|
||||
|
||||
hl.bind(mainMod .. " + M ", function()
|
||||
hl.dispatch(hl.dsp.exec_cmd(ipc .. "controlCenter toggle "))
|
||||
hl.dispatch(hl.dsp.submap("quick-settings"))
|
||||
end)
|
||||
--
|
||||
hl.bind(mainMod .. " + O ", hl.dsp.submap("open-apps"))
|
||||
|
||||
|
||||
---- 14. submaps!
|
||||
hl.bind(mainMod .. "+ PRINT" ,function()
|
||||
hl.exec_cmd(ipc .. "plugin:screen-toolkit toggle")
|
||||
hl.dispatch(hl.dsp.submap("screen-toolkit"))
|
||||
end)
|
||||
|
||||
hl.define_submap("screen-toolkit", "reset", function()
|
||||
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit toggle"))
|
||||
hl.bind("C" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit color"))
|
||||
hl.bind("P" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit pallete"))
|
||||
hl.bind("O" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit ocr"))
|
||||
hl.bind("L" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit lens"))
|
||||
hl.bind("A" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit annotate"))
|
||||
hl.bind("SHIFT + A" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit annotateWindow"))
|
||||
hl.bind("R" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit recordMp4"))
|
||||
hl.bind("SHIFT + R" ,hl.dsp.exec_cmd(ipc .. " plugin:screen-toolkit recordFullscreenMp4"))
|
||||
hl.bind("catchall" ,function ()
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
hl.dispatch(hl.dsp.exec_cmd(ipc .. "plugin:screen-toolkit toggle "))
|
||||
end)
|
||||
end)
|
||||
-- TODO write a timer submap that starts a timer of custom length when a key is pressed
|
||||
hl.bind(mainMod .. " + T" ,function()
|
||||
hl.dispatch(hl.dsp.submap("timer"))
|
||||
hl.exec_cmd(ipc .. "plugin:timer toggle")
|
||||
end)
|
||||
hl.define_submap("timer", function ()
|
||||
hl.bind("T" ,hl.dsp.exec_cmd(ipc .. "plugin:timer toggle"))
|
||||
hl.bind("P" ,hl.dsp.exec_cmd(ipc .. "plugin:timer pause"))
|
||||
hl.bind("R" ,hl.dsp.exec_cmd(ipc .. "plugin:timer reset"))
|
||||
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. "plugin:timer start 10"))
|
||||
hl.bind("A" ,hl.dsp.exec_cmd(ipc .. "plugin:timer start 240"))
|
||||
-- include the double escape or no?
|
||||
hl.bind("catchall" ,function ()
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
hl.dispatch(hl.dsp.exec_cmd(ipc .. "plugin:timer toggle "))
|
||||
end)
|
||||
end)
|
||||
|
||||
hl.define_submap("quick-settings", function ()
|
||||
hl.bind("V" ,hl.dsp.exec_cmd("protonvpn-app & hyprctl dispatch submap vpn"))
|
||||
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. "settings toggle"))
|
||||
hl.bind("C" ,hl.dsp.exec_cmd(ipc .. "plugin:clipper togglePanel "))
|
||||
hl.bind("P" ,hl.dsp.exec_cmd(ipc .. "sessionMenu toggle"))
|
||||
hl.bind("R" ,hl.dsp.exec_cmd(ipc .. "systemMonitor toggle"))
|
||||
hl.bind("T" ,hl.dsp.exec_cmd(ipc .. "plugin:timer toggle"))
|
||||
hl.bind("M" ,hl.dsp.exec_cmd(ipc .. "controlCenter toggle"))
|
||||
hl.bind("D" ,hl.dsp.exec_cmd(ipc .. "notifications toggleDND"))
|
||||
hl.bind("A" ,hl.dsp.exec_cmd(ipc .. "notifications dismissAll"))
|
||||
hl.bind("SHIFT + B" ,hl.dsp.exec_cmd(ipc .. "bar toggle"))
|
||||
hl.bind("SHIFT + W" ,hl.dsp.exec_cmd(ipc .. "wifi toggle -- toggle wifi"))
|
||||
hl.bind("I" ,hl.dsp.exec_cmd(ipc .. "wallpaper toggle"))
|
||||
hl.bind(" L " ,hl.dsp.exec_cmd(ipc .. "sessionMenu toggle"))
|
||||
hl.bind("B " ,hl.dsp.exec_cmd(ipc .. "battery togglePanel -- toggle battery panel"))
|
||||
hl.bind("SHIFT + C " ,hl.dsp.exec_cmd(ipc .. "calendar toggle"))
|
||||
-- Bind Submaps
|
||||
hl.bind("L" ,hl.dsp.submap("layouts"))
|
||||
hl.bind("N" ,function ()
|
||||
hl.dispatch(hl.dsp.submap("notifications-sub"))
|
||||
hl.dispatch(hl.dsp.exec_cmd(ipc .. "notifications toggleHistory"))
|
||||
end)
|
||||
hl.bind("B" ,function()
|
||||
hl.dispatch(hl.dsp.submap("bt-sub"))
|
||||
hl.dispatch(hl.dsp.exec_cmd(ipc .. "bluetooth togglePanel"))
|
||||
end)
|
||||
hl.bind("W" ,function ()
|
||||
hl.dispatch(hl.dsp.submap("wifi-sub"))
|
||||
hl.dispatch(hl.dsp.exec_cmd(ipc .. "network togglePanel"))
|
||||
end)
|
||||
-- TODO Implement layout switching
|
||||
-- hl.bind(, L, hl.dsp.exec_cmd( notify-send "layout switching" & hyprctl dispatch submap layouts)
|
||||
hl.bind("catchall" ,function ()
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
hl.dispatch(hl.dsp.exec_cmd(ipc .. "controlCenter toggle "))
|
||||
end)
|
||||
end)
|
||||
hl.define_submap("notifications-sub", function()
|
||||
hl.bind("D" ,hl.dsp.exec_cmd(ipc .. "notifications toggleDND"))
|
||||
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. "notifications toggleDND"))
|
||||
hl.bind("Q" ,hl.dsp.exec_cmd(ipc .. "notifications toggleDND"))
|
||||
hl.bind("A" ,hl.dsp.exec_cmd(ipc .. "notifications dismissAll"))
|
||||
hl.bind("C" ,hl.dsp.exec_cmd(ipc .. "notifications clear"))
|
||||
hl.bind("CTRL + D" ,hl.dsp.exec_cmd(ipc .. "notifications dismissAll"))
|
||||
hl.bind("SHIFT + D" ,hl.dsp.exec_cmd(ipc .. "notifications dismissAll"))
|
||||
hl.bind(mainMod .. " + D " ,hl.dsp.exec_cmd(ipc .. "notifications dismissAll"))
|
||||
hl.bind("escape" ,function ()
|
||||
hl.dispatch(hl.dsp.exec_cmd(ipc .. "notifications toggleHistory"))
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
end)
|
||||
end)
|
||||
|
||||
hl.define_submap("wifi-sub", "reset", function()
|
||||
hl.bind("T" ,hl.dsp.exec_cmd(ipc .. "wifi toggle"))
|
||||
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. "wifi togglePanel"))
|
||||
hl.bind("D" ,hl.dsp.exec_cmd(ipc .. "wifi disable"))
|
||||
hl.bind("E" ,hl.dsp.exec_cmd(ipc .. "wifi enable"))
|
||||
hl.bind("R" ,hl.dsp.exec_cmd("sudo systemctl restart iwd"))
|
||||
hl.bind("escape" ,hl.dsp.exec_cmd(ipc .. "network togglePanel"))
|
||||
end)
|
||||
|
||||
hl.define_submap("bt-sub", function()
|
||||
hl.bind("T" ,hl.dsp.exec_cmd(ipc .. "bluetooth toggle"))
|
||||
hl.bind("S" ,hl.dsp.exec_cmd(ipc .. "bluetooth togglePanel"))
|
||||
hl.bind("D" ,hl.dsp.exec_cmd(ipc .. "bluetooth disable"))
|
||||
hl.bind("E" ,hl.dsp.exec_cmd(ipc .. "bluetooth enable"))
|
||||
hl.bind("H" ,hl.dsp.exec_cmd('bluetoothctl connect 88:92:CC:53:88:7E && notify-send "connected to headphones"'))
|
||||
hl.bind("B" ,hl.dsp.exec_cmd('bluetoothctl connect FC:91:5D:6A:2A:C5 && notify-send "connected to earbuds"'))
|
||||
hl.bind("P" ,hl.dsp.exec_cmd('bluetoothctl connect 64:9D:38:E0:4D:02 && notify-send "Connected to phone"'))
|
||||
hl.bind("SHIFT + B" ,hl.dsp.exec_cmd('bluetoothctl disconnect FC:91:5D:6A:2A:C5 && notify-send "disconnected from earbuds"'))
|
||||
hl.bind("J" ,hl.dsp.exec_cmd('bluetoothctl disconnect 88:92:CC:53:88:7E && notify-send "disconnected from headphones"'))
|
||||
hl.bind("SHIFT + H" ,hl.dsp.exec_cmd('bluetoothctl disconnect 88:92:CC:53:88:7E && notify-send "disconnected from headphones"'))
|
||||
hl.bind("M" ,hl.dsp.exec_cmd('bluetoothctl disconnect 64:9D:38:E0:4D:02 && notify-send "Disconnected from phone"'))
|
||||
hl.bind("escape" ,function ()
|
||||
hl.dispatch(hl.dsp.exec_cmd(ipc .. "bluetooth togglePanel"))
|
||||
hl.dispatch(hl.dsp.submap("reset"))
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
-- TODO Implement a VPN subnet
|
||||
|
||||
hl.define_submap("open-apps", "reset", function()
|
||||
hl.bind("S" ,hl.dsp.exec_cmd("signal-desktop"))
|
||||
hl.bind("D" ,hl.dsp.exec_cmd("vesktop"))
|
||||
hl.bind("F" ,hl.dsp.exec_cmd("firefox"))
|
||||
hl.bind("M" ,hl.dsp.exec_cmd("feishin"))
|
||||
hl.bind("R" ,hl.dsp.exec_cmd("calibre"))
|
||||
hl.bind("E" ,hl.dsp.exec_cmd("darktable"))
|
||||
hl.bind("catchall" ,hl.dsp.submap("reset"))
|
||||
end)
|
||||
|
||||
--hl.define_submap("layouts, reset
|
||||
-- hl.bind(, D, hl.dsp.exec_cmd( hyprctl general:layout dwindle)
|
||||
-- hl.bind(, M, hl.dsp.exec_cmd( hyprctl general:layout master)
|
||||
--hl.define_submap("reset
|
||||
|
||||
---- 13. Misc tools.
|
||||
--- 14. Gestures
|
||||
hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" })
|
||||
-- hl.gesture({ fingers = 2, direction = "pinch", action = "cursor_zoom", zoom_level = 2, mode = "mult"})
|
||||
--hl.bind(ALT, SPACE, hl.dsp.exec_cmd( $menu)
|
||||
|
||||
127
basic/looks.conf
127
basic/looks.conf
@@ -1,127 +0,0 @@
|
||||
#####################
|
||||
### LOOK AND FEEL ###
|
||||
#####################
|
||||
|
||||
# Refer to https://wiki.hypr.land/Configuring/Variables/
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#general
|
||||
general {
|
||||
gaps_in = 3
|
||||
gaps_out = 5
|
||||
|
||||
border_size = 1
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#variable-types for info about colors
|
||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||
col.inactive_border = rgba(595959aa)
|
||||
|
||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||
resize_on_border = true
|
||||
|
||||
# Please see https://wiki.hypr.land/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#decoration
|
||||
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 = rgba(1a1a1aee)
|
||||
}
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#blur
|
||||
blur {
|
||||
enabled = true
|
||||
size = 3
|
||||
passes = 1
|
||||
|
||||
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/
|
||||
|
||||
-- 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 ({
|
||||
general = {
|
||||
gaps_in = 3,
|
||||
gaps_out = 5,
|
||||
gaps_in = 5,
|
||||
gaps_out = 4,
|
||||
border_size = 1,
|
||||
-- https://wiki.hypr.land/Configuring/Variables/--variable-types for info about colors,
|
||||
col = {
|
||||
active_border = { colors = { "rgba(33ccffee)", "rgba(00ff99ee)"}, angle = 45},
|
||||
inactive_border = "rgba(595959aa)",
|
||||
["active_border"] = { colors = { colors.primary, colors.tertiary }, angle = 9},
|
||||
["inactive_border"] = colors.background,
|
||||
},
|
||||
-- Set to true enable resizing windows by clicking and dragging on borders and gaps,
|
||||
|
||||
@@ -21,27 +24,27 @@ hl.config ({
|
||||
-- Please see https://wiki.hypr.land/Configuring/Tearing/ before you turn this on,
|
||||
allow_tearing = false,
|
||||
|
||||
layout = "dwindle",
|
||||
layout = "master",
|
||||
},
|
||||
|
||||
-- https://wiki.hypr.land/Configuring/Variables/--decoration
|
||||
decoration = {
|
||||
rounding = 10,
|
||||
rounding = 20,
|
||||
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 = "rgba(1a1a1aee)",
|
||||
range = 5,
|
||||
render_power = 7,
|
||||
color = colors.background,
|
||||
},
|
||||
-- https://wiki.hypr.land/Configuring/Variables/--blur,
|
||||
blur = {
|
||||
enabled = true,
|
||||
size = 3,
|
||||
passes = 1,
|
||||
passes = 2,
|
||||
vibrancy = 0.1696,
|
||||
},
|
||||
},
|
||||
@@ -78,58 +81,3 @@ hl.animation({ leaf = "workspaces", enabled = true, speed = 1.94, bezier = "
|
||||
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/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
|
||||
hl.config ({
|
||||
dwindle = {
|
||||
preserve_split = true,
|
||||
},
|
||||
})
|
||||
|
||||
-- See https://wiki.hypr.land/Configuring/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,
|
||||
},
|
||||
})
|
||||
-- https://wiki.hypr.land/Configuring/Variables/--misc
|
||||
--
|
||||
hl.config ({ 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. :(
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
-------------------
|
||||
--- PERMISSIONS ---
|
||||
-------------------
|
||||
|
||||
-- See https://wiki.hypr.land/Configuring/Permissions/
|
||||
-- Please note permission changes here require a Hyprland restart and are not applied on-the-fly
|
||||
-- for security reasons
|
||||
|
||||
-- ecosystem {
|
||||
-- enforce_permissions = 1
|
||||
-- }
|
||||
|
||||
-- permission = /usr/(bin|local/bin)/grim, screencopy, allow
|
||||
-- permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
|
||||
-- permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
|
||||
|
||||
|
||||
|
||||
@@ -1,133 +0,0 @@
|
||||
#####################
|
||||
### PLUGINS ###
|
||||
#####################
|
||||
|
||||
# .config/hypr/plugins.conf
|
||||
plugin {
|
||||
hyprexpo {
|
||||
columns = 2
|
||||
gap_size = 5
|
||||
bg_col = rgb(111111)
|
||||
workspace_method = first 1 # [center/first] [workspace] e.g. first 1 or center m+1
|
||||
# gesture_distance = 300 # how far is the "max" for the gesture
|
||||
skip_empty = true
|
||||
}
|
||||
hy3 {
|
||||
# disable gaps when only one window is onscreen
|
||||
# 0 - always show gaps
|
||||
# 1 - hide gaps with a single window onscreen
|
||||
# 2 - 1 but also show the window border
|
||||
no_gaps_when_only = 1 # default: 0
|
||||
|
||||
# policy controlling what happens when a node is removed from a group,
|
||||
# leaving only a group
|
||||
# 0 = remove the nested group
|
||||
# 1 = keep the nested group
|
||||
# 2 = keep the nested group only if its parent is a tab group
|
||||
node_collapse_policy = 2 # default: 2
|
||||
|
||||
# offset from group split direction when only one window is in a group
|
||||
# group_inset = > # default: 10
|
||||
|
||||
# if a tab group will automatically be created for the first window spawned in a workspace
|
||||
tab_first_window = false
|
||||
|
||||
# tab group settings
|
||||
tabs {
|
||||
# height of the tab bar
|
||||
height = 22 # default: 22
|
||||
|
||||
# padding between the tab bar and its focused node
|
||||
# padding = <int> # default: 6
|
||||
|
||||
# the tab bar should animate in/out from the top instead of below the window
|
||||
# from_top = <bool> # default: false
|
||||
|
||||
# radius of tab bar corners
|
||||
# radius = <int> # default: 6
|
||||
|
||||
# tab bar border width
|
||||
# border_width = <int> # default: 2
|
||||
|
||||
# render the window title on the bar
|
||||
# render_text = <bool> # default: true
|
||||
|
||||
# center the window title
|
||||
# text_center = <bool> # default: true
|
||||
|
||||
# font to render the window title with
|
||||
# text_font = <string> # default: Sans
|
||||
|
||||
# height of the window title
|
||||
# text_height = <int> # default: 8
|
||||
|
||||
# left padding of the window title
|
||||
# text_padding = <int> # default: 3
|
||||
|
||||
# active tab bar segment colors
|
||||
# col.active = <color> # default: rgba(33ccff40)
|
||||
# col.active.border = <color> # default: rgba(33ccffee)
|
||||
# col.active.text = <color> # default: rgba(ffffffff)
|
||||
|
||||
# active tab bar segment colors for bars on an unfocused monitor
|
||||
# col.active_alt_monitor = <color> # default: rgba(60606040)
|
||||
# col.active_alt_monitor.border = <color> # default: rgba(808080ee)
|
||||
# col.active_alt_monitor.text = <color> # default: rgba(ffffffff)
|
||||
|
||||
# # focused tab bar segment colors (focused node in unfocused container)
|
||||
# col.focused = <color> # default: rgba(60606040)
|
||||
# col.focused.border = <color> # default: rgba(808080ee)
|
||||
# col.focused.text = <color> # default: rgba(ffffffff)
|
||||
|
||||
# # inactive tab bar segment colors
|
||||
# col.inactive = <color> # default: rgba(30303020)
|
||||
# col.inactive.border = <color> # default: rgba(606060aa)
|
||||
# col.inactive.text = <color> # default: rgba(ffffffff)
|
||||
|
||||
# # urgent tab bar segment colors
|
||||
# col.urgent = <color> # default: rgba(ff223340)
|
||||
# col.urgent.border = <color> # default: rgba(ff2233ee)
|
||||
# col.urgent.text = <color> # default: rgba(ffffffff)
|
||||
|
||||
# # urgent tab bar segment colors
|
||||
# col.locked = <color> # default: rgba(90903340)
|
||||
# col.locked.border = <color> # default: rgba(909033ee)
|
||||
# col.locked.text = <color> # default: rgba(ffffffff)
|
||||
|
||||
# # if tab backgrounds should be blurred
|
||||
# # Blur is only visible when the above colors are not opaque.
|
||||
# blur = <bool> # default: true
|
||||
|
||||
# opacity multiplier for tabs
|
||||
# Applies to blur as well as the given colors.
|
||||
# opacity = <float> # default: 1.0
|
||||
}
|
||||
|
||||
# autotiling settings
|
||||
autotile {
|
||||
# enable autotile
|
||||
# enable = <bool> # default: false
|
||||
|
||||
# make autotile-created groups ephemeral
|
||||
# ephemeral_groups = <bool> # default: true
|
||||
|
||||
# if a window would be squished smaller than this width, a vertical split will be created
|
||||
# -1 = never automatically split vertically
|
||||
# 0 = always automatically split vertically
|
||||
# <number> = pixel width to split at
|
||||
# trigger_width = <int> # default: 0
|
||||
|
||||
# if a window would be squished smaller than this height, a horizontal split will be created
|
||||
# -1 = never automatically split horizontally
|
||||
# 0 = always automatically split horizontally
|
||||
# <number> = pixel height to split at
|
||||
# trigger_height = <int> # default: 0
|
||||
|
||||
# a space or comma separated list of workspace ids where autotile should be enabled
|
||||
# it's possible to create an exception rule by prefixing the definition with "not:"
|
||||
# workspaces = 1,2 # autotiling will only be enabled on workspaces 1 and 2
|
||||
# workspaces = not:1,2 # autotiling will be enabled on all workspaces except 1 and 2
|
||||
# workspaces = <string> # default: all
|
||||
}
|
||||
}
|
||||
}
|
||||
54
basic/vars.lua
Normal file
54
basic/vars.lua
Normal file
@@ -0,0 +1,54 @@
|
||||
hl.config = {
|
||||
input = {
|
||||
kb_layout = "us",
|
||||
-- kb_variant =
|
||||
-- kb_model =
|
||||
-- kb_options =
|
||||
-- kb_rules =
|
||||
follow_mouse = 1,
|
||||
sensitivity = 0,
|
||||
|
||||
touchpad = {
|
||||
natural_scroll = true,
|
||||
},
|
||||
cursor = {
|
||||
inactive_timeout= 0.1,
|
||||
},
|
||||
},
|
||||
xwayland = {
|
||||
force_zero_scaling = true
|
||||
},
|
||||
misc = {
|
||||
force_default_wallpaper = 1,
|
||||
disable_hyprland_logo = false,
|
||||
},
|
||||
dwindle = {
|
||||
preserve_split = true,
|
||||
},
|
||||
master = {
|
||||
new_status = "master",
|
||||
},
|
||||
scrolling = {
|
||||
fullscreen_on_one_column = true,
|
||||
},
|
||||
}
|
||||
|
||||
hl.env("XCURSOR_SIZE", "24")
|
||||
hl.env("HYPRCURSOR_SIZE", "24")
|
||||
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto")
|
||||
hl.env("QT_QPA_PLATFORMTHEME", "qt6ct")
|
||||
-------------------
|
||||
--- PERMISSIONS ---
|
||||
-------------------
|
||||
|
||||
-- See https://wiki.hypr.land/Configuring/Permissions/
|
||||
-- Please note permission changes here require a Hyprland restart and are not applied on-the-fly
|
||||
-- for security reasons
|
||||
|
||||
-- ecosystem {
|
||||
-- enforce_permissions = 1
|
||||
-- }
|
||||
|
||||
-- permission = /usr/(bin|local/bin)/grim, screencopy, allow
|
||||
-- permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
|
||||
-- permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
|
||||
@@ -1,106 +0,0 @@
|
||||
##############################
|
||||
### WINDOWS AND WORKSPACES ###
|
||||
##############################
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
|
||||
# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
|
||||
windowrule{
|
||||
name = scrcpy
|
||||
match:class = scrcpy
|
||||
border_size = 5
|
||||
float = true
|
||||
dim_around = true
|
||||
move = 5 40
|
||||
}
|
||||
windowrule{
|
||||
name = compiler-window
|
||||
match:tag = compiler
|
||||
border_color = rgba(ccaaffee)
|
||||
# col.inactive_border = rgba(333333aa)
|
||||
border_size = 2
|
||||
float = false
|
||||
}
|
||||
|
||||
# put vesktop in a special workspace
|
||||
# windowrule{
|
||||
# name = discord
|
||||
# match:class = vesktop
|
||||
# workspace = special:discord
|
||||
# }
|
||||
# windowrule{
|
||||
# name = obsidian
|
||||
# match:class = obsidian
|
||||
# workspace = special:obsidian
|
||||
# }
|
||||
windowrule{
|
||||
name = gaming
|
||||
match:class = steam
|
||||
workspace = special:gaming
|
||||
}
|
||||
|
||||
# windowrule{
|
||||
# name = thunderbird
|
||||
# match:class = org.mozilla.Thunderbird
|
||||
# workspace = special:email
|
||||
# }
|
||||
|
||||
windowrule {
|
||||
# Ignore maximize requests from all apps. You'll probably like this.
|
||||
name = suppress-maximize-events
|
||||
match:class = .*
|
||||
suppress_event = maximize
|
||||
}
|
||||
|
||||
windowrule {
|
||||
# Fix some dragging issues with XWayland
|
||||
name = fix-xwayland-drags
|
||||
match:class = ^$
|
||||
match:title = ^$
|
||||
match:xwayland = true
|
||||
match:float = true
|
||||
match:fullscreen = false
|
||||
match:pin = false
|
||||
no_focus = true
|
||||
}
|
||||
|
||||
xwayland {
|
||||
force_zero_scaling = true
|
||||
}
|
||||
|
||||
# Hyprland-run windowrule
|
||||
windowrule {
|
||||
name = move-hyprland-run
|
||||
|
||||
match:class = hyprland-run
|
||||
|
||||
move = 20 monitor_h-120
|
||||
float = yes
|
||||
}
|
||||
|
||||
windowrule {
|
||||
name = calc-term
|
||||
match:class = calc-term
|
||||
pseudo = yes
|
||||
float = yes
|
||||
center = true
|
||||
opacity = 1
|
||||
# move = cursor_x-10 cursor_y-10
|
||||
size = monitor_w*.4 monitor_h*.4
|
||||
|
||||
}
|
||||
|
||||
windowrule{
|
||||
name = btop
|
||||
match:class = btop
|
||||
float = yes
|
||||
size = monitor_w*.9 monitor_h*.8
|
||||
dim_around = true
|
||||
|
||||
}
|
||||
windowrule{
|
||||
name = popup-term
|
||||
match:class = popup-term
|
||||
float = yes
|
||||
size = monitor_w*.9 monitor_h*.8
|
||||
dim_around = true
|
||||
}
|
||||
87
basic/windows.lua
Normal file
87
basic/windows.lua
Normal file
@@ -0,0 +1,87 @@
|
||||
--#############################
|
||||
--## WINDOWS AND WORKSPACES ###
|
||||
--#############################
|
||||
|
||||
-- See https://wiki.hypr.land/Configuring/Window-Rules/ for more
|
||||
-- See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
|
||||
hl.window_rule({
|
||||
name = "scrcpy",
|
||||
match = {class = "scrcpy"},
|
||||
border_size = 5,
|
||||
float = true,
|
||||
dim_around = true,
|
||||
move = {5, 40},
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
name = "compiler-window",
|
||||
match = { tag = "compiler"},
|
||||
border_color = "0xccaaffee",
|
||||
border_size = 2,
|
||||
float = false,
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
name = "gaming",
|
||||
match = {
|
||||
class = "steam",
|
||||
initial_class = "steam"
|
||||
},
|
||||
workspace = "special:gaming"
|
||||
})
|
||||
|
||||
|
||||
hl.window_rule( {
|
||||
-- Ignore maximize requests from all apps. You'll probably like this.
|
||||
name = "suppress-maximize-events",
|
||||
match = {class = ".*"},
|
||||
suppress_event = "maximize",
|
||||
})
|
||||
|
||||
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,
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "s[true]",
|
||||
gaps_out = 10
|
||||
})
|
||||
|
||||
|
||||
-- Hyprland-run hl.window_rule(
|
||||
hl.window_rule( {
|
||||
name = "move-hyprland-run",
|
||||
match = {class = "hyprland-run"},
|
||||
move = {20,"monitor_h-120"},
|
||||
float = true
|
||||
})
|
||||
|
||||
hl.window_rule( {
|
||||
name = "calc-term",
|
||||
match = {class = "calc-term"},
|
||||
pseudo = true,
|
||||
float = true,
|
||||
center = true,
|
||||
opacity = 1,
|
||||
-- move = {"cursor_x-10", "cursor_y-10"},
|
||||
size = {"monitor_w*.4", "monitor_h*.4"},
|
||||
|
||||
})
|
||||
hl.workspace_rule( {
|
||||
workspace = "w[tv1]",
|
||||
gaps_out = 1,
|
||||
gaps_in = 1,
|
||||
border_size = 1,
|
||||
no_rounding = false,
|
||||
})
|
||||
|
||||
|
||||
22
custom-functions.lua
Normal file
22
custom-functions.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
-- custom-functions.lua
|
||||
local C = {}
|
||||
function C.startTimer()
|
||||
-- TODO implement custom timer logic here
|
||||
end
|
||||
function C.MoveToDarkSpot()
|
||||
local targetMonitor = "DP-9"
|
||||
hl.dispatch(hl.dsp.window.move({monitor = targetMonitor, x = 0, y = 0}))
|
||||
hl.exec_cmd("notify-send 'moved to " .. targetMonitor .. "'")
|
||||
end
|
||||
|
||||
local function phoneSocket()
|
||||
-- Determine phone socket connection
|
||||
-- Determine wired or wireless state
|
||||
-- If wired connect over cable and set phone socket
|
||||
-- If wireless connect over socker
|
||||
-- If not on network notify
|
||||
end
|
||||
|
||||
function C.RemoteToPhone()
|
||||
end
|
||||
return C
|
||||
@@ -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
|
||||
|
||||
69
hyprland.lua
69
hyprland.lua
@@ -2,55 +2,50 @@
|
||||
--- STARTUP ---
|
||||
----------------
|
||||
|
||||
local terminal = "kitty"
|
||||
local fileManager = "dolphin"
|
||||
local menu = "qs -c noctalia-shell ipc call launcher toggle"
|
||||
local browser = "firefox"
|
||||
local menuBar = "qs -c noctalia-shell"
|
||||
local shellWrapper = "qs -c noctalia-shell"
|
||||
local blkmanager = "udiskie"
|
||||
local email = "thunderbird"
|
||||
_G.terminal = "kitty"
|
||||
_G.fileManager = "dolphin"
|
||||
_G.menu = "qs -c noctalia-shell ipc call launcher toggle"
|
||||
_G.launcher = "hyprlauncher"
|
||||
_G.browser = "firefox"
|
||||
_G.menuBar = "qs -c noctalia-shell"
|
||||
_G.shellWrapper = "qs -c noctalia-shell"
|
||||
_G.blkmanager = "udiskie"
|
||||
_G.email = "thunderbird"
|
||||
_G.notes = "obsidian"
|
||||
|
||||
hl.on("hyprland.start", function()
|
||||
-- Force D-Bus and Systemd to catch the Wayland display variables instantly
|
||||
hl.exec_cmd("dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP")
|
||||
hl.exec_cmd("systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP")
|
||||
hl.exec_cmd("systemctl --user start hyprpolkitagent")
|
||||
hl.exec_cmd(menuBar)
|
||||
hl.exec_cmd("systemctl") --user start hyprpolkitagent)
|
||||
hl.exec_cmd("udiskie")
|
||||
-- hyprshell in systemd
|
||||
hl.exec_cmd(blkmanager)
|
||||
hl.exec_cmd("vicinae server") --no-window) TODO set up sddm to unlock keychain
|
||||
hl.exec_cmd("hyprpm reload -n")
|
||||
hl.exec_cmd("kdeconnectd")
|
||||
hl.exec_cmd("hyprshell run &")
|
||||
hl.exec_cmd("[workspace special:discord silent] vesktop -m")
|
||||
hl.exec_cmd("[workspace special:email silent] $email")
|
||||
hl.exec_cmd("[workspace special:notes silent] obsidian")
|
||||
hl.exec_cmd("protonmail-bridge") --no-window)
|
||||
hl.exec_cmd("vesktop -m", {workspace ="special:vesktop silent"})
|
||||
hl.exec_cmd(email, {workspace ="special:email silent"})
|
||||
hl.exec_cmd(notes, {workspace ="special:notes silent"})
|
||||
hl.exec_cmd("steam --forcedesktopscaling 0.5 -silent -no-browser", {workspace ="special:gaming silent"})
|
||||
hl.exec_cmd("protonmail-bridge --no-window") -- TODO set up sddm to unlock keychain
|
||||
end)
|
||||
|
||||
hl.config({
|
||||
general = {
|
||||
layout = "dwindle"
|
||||
}
|
||||
master = {
|
||||
orientation = "center",
|
||||
new_status = "master",
|
||||
mfact = 0.50
|
||||
},
|
||||
})
|
||||
|
||||
hl.env("XCURSOR_SIZE", "24")
|
||||
hl.env("HYPRCURSOR_SIZE", "24")
|
||||
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto")
|
||||
|
||||
local base = "/home/venus/.config/hypr"
|
||||
local basic = base .. "/basic"
|
||||
|
||||
|
||||
require("basic/looks")
|
||||
--require(base .. "/noctalia/noctalia-colors.lua")
|
||||
--require(basic .. "/keybinds.lua")
|
||||
--require(basic .. "/windows.lua")
|
||||
--require(basic .. "/plugins.lua")
|
||||
--require(basic .. "/inputs.lua")
|
||||
require("basic/permissions")
|
||||
--require(base .. "/monitors.lua")
|
||||
----wayland rules in basic/windows.lua
|
||||
|
||||
--require("base/noctalia/noctalia-colors.lua")
|
||||
|
||||
|
||||
--require("/home/venus/.luaig/hypr/noctalia/noctalia-colors.conf")
|
||||
|
||||
|
||||
require("basic/keybinds")
|
||||
require("basic/vars")
|
||||
require("basic/windows")
|
||||
-- require("plugins")
|
||||
require("monitors")
|
||||
|
||||
29
monitors.lua
Normal file
29
monitors.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
-- -- Define the workspace rules table
|
||||
-- local workspace_rules = {}
|
||||
|
||||
-- -- Forcing workspaces 1 through 5 to use the master layout on the ultrawide
|
||||
-- for w = 1, 5 do
|
||||
-- table.insert(workspace_rules, string.format("%d, monitor:DP-1, layout:master", w))
|
||||
-- end
|
||||
|
||||
-- -- Keeping the global default layout for these workspaces on the secondary screen
|
||||
-- for w = 6, 10 do
|
||||
-- table.insert(workspace_rules, string.format("%d, monitor:HDMI-A-1", w))
|
||||
-- end
|
||||
|
||||
-- -- Inject them into your config wrapper
|
||||
-- hl.config({
|
||||
-- workspace = workspace_rules
|
||||
-- })
|
||||
-- Initialize the workspace array inside the config table if it doesn't exist
|
||||
hl.config.workspace = hl.config.workspace or {}
|
||||
|
||||
-- Forcing workspaces 1 through 5 to use the master layout on the ultrawide
|
||||
for w = 1, 5 do
|
||||
table.insert(hl.config.workspace, string.format("%d, monitor:DP-1, layout:master", w))
|
||||
end
|
||||
|
||||
-- Keeping the global default layout for these workspaces on the secondary screen
|
||||
for w = 6, 10 do
|
||||
table.insert(hl.config.workspace, string.format("%d, monitor:HDMI-A-1", w))
|
||||
end
|
||||
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