refactor!(hypr): switch to Lua config
This commit is contained in:
@@ -1,13 +0,0 @@
|
|||||||
github.copilot-chat
|
|
||||||
ms-azuretools.vscode-containers
|
|
||||||
ms-python.debugpy
|
|
||||||
ms-python.python
|
|
||||||
ms-python.vscode-pylance
|
|
||||||
ms-python.vscode-python-envs
|
|
||||||
ms-vscode-remote.remote-containers
|
|
||||||
ms-vscode.cmake-tools
|
|
||||||
ms-vscode.cpp-devtools
|
|
||||||
ms-vscode.cpptools
|
|
||||||
ms-vscode.cpptools-extension-pack
|
|
||||||
ms-vscode.cpptools-themes
|
|
||||||
tomoki1207.pdf
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"explorer.confirmDragAndDrop": false,
|
|
||||||
"python.defaultInterpreterPath": "/sbin/python3.14",
|
|
||||||
"git.autofetch": true,
|
|
||||||
"explorer.confirmDelete": false,
|
|
||||||
"git.confirmSync": false,
|
|
||||||
"editor.fontSize": 12
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Floating
|
|
||||||
windowrule = float 1, match:title Play Timer
|
|
||||||
|
|
||||||
# Opacity
|
|
||||||
windowrule = opacity 0.9 0.75, match:class $terminal
|
|
||||||
|
|
||||||
23
.config/hypr/applications.lua
Normal file
23
.config/hypr/applications.lua
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
-- Opacity
|
||||||
|
hl.window_rule({
|
||||||
|
name = "opacity_0_75_0_6",
|
||||||
|
match = {
|
||||||
|
class = ".*" .. terminal .. ".*"
|
||||||
|
},
|
||||||
|
opacity = "0.75 0.6",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Workspace
|
||||||
|
hl.window_rule({
|
||||||
|
workspace = "1",
|
||||||
|
match = {
|
||||||
|
class = ".*[Mm]inecraft.*"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.window_rule({
|
||||||
|
workspace = "1",
|
||||||
|
match = {
|
||||||
|
class = ".*[Ss]team*."
|
||||||
|
}
|
||||||
|
})
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
general {
|
|
||||||
# Gaps & borders – light and uncluttered
|
|
||||||
gaps_in = 4
|
|
||||||
gaps_out = 6
|
|
||||||
gaps_workspaces = 32
|
|
||||||
|
|
||||||
border_size = 1
|
|
||||||
col.active_border = rgba(0DB7D4FF)
|
|
||||||
col.inactive_border = rgba(31313633)
|
|
||||||
|
|
||||||
no_focus_fallback = true
|
|
||||||
allow_tearing = true
|
|
||||||
|
|
||||||
snap {
|
|
||||||
enabled = true
|
|
||||||
window_gap = 4
|
|
||||||
monitor_gap = 6
|
|
||||||
respect_gaps = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dwindle {
|
|
||||||
preserve_split = true
|
|
||||||
smart_split = false
|
|
||||||
smart_resizing = false
|
|
||||||
}
|
|
||||||
|
|
||||||
decoration {
|
|
||||||
rounding = 10
|
|
||||||
|
|
||||||
shadow {
|
|
||||||
enabled = yes
|
|
||||||
range = 16
|
|
||||||
render_power = 2
|
|
||||||
color = rgba(00000040)
|
|
||||||
}
|
|
||||||
|
|
||||||
blur {
|
|
||||||
enabled = yes
|
|
||||||
size = 5
|
|
||||||
passes = 2
|
|
||||||
vibrancy = 0.14
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
animations {
|
|
||||||
enabled = yes
|
|
||||||
|
|
||||||
bezier = overshoot, 0.22, 0.61, 0.36, 1.15
|
|
||||||
bezier = breeze, 0.22, 0.61, 0.36, 1.0
|
|
||||||
|
|
||||||
# Windows: quick, soft, intentional
|
|
||||||
animation = windows, 1, 5, breeze, slidefade
|
|
||||||
animation = windowsOut, 1, 4, breeze, slidefade
|
|
||||||
|
|
||||||
# Workspaces: airy glide, finishes fast
|
|
||||||
animation = workspaces, 1, 4, overshoot, slidefade
|
|
||||||
|
|
||||||
# Subtle polish
|
|
||||||
animation = fade, 1, 4, breeze
|
|
||||||
animation = windowsMove, 1, 1, breeze
|
|
||||||
animation = border, 1, 3, breeze
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
62
.config/hypr/decoration.lua
Normal file
62
.config/hypr/decoration.lua
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
-- Generated by hyprconf2lua v1.3.2
|
||||||
|
-- https://github.com/Prateek-squadron/hyprconf2lua
|
||||||
|
-- Manual review may be needed for complex directives
|
||||||
|
|
||||||
|
---@module 'hl'
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
general = {
|
||||||
|
-- Gaps & borders – light and uncluttered
|
||||||
|
gaps_in = 4,
|
||||||
|
gaps_out = 6,
|
||||||
|
gaps_workspaces = 32,
|
||||||
|
border_size = 1,
|
||||||
|
no_focus_fallback = true,
|
||||||
|
allow_tearing = true,
|
||||||
|
snap = {
|
||||||
|
enabled = true,
|
||||||
|
window_gap = 4,
|
||||||
|
monitor_gap = 6,
|
||||||
|
respect_gaps = true,
|
||||||
|
},
|
||||||
|
col = {
|
||||||
|
active_border = "rgba(0DB7D4FF)",
|
||||||
|
inactive_border = "rgba(31313633)",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
dwindle = {
|
||||||
|
preserve_split = true,
|
||||||
|
smart_split = false,
|
||||||
|
smart_resizing = false,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
decoration = {
|
||||||
|
rounding = 10,
|
||||||
|
shadow = {
|
||||||
|
enabled = true,
|
||||||
|
range = 16,
|
||||||
|
render_power = 2,
|
||||||
|
color = "rgba(00000040)",
|
||||||
|
},
|
||||||
|
blur = {
|
||||||
|
enabled = true,
|
||||||
|
size = 5,
|
||||||
|
passes = 2,
|
||||||
|
vibrancy = 0.14,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
animations = {
|
||||||
|
enabled = true,
|
||||||
|
-- Windows: quick, soft, intentional
|
||||||
|
-- Workspaces: airy glide, finishes fast
|
||||||
|
-- Subtle polish
|
||||||
|
},
|
||||||
|
})
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
general {
|
|
||||||
lock_cmd = pidof hyprlock || hyprlock
|
|
||||||
before_sleep_cmd = loginctl lock-session
|
|
||||||
}
|
|
||||||
|
|
||||||
12
.config/hypr/hypridle.lua
Normal file
12
.config/hypr/hypridle.lua
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
-- Generated by hyprconf2lua v1.3.2
|
||||||
|
-- https://github.com/Prateek-squadron/hyprconf2lua
|
||||||
|
-- Manual review may be needed for complex directives
|
||||||
|
|
||||||
|
---@module 'hl'
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
general = {
|
||||||
|
lock_cmd = "pidof hyprlock || hyprlock",
|
||||||
|
before_sleep_cmd = "loginctl lock-session",
|
||||||
|
},
|
||||||
|
})
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
source = ~/.config/hypr/monitors.conf
|
|
||||||
|
|
||||||
# Set programs that you use
|
|
||||||
$terminal = kitty
|
|
||||||
$fileManager = thunar
|
|
||||||
$menu = wofi --show drun
|
|
||||||
$browser = brave
|
|
||||||
|
|
||||||
exec-once = /usr/lib/xdg-desktop-portal-hyprland &
|
|
||||||
exec-once = /usr/lib/xdg-desktop-portal &
|
|
||||||
exec-once = hyprpaper
|
|
||||||
exec-once = hypridle
|
|
||||||
exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # for GTK4 apps
|
|
||||||
exec = gsettings set org.gnome.desktop.interface gtk-theme "adw-gtk3-dark" # for GTK3 apps
|
|
||||||
|
|
||||||
misc {
|
|
||||||
force_default_wallpaper = 0
|
|
||||||
disable_hyprland_logo = true
|
|
||||||
initial_workspace_tracking = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
#############################
|
|
||||||
### ENVIRONMENT VARIABLES ###
|
|
||||||
#############################
|
|
||||||
|
|
||||||
env = XCURSOR_SIZE,24
|
|
||||||
env = HYPRCURSOR_SIZE,24
|
|
||||||
env = LIBVA_DRIVER_NAME,nvidia
|
|
||||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
|
||||||
env = NVD_BACKEND,direct
|
|
||||||
env = QT_QPA_PLATFORMTHEME,qt6ct # for Qt apps# Theme
|
|
||||||
|
|
||||||
exec-once = nextcloud
|
|
||||||
exec-once = waybar
|
|
||||||
exec-once = hyprctl setcursor breeze 24
|
|
||||||
|
|
||||||
source = ~/.config/hypr/input.conf
|
|
||||||
source = ~/.config/hypr/keybinds.conf
|
|
||||||
source = ~/.config/hypr/applications.conf
|
|
||||||
source = ~/.config/hypr/decoration.conf
|
|
||||||
source = ~/.config/hypr/workspaces.conf
|
|
||||||
source = ~/.config/hypr/hyprpaper.conf
|
|
||||||
79
.config/hypr/hyprland.lua
Normal file
79
.config/hypr/hyprland.lua
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
-- Generated by hyprconf2lua v1.3.2
|
||||||
|
-- https://github.com/Prateek-squadron/hyprconf2lua
|
||||||
|
-- Manual review may be needed for complex directives
|
||||||
|
|
||||||
|
---@module 'hl'
|
||||||
|
|
||||||
|
-- source = ~/.config/hypr/monitors.conf -> requires manual conversion
|
||||||
|
local monitors = require("monitors")
|
||||||
|
-- TODO: convert ~/.config/hypr/monitors.conf to .lua and use require()
|
||||||
|
|
||||||
|
-- Set programs that you use
|
||||||
|
|
||||||
|
terminal = "kitty"
|
||||||
|
|
||||||
|
fileManager = "thunar"
|
||||||
|
|
||||||
|
menu = "wofi --show drun"
|
||||||
|
|
||||||
|
browser = "brave"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- for GTK4 apps
|
||||||
|
|
||||||
|
|
||||||
|
-- for GTK3 apps
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
misc = {
|
||||||
|
force_default_wallpaper = 0,
|
||||||
|
disable_hyprland_logo = true,
|
||||||
|
initial_workspace_tracking = 1,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
--############################
|
||||||
|
|
||||||
|
--## ENVIRONMENT VARIABLES ###
|
||||||
|
|
||||||
|
--############################
|
||||||
|
|
||||||
|
hl.env("XCURSOR_SIZE", 24)
|
||||||
|
|
||||||
|
hl.env("HYPRCURSOR_SIZE", 24)
|
||||||
|
|
||||||
|
hl.env("LIBVA_DRIVER_NAME", "nvidia")
|
||||||
|
|
||||||
|
hl.env("__GLX_VENDOR_LIBRARY_NAME", "nvidia")
|
||||||
|
|
||||||
|
hl.env("NVD_BACKEND", "direct")
|
||||||
|
|
||||||
|
hl.env("QT_QPA_PLATFORMTHEME", "qt6ct")
|
||||||
|
|
||||||
|
-- for Qt apps# Theme
|
||||||
|
local keybinds = require("keybinds")
|
||||||
|
local input = require("input")
|
||||||
|
local applications = require("applications")
|
||||||
|
local decorations = require("decoration")
|
||||||
|
local workspaces = require("workspaces")
|
||||||
|
|
||||||
|
-- Autostart
|
||||||
|
hl.on("hyprland.start", function()
|
||||||
|
hl.exec_cmd("/usr/lib/xdg-desktop-portal-hyprland &")
|
||||||
|
hl.exec_cmd("/usr/lib/xdg-desktop-portal &")
|
||||||
|
hl.exec_cmd("hyprpaper")
|
||||||
|
hl.exec_cmd("hypridle")
|
||||||
|
hl.exec_cmd("nextcloud")
|
||||||
|
hl.exec_cmd("waybar")
|
||||||
|
hl.exec_cmd("hyprctl setcursor breeze 24")
|
||||||
|
end)
|
||||||
|
|
||||||
|
-- Exec (run every reload)
|
||||||
|
hl.on("config.reloaded", function()
|
||||||
|
hl.exec_cmd("gsettings set org.gnome.desktop.interface color-scheme prefer-dark")
|
||||||
|
hl.exec_cmd("gsettings set org.gnome.desktop.interface gtk-theme adw-gtk3-dark")
|
||||||
|
end)
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
splash = false
|
|
||||||
preload = ~/.wallpapers/liminal.png
|
|
||||||
wallpaper = ,~/.wallpapers/liminal.png
|
|
||||||
13
.config/hypr/hyprpaper.lua
Normal file
13
.config/hypr/hyprpaper.lua
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
-- Generated by hyprconf2lua v1.3.2
|
||||||
|
-- https://github.com/Prateek-squadron/hyprconf2lua
|
||||||
|
-- Manual review may be needed for complex directives
|
||||||
|
|
||||||
|
---@module 'hl'
|
||||||
|
|
||||||
|
-- TODO: manual review: splash = false
|
||||||
|
|
||||||
|
-- TODO: manual review: preload = "~/.wallpapers/liminal.png"
|
||||||
|
|
||||||
|
-- TODO: manual review: wallpaper = "DP-1", "~/.wallpapers/liminal.png"
|
||||||
|
|
||||||
|
-- TODO: manual review: wallpaper = "DP-3", "~/.wallpapers/liminal.png"
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
input {
|
|
||||||
kb_layout = ie
|
|
||||||
kb_variant =
|
|
||||||
kb_model =
|
|
||||||
kb_options =
|
|
||||||
kb_rules =
|
|
||||||
|
|
||||||
follow_mouse = 1
|
|
||||||
accel_profile = flat
|
|
||||||
|
|
||||||
sensitivity = 0.75
|
|
||||||
|
|
||||||
touchpad {
|
|
||||||
natural_scroll = true
|
|
||||||
scroll_factor = 0.45
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
device {
|
|
||||||
name = logitech-pro-x-1
|
|
||||||
sensitivity = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
gestures {
|
|
||||||
workspace_swipe_cancel_ratio = 0
|
|
||||||
workspace_swipe_min_speed_to_force = 10
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
gesture = 3, horizontal, scale: 0.1, workspace
|
|
||||||
gesture = 3, down, fullscreen
|
|
||||||
20
.config/hypr/input.lua
Normal file
20
.config/hypr/input.lua
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
hl.config({
|
||||||
|
input = {
|
||||||
|
kb_layout = "ie",
|
||||||
|
follow_mouse = 1,
|
||||||
|
accel_profile = "flat",
|
||||||
|
sensitivity = 0.75,
|
||||||
|
touchpad = {
|
||||||
|
natural_scroll = true,
|
||||||
|
scroll_factor = 0.45,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
gestures = {
|
||||||
|
workspace_swipe_cancel_ratio = 0,
|
||||||
|
workspace_swipe_min_speed_to_force = 10,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
|
||||||
|
|
||||||
bind = $mainMod, RETURN, exec, $terminal
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
|
||||||
bind = $mainMod, left, movefocus, l
|
|
||||||
bind = $mainMod, right, movefocus, r
|
|
||||||
bind = $mainMod, up, movefocus, u
|
|
||||||
bind = $mainMod, down, movefocus, d
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# Move active 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
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
bind = $mainMod, mouse_down, workspace, e+1
|
|
||||||
bind = $mainMod, mouse_up, workspace, e-1
|
|
||||||
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
bindm = $mainMod, mouse:272, movewindow
|
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
|
||||||
|
|
||||||
# Change wallpaper
|
|
||||||
bind = $mainMod, W, exec, ~/.config/wofi/scripts/wallpaper.sh
|
|
||||||
|
|
||||||
bindel = $mainMod, L, exec, brightnessctl -e4 -n2 set 5%+
|
|
||||||
bindel = $mainMod, K, exec, brightnessctl -e4 -n2 set 5%-
|
|
||||||
|
|
||||||
# Volume
|
|
||||||
bindl = , F6, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
|
||||||
bindl = , F7, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
|
||||||
bindl = , F8, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
|
||||||
bindl = , F9, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
|
||||||
|
|
||||||
# Playback (requires playerctl)
|
|
||||||
bindl = , F3, exec, playerctl previous
|
|
||||||
bindl = , F4, exec, playerctl play-pause
|
|
||||||
bindl = , F5, exec, playerctl next
|
|
||||||
|
|
||||||
bindl = , switch:on:Lid Switch, exec, hyprctl dispatch dpms off
|
|
||||||
bindl = , switch:off:Lid Switch, exec, hyprctl dispatch dpms on
|
|
||||||
|
|
||||||
bind = SUPER CTRL, left, swapwindow, l
|
|
||||||
bind = SUPER CTRL, right, swapwindow, r
|
|
||||||
bind = SUPER SHIFT, F, fullscreen
|
|
||||||
bind = SUPER CTRL, F, fullscreen, 1
|
|
||||||
bind = SUPER, Q, killactive
|
|
||||||
bind = ALT, TAB, cyclenext
|
|
||||||
|
|
||||||
bind = SUPER, F, exec, $fileManager
|
|
||||||
bind = SUPER, D, exec, $menu
|
|
||||||
bind = SUPER, B, exec, $browser
|
|
||||||
bind = SUPER SHIFT, S, exec, grim -g "$(slurp)" - | wl-copy
|
|
||||||
130
.config/hypr/keybinds.lua
Normal file
130
.config/hypr/keybinds.lua
Normal file
@@ -0,0 +1,130 @@
|
|||||||
|
-- Generated by hyprconf2lua v1.3.2
|
||||||
|
-- https://github.com/Prateek-squadron/hyprconf2lua
|
||||||
|
-- Manual review may be needed for complex directives
|
||||||
|
|
||||||
|
---@module 'hl'
|
||||||
|
|
||||||
|
local mainMod = "SUPER"
|
||||||
|
|
||||||
|
-- Sets "Windows" key as main modifier
|
||||||
|
|
||||||
|
hl.bind(mainMod .. " + " .. "RETURN", hl.dsp.exec_cmd(terminal))
|
||||||
|
|
||||||
|
-- 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]
|
||||||
|
|
||||||
|
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 }))
|
||||||
|
|
||||||
|
-- Move active 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 }))
|
||||||
|
|
||||||
|
-- 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 })
|
||||||
|
|
||||||
|
-- Change wallpaper
|
||||||
|
|
||||||
|
hl.bind(mainMod .. " + " .. "W", hl.dsp.exec_cmd("~/.config/wofi/scripts/wallpaper.sh"))
|
||||||
|
|
||||||
|
hl.bind(mainMod .. " + " .. "L", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"), { locked = true })
|
||||||
|
|
||||||
|
hl.bind(mainMod .. " + " .. "K", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"), { locked = true })
|
||||||
|
|
||||||
|
-- Volume
|
||||||
|
|
||||||
|
hl.bind("F7", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), { locked = true })
|
||||||
|
|
||||||
|
hl.bind("F8", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"), { locked = true })
|
||||||
|
|
||||||
|
hl.bind("F9", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { locked = true })
|
||||||
|
|
||||||
|
hl.bind("F10", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { locked = true })
|
||||||
|
|
||||||
|
-- Playback (requires playerctl)
|
||||||
|
|
||||||
|
hl.bind("F4", hl.dsp.exec_cmd("playerctl previous"), { locked = true })
|
||||||
|
|
||||||
|
hl.bind("F5", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
|
||||||
|
|
||||||
|
hl.bind("F6", hl.dsp.exec_cmd("playerctl next"), { locked = true })
|
||||||
|
|
||||||
|
hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("hyprctl dispatch dpms off"), { locked = true })
|
||||||
|
|
||||||
|
hl.bind("switch:off:Lid Switch", hl.dsp.exec_cmd("hyprctl dispatch dpms on"), { locked = true })
|
||||||
|
|
||||||
|
hl.bind("SUPER + CTRL" .. " + " .. "left", hl.dsp.window.swap({ direction = "left" }))
|
||||||
|
|
||||||
|
hl.bind("SUPER + CTRL" .. " + " .. "right", hl.dsp.window.swap({ direction = "right" }))
|
||||||
|
|
||||||
|
hl.bind("SUPER + SHIFT" .. " + " .. "F", hl.dsp.window.fullscreen())
|
||||||
|
|
||||||
|
hl.bind("SUPER + CTRL" .. " + " .. "F", hl.dsp.window.fullscreen({mode = "maximized"}))
|
||||||
|
|
||||||
|
hl.bind("SUPER" .. " + " .. "Q", hl.dsp.window.close())
|
||||||
|
|
||||||
|
hl.bind("ALT" .. " + " .. "TAB", hl.dsp.window.cycle_next())
|
||||||
|
|
||||||
|
hl.bind("SUPER" .. " + " .. "F", hl.dsp.exec_cmd(fileManager))
|
||||||
|
|
||||||
|
hl.bind("SUPER" .. " + " .. "D", hl.dsp.exec_cmd(menu))
|
||||||
|
|
||||||
|
hl.bind("SUPER" .. " + " .. "B", hl.dsp.exec_cmd(browser))
|
||||||
|
|
||||||
|
hl.bind(
|
||||||
|
"SUPER + SHIFT + S",
|
||||||
|
hl.dsp.exec_cmd('grim -g "$(slurp -d)" - | wl-copy')
|
||||||
|
)
|
||||||
19
.config/hypr/monitors.lua
Normal file
19
.config/hypr/monitors.lua
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
-- Generated by hyprconf2lua v1.3.2
|
||||||
|
-- https://github.com/Prateek-squadron/hyprconf2lua
|
||||||
|
-- Manual review may be needed for complex directives
|
||||||
|
|
||||||
|
---@module 'hl'
|
||||||
|
|
||||||
|
hl.monitor({
|
||||||
|
output = "DP-3",
|
||||||
|
mode = "1920x1080@270",
|
||||||
|
position = "0x0",
|
||||||
|
scale = 1,
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.monitor({
|
||||||
|
output = "DP-1",
|
||||||
|
mode = "1920x1080@144",
|
||||||
|
position = "-1920x0",
|
||||||
|
scale = 1,
|
||||||
|
})
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# Workspaces 1–5 on DP-3
|
|
||||||
workspace = 1, monitor:DP-3, default:true
|
|
||||||
workspace = 2, monitor:DP-3
|
|
||||||
workspace = 3, monitor:DP-3
|
|
||||||
workspace = 4, monitor:DP-3
|
|
||||||
workspace = 5, monitor:DP-3
|
|
||||||
|
|
||||||
# Workspaces 6–10 on DP-1
|
|
||||||
workspace = 6, monitor:DP-1, default:true
|
|
||||||
workspace = 7, monitor:DP-1
|
|
||||||
workspace = 8, monitor:DP-1
|
|
||||||
workspace = 9, monitor:DP-1
|
|
||||||
workspace = 10, monitor:DP-1
|
|
||||||
|
|
||||||
59
.config/hypr/workspaces.lua
Normal file
59
.config/hypr/workspaces.lua
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
-- Generated by hyprconf2lua v1.3.2
|
||||||
|
-- https://github.com/Prateek-squadron/hyprconf2lua
|
||||||
|
-- Manual review may be needed for complex directives
|
||||||
|
|
||||||
|
---@module 'hl'
|
||||||
|
|
||||||
|
-- Workspaces 1–5 on DP-3
|
||||||
|
|
||||||
|
hl.workspace_rule({
|
||||||
|
workspace = 1,
|
||||||
|
monitor = "DP-3",
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.workspace_rule({
|
||||||
|
workspace = 2,
|
||||||
|
monitor = "DP-3",
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.workspace_rule({
|
||||||
|
workspace = 3,
|
||||||
|
monitor = "DP-3",
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.workspace_rule({
|
||||||
|
workspace = 4,
|
||||||
|
monitor = "DP-3",
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.workspace_rule({
|
||||||
|
workspace = 5,
|
||||||
|
monitor = "DP-3",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Workspaces 6–10 on DP-1
|
||||||
|
|
||||||
|
hl.workspace_rule({
|
||||||
|
workspace = 6,
|
||||||
|
monitor = "DP-1",
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.workspace_rule({
|
||||||
|
workspace = 7,
|
||||||
|
monitor = "DP-1",
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.workspace_rule({
|
||||||
|
workspace = 8,
|
||||||
|
monitor = "DP-1",
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.workspace_rule({
|
||||||
|
workspace = 9,
|
||||||
|
monitor = "DP-1",
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.workspace_rule({
|
||||||
|
workspace = 10,
|
||||||
|
monitor = "DP-1",
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user