Compare commits
31 Commits
1c12506728
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9c73a335b9 | |||
| fa4f7a322d | |||
| 561e478849 | |||
| ad539234f1 | |||
| b62db3a09d | |||
| 0513ab1abb | |||
| 84f51e8365 | |||
| 4b08df386f | |||
| 491f2b2765 | |||
| 5c29ef00f1 | |||
| 5b40c331b6 | |||
| 901cfeca0d | |||
| a1001e521e | |||
| aae8be4001 | |||
| 5dce5eb3b7 | |||
| 06b5aaa2d8 | |||
| 84c0bb23b8 | |||
| 3ec778781d | |||
| 30425fa1e4 | |||
| b55b45f25e | |||
| 6bb29b7539 | |||
| 3481125919 | |||
| 798ecf40a2 | |||
| eabcc3de6b | |||
| bf9d570ff3 | |||
| 2c3c58e92d | |||
| bc2c508969 | |||
| 8b12bc3a3b | |||
| e628456780 | |||
| 3c463300b5 | |||
| 984027efcb |
@@ -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,7 +0,0 @@
|
|||||||
{
|
|
||||||
"explorer.confirmDragAndDrop": false,
|
|
||||||
"python.defaultInterpreterPath": "/sbin/python3.14",
|
|
||||||
"git.autofetch": true,
|
|
||||||
"explorer.confirmDelete": false,
|
|
||||||
"git.confirmSync": false
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"offloadAdmControls": true,
|
|
||||||
"BACKGROUND_COLOR": "#000000",
|
|
||||||
"enableHardwareAcceleration": true,
|
|
||||||
"chromiumSwitches": {},
|
|
||||||
"asyncVideoInputDeviceInit": false,
|
|
||||||
"IS_MAXIMIZED": false,
|
|
||||||
"IS_MINIMIZED": false,
|
|
||||||
"WINDOW_BOUNDS": {
|
|
||||||
"x": 1927,
|
|
||||||
"y": 57,
|
|
||||||
"width": 1906,
|
|
||||||
"height": 1016
|
|
||||||
},
|
|
||||||
"SKIP_HOST_UPDATE": true
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Floating
|
|
||||||
windowrule = float 1, match:title Play Timer
|
|
||||||
|
|
||||||
# Opacity
|
|
||||||
windowrule = opacity 0.9 0.75, match:class $terminal
|
|
||||||
|
|
||||||
31
.config/hypr/applications.lua
Normal file
31
.config/hypr/applications.lua
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
-- Opacity
|
||||||
|
hl.window_rule({
|
||||||
|
name = "opacity_0_75_0_6",
|
||||||
|
match = {
|
||||||
|
class = ".*" .. terminal .. ".*"
|
||||||
|
},
|
||||||
|
opacity = "0.75 0.6",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Workspaces
|
||||||
|
hl.window_rule({
|
||||||
|
workspace = "1",
|
||||||
|
match = {
|
||||||
|
class = ".*[Mm]inecraft.*"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.window_rule({
|
||||||
|
workspace = "1",
|
||||||
|
match = {
|
||||||
|
class = ".*[Ss]team*."
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.window_rule({
|
||||||
|
name = "shrink-file-picker",
|
||||||
|
match = { class = "^(xdg-desktop-portal-gtk)$" },
|
||||||
|
float = true,
|
||||||
|
size = {900, 900},
|
||||||
|
move = {"(monitor_w - window_w) / 2", "(monitor_h - window_h) / 2"},
|
||||||
|
})
|
||||||
@@ -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, 5, overshoot, slidefade
|
|
||||||
|
|
||||||
# Subtle polish
|
|
||||||
animation = fade, 1, 4, breeze
|
|
||||||
animation = windowsMove, 1, 3, breeze
|
|
||||||
animation = border, 1, 3, breeze
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
56
.config/hypr/decoration.lua
Normal file
56
.config/hypr/decoration.lua
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
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(E29A6EFF)",
|
||||||
|
inactive_border = "rgba(2C252033)",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
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(1A161340)",
|
||||||
|
},
|
||||||
|
blur = {
|
||||||
|
enabled = true,
|
||||||
|
size = 5,
|
||||||
|
passes = 2,
|
||||||
|
vibrancy = 0.14,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
hl.config({
|
||||||
|
animations = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
hl.curve("myBezier", { type = "bezier", points = { {0.16, 1}, {0.3, 1} } })
|
||||||
|
hl.animation({ leaf = "windows", enabled = true, speed = 1.8, bezier = "myBezier" })
|
||||||
|
hl.animation({ leaf = "windowsOut", enabled = true, speed = 1.6, bezier = "myBezier", style = "popin 90%" })
|
||||||
|
hl.animation({ leaf = "border", enabled = true, speed = 2.5, bezier = "myBezier" })
|
||||||
|
hl.animation({ leaf = "fade", enabled = true, speed = 1.8, bezier = "myBezier" })
|
||||||
|
hl.animation({ leaf = "workspaces", enabled = true, speed = 1.8, bezier = "myBezier" })
|
||||||
@@ -1,41 +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 = 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
|
|
||||||
48
.config/hypr/hyprland.lua
Normal file
48
.config/hypr/hyprland.lua
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
local monitors = require("monitors")
|
||||||
|
|
||||||
|
-- Set programs that you use
|
||||||
|
terminal = "kitty"
|
||||||
|
fileManager = "thunar"
|
||||||
|
menu = "wofi --show drun"
|
||||||
|
browser = "brave"
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
misc = {
|
||||||
|
force_default_wallpaper = 0,
|
||||||
|
disable_hyprland_logo = true,
|
||||||
|
initial_workspace_tracking = 1,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Envs
|
||||||
|
hl.env("XCURSOR_SIZE", 24)
|
||||||
|
hl.env("XCUROSR_THEME", "breeze-dark")
|
||||||
|
hl.env("HYPRCURSOR_SIZE", 24)
|
||||||
|
hl.env("HYPRCURSOR_THEME", "breeze-dark")
|
||||||
|
hl.env("LIBVA_DRIVER_NAME", "nvidia")
|
||||||
|
hl.env("__GLX_VENDOR_LIBRARY_NAME", "nvidia")
|
||||||
|
hl.env("NVD_BACKEND", "direct")
|
||||||
|
hl.env("QT_QPA_PLATFORMTHEME", "qt6ct")
|
||||||
|
|
||||||
|
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("nextcloud")
|
||||||
|
hl.exec_cmd("waybar")
|
||||||
|
hl.exec_cmd("hyprctl setcursor breeze 24")
|
||||||
|
hl.exec_cmd("xsettingsd")
|
||||||
|
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 +1,4 @@
|
|||||||
|
ipc = on
|
||||||
|
preload = /home/dylan/.wallpapers/monochrome.png
|
||||||
|
wallpaper = ,/home/dylan/.wallpapers/monochrome.png
|
||||||
splash = false
|
splash = false
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
input {
|
|
||||||
kb_layout = ie
|
|
||||||
kb_variant =
|
|
||||||
kb_model =
|
|
||||||
kb_options =
|
|
||||||
kb_rules =
|
|
||||||
|
|
||||||
follow_mouse = 1
|
|
||||||
accel_profile = flat
|
|
||||||
force_no_accel=2
|
|
||||||
|
|
||||||
sensitivity = 1
|
|
||||||
|
|
||||||
touchpad {
|
|
||||||
natural_scroll = true
|
|
||||||
scroll_factor = 0.5
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
device {
|
|
||||||
name = logitech-usb-receiver
|
|
||||||
sensitivity = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
gesture = 3, horizontal, 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,
|
||||||
|
touchpad = {
|
||||||
|
natural_scroll = true,
|
||||||
|
scroll_factor = 0.45,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.config({
|
||||||
|
gestures = {
|
||||||
|
workspace_swipe_cancel_ratio = 0,
|
||||||
|
workspace_swipe_min_speed_to_force = 10,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
@@ -1,71 +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 = , F4, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
|
||||||
bindl = , F5, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
|
||||||
bindl = , F6, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
|
||||||
bindl = , F7, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
|
||||||
|
|
||||||
# Playback (requires playerctl)
|
|
||||||
bindl = , F2, exec, playerctl previous
|
|
||||||
bindl = , F1, exec, playerctl play-pause
|
|
||||||
bindl = , F3, exec, playerctl next
|
|
||||||
|
|
||||||
|
|
||||||
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
|
|
||||||
74
.config/hypr/keybinds.lua
Normal file
74
.config/hypr/keybinds.lua
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
---@module 'hl'
|
||||||
|
|
||||||
|
local mainMod = "SUPER"
|
||||||
|
|
||||||
|
-- Sets "Windows" key as main modifier
|
||||||
|
hl.bind(mainMod .. " + " .. "RETURN", hl.dsp.exec_cmd(terminal), { description = "Terminal" })
|
||||||
|
|
||||||
|
-- Move focus with mainMod + arrow keys
|
||||||
|
hl.bind(mainMod .. " + " .. "up", hl.dsp.focus({ direction = "up" }), { description = "Focus up" })
|
||||||
|
hl.bind(mainMod .. " + " .. "down", hl.dsp.focus({ direction = "down" }), { description = "Focus down" })
|
||||||
|
|
||||||
|
-- Switch workspaces with mainMod + [0-9]
|
||||||
|
hl.bind(mainMod .. " + " .. 1, hl.dsp.focus({ workspace = 1 }), { description = "Workspace 1" })
|
||||||
|
hl.bind(mainMod .. " + " .. 2, hl.dsp.focus({ workspace = 2 }), { description = "Workspace 2" })
|
||||||
|
hl.bind(mainMod .. " + " .. 3, hl.dsp.focus({ workspace = 3 }), { description = "Workspace 3" })
|
||||||
|
hl.bind(mainMod .. " + " .. 4, hl.dsp.focus({ workspace = 4 }), { description = "Workspace 4" })
|
||||||
|
hl.bind(mainMod .. " + " .. 5, hl.dsp.focus({ workspace = 5 }), { description = "Workspace 5" })
|
||||||
|
hl.bind(mainMod .. " + " .. 6, hl.dsp.focus({ workspace = 6 }), { description = "Workspace 6" })
|
||||||
|
hl.bind(mainMod .. " + " .. 7, hl.dsp.focus({ workspace = 7 }), { description = "Workspace 7" })
|
||||||
|
hl.bind(mainMod .. " + " .. 8, hl.dsp.focus({ workspace = 8 }), { description = "Workspace 8" })
|
||||||
|
hl.bind(mainMod .. " + " .. 9, hl.dsp.focus({ workspace = 9 }), { description = "Workspace 9" })
|
||||||
|
hl.bind(mainMod .. " + " .. 0, hl.dsp.focus({ workspace = 10 }), { description = "Workspace 10" })
|
||||||
|
|
||||||
|
-- Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 1, hl.dsp.window.move({ workspace = 1 }), { description = "Move window to workspace 1" })
|
||||||
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 2, hl.dsp.window.move({ workspace = 2 }), { description = "Move window to workspace 2" })
|
||||||
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 3, hl.dsp.window.move({ workspace = 3 }), { description = "Move window to workspace 3" })
|
||||||
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 4, hl.dsp.window.move({ workspace = 4 }), { description = "Move window to workspace 4" })
|
||||||
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 5, hl.dsp.window.move({ workspace = 5 }), { description = "Move window to workspace 5" })
|
||||||
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 6, hl.dsp.window.move({ workspace = 6 }), { description = "Move window to workspace 6" })
|
||||||
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 7, hl.dsp.window.move({ workspace = 7 }), { description = "Move window to workspace 7" })
|
||||||
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 8, hl.dsp.window.move({ workspace = 8 }), { description = "Move window to workspace 8" })
|
||||||
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 9, hl.dsp.window.move({ workspace = 9 }), { description = "Move window to workspace 9" })
|
||||||
|
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 0, hl.dsp.window.move({ workspace = 10 }), { description = "Move window to workspace 10" })
|
||||||
|
|
||||||
|
-- Scroll through existing workspaces with mainMod + scroll
|
||||||
|
hl.bind(mainMod .. " + " .. "right", hl.dsp.focus({ workspace = "+1" }), { description = "Next workspace" })
|
||||||
|
hl.bind(mainMod .. " + " .. "left", hl.dsp.focus({ workspace = "-1" }), { description = "Previous workspace" })
|
||||||
|
|
||||||
|
-- Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
hl.bind(mainMod .. " + " .. "mouse:272", hl.dsp.window.drag(), { mouse = true, description = "Move window" })
|
||||||
|
hl.bind(mainMod .. " + " .. "mouse:273", hl.dsp.window.resize(), { mouse = true, description = "Resize window" })
|
||||||
|
|
||||||
|
-- Change wallpaper
|
||||||
|
hl.bind(mainMod .. " + " .. "W", hl.dsp.exec_cmd("~/.config/wofi/scripts/wallpaper.sh"), { description = "Change wallpaper" })
|
||||||
|
hl.bind(mainMod .. " + " .. "L", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"), { locked = true, description = "Brightness up" })
|
||||||
|
hl.bind(mainMod .. " + " .. "K", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"), { locked = true, description = "Brightness down" })
|
||||||
|
|
||||||
|
-- Volume
|
||||||
|
hl.bind("F7", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), { locked = true, description = "Volume down" })
|
||||||
|
hl.bind("F8", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"), { locked = true, description = "Volume up" })
|
||||||
|
hl.bind("F9", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { locked = true, description = "Mute output" })
|
||||||
|
hl.bind("F10", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { locked = true, description = "Mute microphone" })
|
||||||
|
|
||||||
|
-- Playback (requires playerctl)
|
||||||
|
hl.bind("F4", hl.dsp.exec_cmd("playerctl previous"), { locked = true, description = "Previous track" })
|
||||||
|
hl.bind("F5", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true, description = "Play/pause" })
|
||||||
|
hl.bind("F6", hl.dsp.exec_cmd("playerctl next"), { locked = true, description = "Next track" })
|
||||||
|
|
||||||
|
hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("hyprctl dispatch dpms off"), { locked = true, description = "Displays off on lid close" })
|
||||||
|
hl.bind("switch:off:Lid Switch", hl.dsp.exec_cmd("hyprctl dispatch dpms on"), { locked = true, description = "Displays on on lid open" })
|
||||||
|
|
||||||
|
-- My binds
|
||||||
|
hl.bind("SUPER + CTRL" .. " + " .. "left", hl.dsp.window.swap({ direction = "left" }), { description = "Swap window left" })
|
||||||
|
hl.bind("SUPER + CTRL" .. " + " .. "right", hl.dsp.window.swap({ direction = "right" }), { description = "Swap window right" })
|
||||||
|
hl.bind("SUPER + SHIFT" .. " + " .. "F", hl.dsp.window.fullscreen(), { description = "Fullscreen" })
|
||||||
|
hl.bind("SUPER + CTRL" .. " + " .. "F", hl.dsp.window.fullscreen({mode = "maximized"}), { description = "Maximize" })
|
||||||
|
hl.bind("SUPER" .. " + " .. "Q", hl.dsp.window.close(), { description = "Close window" })
|
||||||
|
hl.bind("ALT" .. " + " .. "TAB", hl.dsp.window.cycle_next(), { description = "Cycle windows" })
|
||||||
|
hl.bind("SUPER" .. " + " .. "F", hl.dsp.exec_cmd(fileManager), { description = "File manager" })
|
||||||
|
hl.bind("SUPER" .. " + " .. "D", hl.dsp.exec_cmd(menu), { description = "App launcher" })
|
||||||
|
hl.bind("SUPER" .. " + " .. "B", hl.dsp.exec_cmd(browser), { description = "Browser" })
|
||||||
|
hl.bind("SUPER + SHIFT + S", hl.dsp.exec_cmd('grim -g "$(slurp -d)" - | wl-copy'), { description = "Screenshot region to clipboard" })
|
||||||
|
hl.bind(mainMod .. " + slash", hl.dsp.exec_cmd(os.getenv("HOME") .. "/.config/hypr/scripts/show-binds.sh"), { description = "Show keybind cheat sheet" })
|
||||||
13
.config/hypr/monitors.lua
Normal file
13
.config/hypr/monitors.lua
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
hl.monitor({
|
||||||
|
output = "DP-3",
|
||||||
|
mode = "1920x1080@270",
|
||||||
|
position = "0x0",
|
||||||
|
scale = 1,
|
||||||
|
})
|
||||||
|
|
||||||
|
hl.monitor({
|
||||||
|
output = "DP-1",
|
||||||
|
mode = "1920x1080@144",
|
||||||
|
position = "-1920x0",
|
||||||
|
scale = 1,
|
||||||
|
})
|
||||||
26
.config/hypr/scripts/show-binds.sh
Executable file
26
.config/hypr/scripts/show-binds.sh
Executable file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
DATA=$(hyprctl -j binds | jq -r '
|
||||||
|
def mods(m):
|
||||||
|
[ if m >= 64 then "SUPER" else empty end,
|
||||||
|
if (m % 16) >= 8 then "ALT" else empty end,
|
||||||
|
if (m % 8) >= 4 then "CTRL" else empty end,
|
||||||
|
if (m % 2) >= 1 then "SHIFT" else empty end ] | join("+");
|
||||||
|
[ .[] | select(.has_description)
|
||||||
|
| { k: "\(if .modmask > 0 then mods(.modmask) + "+" else "" end)\(.key)",
|
||||||
|
d: .description } ]
|
||||||
|
| sort_by(.k)
|
||||||
|
| (map(.k | length) | max) as $w
|
||||||
|
| .[] | "\(.k + (" " * ($w - (.k | length)))) \(.d)"
|
||||||
|
')
|
||||||
|
|
||||||
|
COLS=$(awk '{ if (length > m) m = length } END { print m }' <<< "$DATA")
|
||||||
|
ROWS=$(wc -l <<< "$DATA")
|
||||||
|
|
||||||
|
PRW=$(( COLS * 2 + 4 ))
|
||||||
|
PX=$(( PRW * 7 + 60 ))
|
||||||
|
PY=$(( (ROWS / 2 + 2) * 18 + 60 ))
|
||||||
|
|
||||||
|
pr -2 -t -w "$PRW" <<< "$DATA" \
|
||||||
|
| yad --text-info --title="Hyprland Keybinds" \
|
||||||
|
--width="$PX" --height="$PY" --center \
|
||||||
|
--fontname="monospace 10" --no-buttons --wrap=false
|
||||||
@@ -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
|
|
||||||
|
|
||||||
51
.config/hypr/workspaces.lua
Normal file
51
.config/hypr/workspaces.lua
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
-- 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",
|
||||||
|
})
|
||||||
43
.config/waybar/scripts/mediaplayer.sh
Executable file
43
.config/waybar/scripts/mediaplayer.sh
Executable file
@@ -0,0 +1,43 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# waybar custom module: shows currently playing media, mac-menu-bar style.
|
||||||
|
# Outputs a single JSON line: {"text":..., "tooltip":..., "class":..., "alt":...}
|
||||||
|
# waybar re-runs this on an interval (set in config.jsonc) and re-renders.
|
||||||
|
|
||||||
|
# --status-format lets us build one compact string per call instead of
|
||||||
|
# separate playerctl invocations for title/artist/status (fewer subprocess
|
||||||
|
# spawns = faster polling, matters since waybar calls this every ~1s).
|
||||||
|
STATUS=$(playerctl -a metadata --format '{{status}}|{{artist}}|{{title}}|{{playerName}}' 2>/dev/null | head -n1)
|
||||||
|
|
||||||
|
if [ -z "$STATUS" ]; then
|
||||||
|
# No MPRIS players running at all -> render nothing (empty text hides
|
||||||
|
# the module if `"class": "hidden"` is styled to display:none, but
|
||||||
|
# simplest is just an empty text with no tooltip).
|
||||||
|
echo '{"text": "", "tooltip": "No media playing", "class": "hidden"}'
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# IFS='|' read splits our pipe-delimited format string into vars.
|
||||||
|
IFS='|' read -r PSTATUS ARTIST TITLE PLAYER <<< "$STATUS"
|
||||||
|
|
||||||
|
# Playing vs Paused get different CSS classes so you can dim the paused state.
|
||||||
|
case "$PSTATUS" in
|
||||||
|
Playing) ICON="" ;; # nerd-font play glyph
|
||||||
|
Paused) ICON="" ;; # nerd-font pause glyph
|
||||||
|
*) ICON="" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Truncate long titles so the bar doesn't blow out — cut at 30 chars,
|
||||||
|
# append an ellipsis. This is bash parameter expansion, not a subprocess.
|
||||||
|
LABEL="${ARTIST} - ${TITLE}"
|
||||||
|
if [ "${#LABEL}" -gt 32 ]; then
|
||||||
|
LABEL="${LABEL:0:29}..."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Escape double quotes so we don't break the JSON if a title contains one.
|
||||||
|
LABEL_ESC=$(printf '%s' "$LABEL" | sed 's/"/\\"/g')
|
||||||
|
TOOLTIP_ESC=$(printf '%s — %s\n(%s)' "$ARTIST" "$TITLE" "$PLAYER" | sed 's/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g')
|
||||||
|
|
||||||
|
CLASS="media-${PSTATUS,,}" # bash ${var,,} lowercases -> "media-playing" / "media-paused"
|
||||||
|
|
||||||
|
echo "{\"text\": \"${ICON} ${LABEL_ESC}\", \"tooltip\": \"${TOOLTIP_ESC}\", \"class\": \"${CLASS}\", \"alt\": \"${PSTATUS}\"}"
|
||||||
@@ -1,32 +1,33 @@
|
|||||||
/* ============================================================
|
/* ============================================================
|
||||||
WAYBAR STYLE — Dark Industrial / Refined Utility
|
WAYBAR STYLE — Cream Claude / Warm Minimal
|
||||||
Palette: deep charcoal base, amber accents, cool greys
|
Palette: warm cream base, clay/terracotta accent, soft browns
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
/* ── Root Variables ───────────────────────────────────────── */
|
/* ── Root Variables ───────────────────────────────────────── */
|
||||||
* {
|
* {
|
||||||
font-family: "JetBrainsMono Nerd Font Propo";
|
font-family: "Inter", "SF Pro Display", "Segoe UI", sans-serif;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
font-weight: 400;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Bar ──────────────────────────────────────────────────── */
|
/* ── Bar ──────────────────────────────────────────────────── */
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background: rgba(10, 10, 14, 0);
|
background: rgba(26, 22, 19, 0.55);
|
||||||
color: #dcdce8;
|
color: #e8ddd0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Tooltip ──────────────────────────────────────────────── */
|
/* ── Tooltip ──────────────────────────────────────────────── */
|
||||||
tooltip {
|
tooltip {
|
||||||
background: #0e0e12;
|
background: rgba(30, 25, 21, 0.92);
|
||||||
border: 1px solid rgba(255, 180, 60, 0.35);
|
border: 1px solid rgba(196, 108, 74, 0.4);
|
||||||
color: #dcdce8;
|
color: #e8ddd0;
|
||||||
padding: 6px 10px;
|
padding: 6px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
tooltip label {
|
tooltip label {
|
||||||
color: #dcdce8;
|
color: #e8ddd0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Shared Module Base ───────────────────────────────────── */
|
/* ── Shared Module Base ───────────────────────────────────── */
|
||||||
@@ -41,53 +42,42 @@ tooltip label {
|
|||||||
#custom-power {
|
#custom-power {
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
color: #dcdce8;
|
color: #e8ddd0;
|
||||||
background: rgba(10, 10, 14, 0.3);
|
background: rgba(44, 37, 32, 0.5);
|
||||||
transition: color 0.2s ease, background 0.2s ease;
|
transition: color 0.2s ease, background 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Separator dots between modules ──────────────────────── */
|
|
||||||
#cpu,
|
|
||||||
#memory,
|
|
||||||
#pulseaudio,
|
|
||||||
#bluetooth,
|
|
||||||
#custom-micmute,
|
|
||||||
#battery {
|
|
||||||
border-left: 1px solid rgba(255, 255, 255, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* ═══════════════════════════════════════════════════════════
|
/* ═══════════════════════════════════════════════════════════
|
||||||
LEFT — System Info: Clock · CPU · Memory
|
LEFT — System Info: Clock · CPU · Memory
|
||||||
═══════════════════════════════════════════════════════════ */
|
═══════════════════════════════════════════════════════════ */
|
||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
font-family: "JetBrainsMono Nerd Font Propo";
|
font-weight: 500;
|
||||||
font-weight: 400;
|
|
||||||
font-size: 12.5px;
|
font-size: 12.5px;
|
||||||
color: #f0de9c;
|
color: #e29a6e;
|
||||||
letter-spacing: 0.04em;
|
letter-spacing: 0.03em;
|
||||||
padding-left: 0.4em;
|
padding-left: 0.4em;
|
||||||
border-left: 3px solid rgba(255, 180, 60, 0.3);
|
border-left: 3px solid rgba(226, 154, 110, 0.5);
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#cpu {
|
#cpu {
|
||||||
color: #b8d8ee;
|
color: #c9baa8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#cpu:hover {
|
#cpu:hover {
|
||||||
color: #d8f0ff;
|
color: #f0e6d8;
|
||||||
background: rgba(160, 196, 216, 0.14);
|
background: rgba(226, 154, 110, 0.16);
|
||||||
}
|
}
|
||||||
|
|
||||||
#memory {
|
#memory {
|
||||||
color: #b0d4be;
|
color: #c9baa8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#memory:hover {
|
#memory:hover {
|
||||||
color: #ceeede;
|
color: #f0e6d8;
|
||||||
background: rgba(157, 191, 173, 0.14);
|
background: rgba(180, 156, 120, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -102,12 +92,11 @@ tooltip label {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
font-family: 'JetBrains Nerd Font Propo';
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding: 2px 10px;
|
padding: 2px 10px;
|
||||||
margin: 4px 2px;
|
margin: 4px 2px;
|
||||||
color: #6e6e88;
|
color: #8a7a68;
|
||||||
background: rgba(255, 255, 255, 0.05);
|
background: rgba(232, 221, 208, 0.08);
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
transition: all 0.15s ease;
|
transition: all 0.15s ease;
|
||||||
@@ -115,22 +104,22 @@ tooltip label {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:hover {
|
#workspaces button:hover {
|
||||||
color: #c0c0d8;
|
color: #e8ddd0;
|
||||||
background: rgba(255, 255, 255, 0.1);
|
background: rgba(232, 221, 208, 0.14);
|
||||||
border-color: rgba(255, 255, 255, 0.15);
|
border-color: rgba(232, 221, 208, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.active {
|
#workspaces button.active {
|
||||||
color: #f0c060;
|
color: #e29a6e;
|
||||||
background: rgba(255, 180, 60, 0.14);
|
background: rgba(226, 154, 110, 0.18);
|
||||||
border-color: rgba(255, 180, 60, 0.5);
|
border-color: rgba(226, 154, 110, 0.55);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#workspaces button.urgent {
|
||||||
color: #f08080;
|
color: #d9695a;
|
||||||
background: rgba(240, 80, 80, 0.15);
|
background: rgba(217, 105, 90, 0.18);
|
||||||
border-color: rgba(240, 80, 80, 0.45);
|
border-color: rgba(217, 105, 90, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -149,61 +138,61 @@ tooltip label {
|
|||||||
|
|
||||||
#tray > .needs-attention {
|
#tray > .needs-attention {
|
||||||
-gtk-icon-effect: highlight;
|
-gtk-icon-effect: highlight;
|
||||||
background-color: rgba(240, 120, 60, 0.25);
|
background-color: rgba(196, 108, 74, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Audio ────────────────────────────────────────────────── */
|
/* ── Audio ────────────────────────────────────────────────── */
|
||||||
#pulseaudio {
|
#pulseaudio {
|
||||||
color: #c4bce8;
|
color: #c9a68c;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pulseaudio:hover {
|
#pulseaudio:hover {
|
||||||
color: #e0d8ff;
|
color: #f0e6d8;
|
||||||
background: rgba(176, 168, 216, 0.14);
|
background: rgba(201, 166, 140, 0.16);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Bluetooth ────────────────────────────────────────────── */
|
/* ── Bluetooth ────────────────────────────────────────────── */
|
||||||
#bluetooth {
|
#bluetooth {
|
||||||
color: #90c8f0;
|
color: #9ab4c4;
|
||||||
}
|
}
|
||||||
|
|
||||||
#bluetooth.connected {
|
#bluetooth.connected {
|
||||||
color: #70d8ff;
|
color: #a8c8dc;
|
||||||
}
|
}
|
||||||
|
|
||||||
#bluetooth:hover {
|
#bluetooth:hover {
|
||||||
background: rgba(128, 184, 224, 0.14);
|
background: rgba(154, 180, 196, 0.16);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Microphone Mute ──────────────────────────────────────── */
|
/* ── Microphone Mute ──────────────────────────────────────── */
|
||||||
#custom-micmute {
|
#custom-micmute {
|
||||||
color: #b0d4be;
|
color: #c9baa8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-micmute.muted {
|
#custom-micmute.muted {
|
||||||
color: #585870;
|
color: #6e6055;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-micmute:hover {
|
#custom-micmute:hover {
|
||||||
background: rgba(157, 191, 173, 0.14);
|
background: rgba(201, 186, 168, 0.16);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Battery ──────────────────────────────────────────────── */
|
/* ── Battery ──────────────────────────────────────────────── */
|
||||||
#battery {
|
#battery {
|
||||||
color: #b8dc98;
|
color: #a8bc90;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.charging,
|
#battery.charging,
|
||||||
#battery.plugged {
|
#battery.plugged {
|
||||||
color: #d4f098;
|
color: #c0d4a0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.warning:not(.charging) {
|
#battery.warning:not(.charging) {
|
||||||
color: #eecb68;
|
color: #dcb06a;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.critical:not(.charging) {
|
#battery.critical:not(.charging) {
|
||||||
color: #f07060;
|
color: #e0796a;
|
||||||
animation: battery-pulse 1.5s ease-in-out infinite;
|
animation: battery-pulse 1.5s ease-in-out infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -220,19 +209,19 @@ tooltip label {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#battery:hover {
|
#battery:hover {
|
||||||
background: rgba(168, 204, 136, 0.14);
|
background: rgba(168, 188, 144, 0.16);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Power Button ─────────────────────────────────────────── */
|
/* ── Power Button ─────────────────────────────────────────── */
|
||||||
#custom-power {
|
#custom-power {
|
||||||
color: #d07070;
|
color: #e29a6e;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
padding: 2px 14px 2px 12px;
|
padding: 2px 14px 2px 12px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
border-right: 3px solid rgba(255, 0, 0, 0.3);
|
border-right: 3px solid rgba(196, 108, 74, 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-power:hover {
|
#custom-power:hover {
|
||||||
color: #f09090;
|
color: #c0392b;
|
||||||
background: rgba(200, 60, 60, 0.2);
|
background: rgba(196, 108, 74, 0.2);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
"label" : "logout",
|
"label" : "logout",
|
||||||
"action" : "loginctl terminate-user $USER",
|
"action" : "hyprctl dispatch 'hl.dsp.exit()'",
|
||||||
"text" : "Logout",
|
"text" : "Logout",
|
||||||
"keybind" : "e"
|
"keybind" : "e"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
mode=drun
|
show=drun
|
||||||
allow_images=true
|
width=600
|
||||||
image_size=32
|
height=420
|
||||||
term=kitty
|
|
||||||
insensitive=true
|
|
||||||
location=center
|
location=center
|
||||||
no_actions=true
|
|
||||||
prompt=Search
|
prompt=Search
|
||||||
|
allow_images=true
|
||||||
|
image_size=28
|
||||||
|
insensitive=true
|
||||||
|
hide_scroll=true
|
||||||
|
no_actions=true
|
||||||
|
gtk_dark=true
|
||||||
|
|||||||
@@ -1,91 +1,44 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Configuration
|
# wallpaper.sh — pick a wallpaper from ~/.wallpapers via wofi, apply with hyprpaper
|
||||||
WALLPAPER_DIR="$HOME/.wallpapers" # Change this to your wallpaper directory
|
set -euo pipefail
|
||||||
CACHE_DIR="$HOME/.cache/wallpaper-selector"
|
DIR="${HOME}/.wallpapers"
|
||||||
THUMBNAIL_WIDTH="250" # Size of thumbnails in pixels (16:9)
|
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/wallpaper-thumbs"
|
||||||
THUMBNAIL_HEIGHT="141"
|
[[ -d "$DIR" ]] || { notify-send "wallpaper.sh" "No $DIR"; exit 1; }
|
||||||
# Create cache directory if it doesn't exist
|
mkdir -p "$CACHE"
|
||||||
mkdir -p "$CACHE_DIR"
|
|
||||||
|
|
||||||
# Function to generate thumbnail
|
mapfile -t files < <(find -L "$DIR" -maxdepth 1 -type f \
|
||||||
generate_thumbnail() {
|
\( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' -o -iname '*.webp' \) \
|
||||||
local input="$1"
|
-printf '%f\n' | LC_ALL=C sort)
|
||||||
local output="$2"
|
[[ ${#files[@]} -gt 0 ]] || { notify-send "wallpaper.sh" "No images found"; exit 1; }
|
||||||
magick "$input" -thumbnail "${THUMBNAIL_WIDTH}x${THUMBNAIL_HEIGHT}^" -gravity center -extent "${THUMBNAIL_WIDTH}x${THUMBNAIL_HEIGHT}" "$output"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Create shuffle icon thumbnail on the fly
|
# Build any missing/stale thumbnails, in parallel.
|
||||||
SHUFFLE_ICON="$CACHE_DIR/shuffle_thumbnail.png"
|
for f in "${files[@]}"; do
|
||||||
# Create a properly sized shuffle icon thumbnail
|
src="${DIR}/${f}"
|
||||||
# magick -size "${THUMBNAIL_WIDTH}x${THUMBNAIL_HEIGHT}" xc:#1e1e2e \
|
thumb="${CACHE}/${f%.*}.png"
|
||||||
# "$HOME/Repos/wallpaper-selector/assets/shuffle.png" -resize "120x120" -gravity center -composite \
|
[[ -f "$thumb" && "$thumb" -nt "$src" ]] && continue
|
||||||
# "$SHUFFLE_ICON"
|
magick "$src" -thumbnail 360x360^ -strip "$thumb" &
|
||||||
magick -size "${THUMBNAIL_WIDTH}x${THUMBNAIL_HEIGHT}" xc:#1e1e2e \
|
done
|
||||||
\( "$HOME/Repos/wallpaper-selector/assets/shuffle.png" -resize "80x80" \) \
|
wait
|
||||||
-gravity center -composite "$SHUFFLE_ICON"
|
|
||||||
|
|
||||||
# Generate thumbnails and create menu items
|
RANDOM_LABEL="🎲 Random"
|
||||||
generate_menu() {
|
menu="img::text:${RANDOM_LABEL}\n"
|
||||||
# Add random/shuffle option with a name that sorts first (using ! prefix)
|
for f in "${files[@]}"; do
|
||||||
echo -en "img:$SHUFFLE_ICON\x00info:!Random Wallpaper\x1fRANDOM\n"
|
menu+="img:${CACHE}/${f%.*}.png:text:${f}\n"
|
||||||
|
done
|
||||||
# Then add all wallpapers
|
|
||||||
for img in "$WALLPAPER_DIR"/*.{jpg,jpeg,png}; do
|
|
||||||
# Skip if no matches found
|
|
||||||
[[ -f "$img" ]] || continue
|
|
||||||
|
|
||||||
# Generate thumbnail filename
|
|
||||||
thumbnail="$CACHE_DIR/$(basename "${img%.*}").png"
|
|
||||||
|
|
||||||
# Generate thumbnail if it doesn't exist or is older than source
|
|
||||||
if [[ ! -f "$thumbnail" ]] || [[ "$img" -nt "$thumbnail" ]]; then
|
|
||||||
generate_thumbnail "$img" "$thumbnail"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Output menu item (filename and path)
|
|
||||||
echo -en "img:$thumbnail\x00info:$(basename "$img")\x1f$img\n"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
# Use wofi to display grid of wallpapers - IMPORTANT: added --sort-order=default
|
line=$(echo -en "$menu" | wofi \
|
||||||
selected=$(generate_menu | wofi --show dmenu \
|
--dmenu --show dmenu --allow-images --insensitive \
|
||||||
--cache-file /dev/null \
|
--define image_size=180 --columns 4 --prompt "Wallpaper" \
|
||||||
--define "image-size=${THUMBNAIL_WIDTH}x${THUMBNAIL_HEIGHT}" \
|
--define sort_order=default --cache-file /dev/null \
|
||||||
--columns 3 \
|
--style "${HOME}/.config/wofi/wallpaper.css" \
|
||||||
--allow-images \
|
--width 900 --height 620 --define halign=fill --define content_halign=fill)
|
||||||
--insensitive \
|
[[ -n "$line" ]] || exit 0
|
||||||
--sort-order=default \
|
|
||||||
--prompt "Select Wallpaper" \
|
|
||||||
--conf ~/.config/wofi/wallpaper.conf \
|
|
||||||
)
|
|
||||||
|
|
||||||
# Set wallpaper if one was selected
|
if [[ "$line" == *"$RANDOM_LABEL"* ]]; then
|
||||||
if [ -n "$selected" ]; then
|
WALL="${DIR}/${files[RANDOM % ${#files[@]}]}"
|
||||||
# Remove the img: prefix to get the cached thumbnail path
|
else
|
||||||
thumbnail_path="${selected#img:}"
|
choice="${line##*:text:}"
|
||||||
|
WALL="${DIR}/${choice}"
|
||||||
# Check if random wallpaper was selected
|
|
||||||
if [[ "$thumbnail_path" == "$SHUFFLE_ICON" ]]; then
|
|
||||||
# Select a random wallpaper from the directory
|
|
||||||
original_path=$(find "$WALLPAPER_DIR" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n 1)
|
|
||||||
else
|
|
||||||
# Get the original filename from the thumbnail path
|
|
||||||
original_filename=$(basename "${thumbnail_path%.*}")
|
|
||||||
|
|
||||||
# Find the corresponding original file in the wallpaper directory
|
|
||||||
original_path=$(find "$WALLPAPER_DIR" -type f -name "${original_filename}.*" | head -n1)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Ensure a valid wallpaper was found before proceeding
|
|
||||||
if [ -n "$original_path" ]; then
|
|
||||||
hyprctl hyprpaper wallpaper ",$original_path"
|
|
||||||
|
|
||||||
# Save the selection for persistence
|
|
||||||
echo "$original_path" > "$HOME/.cache/current_wallpaper"
|
|
||||||
|
|
||||||
# Optional: Notify user
|
|
||||||
notify-send "Wallpaper" "Wallpaper has been updated" -i "$original_path"
|
|
||||||
else
|
|
||||||
notify-send "Wallpaper Error" "Could not find the original wallpaper file."
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
hyprctl hyprpaper wallpaper ",${WALL}"
|
||||||
|
|||||||
@@ -1,66 +1,70 @@
|
|||||||
/* ========================
|
/* ~/.config/wofi/style.css */
|
||||||
Wofi Lovely Theme
|
@define-color base rgba(26, 22, 19, 0.75);
|
||||||
======================== */
|
@define-color mantle rgba(20, 17, 14, 0.7);
|
||||||
|
@define-color surface rgba(232, 221, 208, 0.1);
|
||||||
|
@define-color overlay #8a7a68;
|
||||||
|
@define-color text #e8ddd0;
|
||||||
|
@define-color subtext #c9baa8;
|
||||||
|
@define-color accent #e29a6e;
|
||||||
|
@define-color accent2 #c46c4a;
|
||||||
|
|
||||||
/* Window styling */
|
|
||||||
window {
|
window {
|
||||||
background-color: #1e1e2e; /* Dark blue-ish background */
|
background-color: transparent;
|
||||||
border-radius: 12px;
|
font-family: "Inter", "SF Pro Display", "Segoe UI", sans-serif;
|
||||||
padding: 10px;
|
font-size: 14px;
|
||||||
border: 1px solid #44475a;
|
|
||||||
}
|
}
|
||||||
|
#outer-box {
|
||||||
/* Entry box styling */
|
background-color: @base;
|
||||||
entry {
|
border: 1px solid rgba(226, 154, 110, 0.35);
|
||||||
font-family: "JetBrains Mono", monospace;
|
border-radius: 14px;
|
||||||
font-size: 16px;
|
padding: 12px;
|
||||||
color: #f8f8f2; /* light text */
|
|
||||||
padding: 8px 10px;
|
|
||||||
border-radius: 8px;
|
|
||||||
background-color: #2e2e3e; /* darker input box */
|
|
||||||
border: 1px solid #6272a4;
|
|
||||||
}
|
}
|
||||||
|
#input {
|
||||||
/* Selected suggestion */
|
background-color: @mantle;
|
||||||
row:selected {
|
color: @text;
|
||||||
background-color: #6272a4;
|
border: 1px solid rgba(232, 221, 208, 0.12);
|
||||||
color: #f8f8f2;
|
border-radius: 10px;
|
||||||
|
padding: 10px 14px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
caret-color: @accent;
|
||||||
}
|
}
|
||||||
|
#input:focus {
|
||||||
/* Suggestions list */
|
border-color: @accent;
|
||||||
row {
|
|
||||||
padding: 6px 10px;
|
|
||||||
border-radius: 6px;
|
|
||||||
margin: 2px 0;
|
|
||||||
transition: background 0.2s ease;
|
|
||||||
}
|
}
|
||||||
|
#scroll {
|
||||||
/* Icon styling */
|
margin: 0;
|
||||||
image {
|
border: none;
|
||||||
width: 32px; /* smaller icons */
|
|
||||||
height: 32px;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
}
|
||||||
|
#inner-box {
|
||||||
/* Scrollbar styling */
|
background-color: transparent;
|
||||||
scrollbar {
|
|
||||||
background-color: #1e1e2e;
|
|
||||||
width: 6px;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
}
|
||||||
|
#entry {
|
||||||
scrollbar slider {
|
padding: 8px 10px;
|
||||||
background-color: #6272a4;
|
border-radius: 8px;
|
||||||
border-radius: 3px;
|
margin: 2px 0;
|
||||||
|
color: @subtext;
|
||||||
|
transition: background-color 120ms ease, color 120ms ease;
|
||||||
}
|
}
|
||||||
|
#entry:selected,
|
||||||
/* Hint text */
|
#entry:hover {
|
||||||
entry placeholder {
|
background-color: @surface;
|
||||||
color: #bfbfbf;
|
color: @text;
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
|
#entry:selected {
|
||||||
/* For accessibility: highlight keyboard navigation */
|
box-shadow: inset 3px 0 0 0 @accent;
|
||||||
row:focus {
|
}
|
||||||
outline: 2px solid #ff79c6;
|
/* node type `image`, not `img` — this is the one that actually moves the icon */
|
||||||
|
#entry image {
|
||||||
|
margin-right: 18px;
|
||||||
|
-gtk-icon-transform: scale(0.9);
|
||||||
|
}
|
||||||
|
#entry #text {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
#entry:selected #text {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
#unselected {
|
||||||
|
color: @subtext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,47 +1,50 @@
|
|||||||
|
/* wallpaper.sh picker — dark glass, terracotta accent */
|
||||||
window {
|
window {
|
||||||
background-color: #1e1e2e;
|
background-color: rgba(26, 22, 19, 0.85);
|
||||||
border-radius: 8px;
|
border: 1px solid rgba(226, 154, 110, 0.35);
|
||||||
border: 2px solid #313244;
|
border-radius: 16px;
|
||||||
|
font-family: "Inter", "SF Pro Display", "Segoe UI", sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
#input {
|
#input {
|
||||||
margin: 2px;
|
margin: 12px;
|
||||||
padding: 4px;
|
padding: 10px 14px;
|
||||||
border-radius: 4px;
|
border: 1px solid rgba(226, 154, 110, 0.25);
|
||||||
border: none;
|
border-radius: 10px;
|
||||||
background-color: #313244;
|
background-color: rgba(20, 17, 14, 0.85);
|
||||||
color: #cdd6f4;
|
color: #e8ddd0;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
#input:focus {
|
||||||
|
border-color: rgba(226, 154, 110, 0.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
#inner-box {
|
#inner-box {
|
||||||
margin: 0px;
|
margin: 6px 12px 12px 12px;
|
||||||
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
#outer-box {
|
#outer-box {
|
||||||
margin: 0px;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
#scroll {
|
#scroll {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#text {
|
|
||||||
margin: 2px;
|
|
||||||
color: #cdd6f4;
|
|
||||||
}
|
|
||||||
|
|
||||||
#entry {
|
#entry {
|
||||||
padding: 2px;
|
margin: 6px;
|
||||||
margin: 0px;
|
padding: 6px;
|
||||||
border-radius: 4px;
|
border: 2px solid transparent;
|
||||||
|
border-radius: 12px;
|
||||||
|
background-color: rgba(44, 37, 32, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
#entry:selected {
|
#entry:selected {
|
||||||
background-color: #313244;
|
border-color: #e29a6e;
|
||||||
|
background-color: rgba(226, 154, 110, 0.15);
|
||||||
}
|
}
|
||||||
|
#entry image {
|
||||||
#img {
|
border-radius: 8px;
|
||||||
margin: 2px;
|
}
|
||||||
padding-left: 4px;
|
#text {
|
||||||
border-radius: 4px;
|
color: #c9baa8;
|
||||||
|
margin: 0px 4px;
|
||||||
|
}
|
||||||
|
#entry:selected #text {
|
||||||
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,3 +6,5 @@
|
|||||||
smudge = git-lfs smudge -- %f
|
smudge = git-lfs smudge -- %f
|
||||||
process = git-lfs filter-process
|
process = git-lfs filter-process
|
||||||
required = true
|
required = true
|
||||||
|
[core]
|
||||||
|
autocrlf = input
|
||||||
|
|||||||
38
.zshrc
38
.zshrc
@@ -1,24 +1,28 @@
|
|||||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
# INSTANT PROMPT
|
||||||
# Initialization code that may require console input (password prompts, [y/n]
|
|
||||||
# confirmations, etc.) must go above this block; everything else may go below.
|
|
||||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Environment for apps
|
# PATH
|
||||||
export QT_QPA_PLATFORMTHEME=qt5ct # for Qt5
|
export PATH="$HOME/.local/bin:$HOME/.opencode/bin:$PATH"
|
||||||
export QT_QPA_PLATFORMTHEME=qt6ct # for Qt6
|
|
||||||
|
|
||||||
alias dotfiles="git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME"
|
# ENVIRONMENT
|
||||||
|
|
||||||
source ~/powerlevel10k/powerlevel10k.zsh-theme
|
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
||||||
|
|
||||||
# Path updates
|
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
|
||||||
export PATH="$HOME/.opencode/bin:$PATH"
|
|
||||||
|
|
||||||
# Env Variables
|
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export VISUAL=nvim
|
export VISUAL=nvim
|
||||||
|
export QT_QPA_PLATFORMTHEME=qt6ct # Qt6 apps
|
||||||
|
|
||||||
|
# ALIASES
|
||||||
|
alias dotfiles="git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME"
|
||||||
|
alias pac="sudo pacman -S"
|
||||||
|
alias update="sudo pacman -Syu"
|
||||||
|
|
||||||
|
# COMPLETION (before plugins that hook into it)
|
||||||
|
autoload -Uz compinit && compinit
|
||||||
|
|
||||||
|
# PLUGINS
|
||||||
|
source ~/powerlevel10k/powerlevel10k.zsh-theme
|
||||||
|
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # keep LAST
|
||||||
|
|
||||||
|
# THEME CONFIG (after theme is loaded)
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|||||||
@@ -20,3 +20,4 @@ unzip
|
|||||||
zip
|
zip
|
||||||
zsh
|
zsh
|
||||||
zsh-syntax-highlighting
|
zsh-syntax-highlighting
|
||||||
|
zsh-autosuggestions
|
||||||
|
|||||||
@@ -41,3 +41,4 @@ imagemagick
|
|||||||
webkit2gtk
|
webkit2gtk
|
||||||
xorg-xrandr
|
xorg-xrandr
|
||||||
earlyoom
|
earlyoom
|
||||||
|
yad
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ obs-studio
|
|||||||
gpu-screen-recorder
|
gpu-screen-recorder
|
||||||
gpu-screen-recorder-ui
|
gpu-screen-recorder-ui
|
||||||
wf-recorder
|
wf-recorder
|
||||||
|
yt-dlp
|
||||||
|
|||||||
Reference in New Issue
Block a user