Compare commits

...

4 Commits

7 changed files with 12 additions and 12 deletions

View File

@ -56,6 +56,7 @@ proc getData(data: string): string =
socket.close() # is this necessary?
return response
proc getDefaultWorkspaces(): seq[WorkspaceIcon] =
let clients = parseJson(getData("[-j]/clients")).to(seq[Client])
result = collect(for i in 1..9: WorkspaceIcon(id: i, icon:"",class:fmt"ws-button-{i - 1}"))
@ -81,4 +82,7 @@ proc getState(): seq[seq[WorkspaceIcon]] =
when isMainModule:
while true:
sleep 500
echo (%* getState())
try:
echo (%* getState())
except JsonParsingError:
discard

View File

@ -32,7 +32,7 @@ autoSetupRemote = true
[alias]
adog = log --all --decorate --oneline --graph
l = log --format=tformat:'%C(bold magenta)%h%C(reset) 🠞 %C(bold)%s%C(reset)%C(auto)%d%C(reset) ⋅ %C(green)<%ar>%C(reset) ⋅ %C(dim white)%aN%C(reset)'
l = log --format=tformat:'%C(bold magenta)%h%C(reset) %C(bold)%s%C(reset)%C(auto)%d%C(reset) ⋅ %C(green)<%ar>%C(reset) ⋅ %C(dim white)%aN%C(reset)'
lf = log --graph --format=tformat:'%C(bold yellow)%h%C(reset) %C(cyan)%aD%C(reset) %C(green)(%ar) %C(dim white)%aN%C(reset)%w(0,0,9)%n %C(bold)%s%C(auto)%+d%C(reset)%w(0,0,10)%+b'
lg = "!f() { x=${1-6};\
length=$(expr $x + 8);\

View File

@ -1,4 +1,3 @@
# Execute your favorite apps at launch
exec-once = ~/.config/hypr/start_eww.sh &
exec-once = hyprpaper &
exec-once = flameshot &

View File

@ -68,11 +68,13 @@ gestures {
misc {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
disable_splash_rendering = true
force_default_wallpaper = 0 # Set to 0 to disable the anime mascot wallpapers
}
source = ./keys.conf
source = ./windows.conf
source = ./execs.conf
animation=windows,1,5,default,popin 80%
animation=workspaces,1,5,default,slidefadevert 20%

View File

@ -35,6 +35,7 @@ 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
# Example special workspace (scratchpad)
# bind = $mainMod, S, togglespecialworkspace, magic

View File

@ -26,13 +26,7 @@ msg() {
chosen="$(echo -e "$options" | $rofi_command -p "󱎫 $uptime " -dmenu -selected-row 2)"
case $chosen in
$lock)
if [[ -f $HOME/bin/lock ]]; then
$HOME/bin/lock
elif [[ -f /usr/bin/i3lock ]]; then
i3lock
elif [[ -f /usr/bin/dm-tool ]]; then
dm-tool "lock"
fi
swaylock
;;
$shutdown)
ans=$(confirm_exit &)
@ -57,8 +51,7 @@ $reboot)
$suspend)
ans=$(confirm_exit &)
if [[ $ans == "yes" ]]; then
mpc -q pause
amixer set Master mute
# amixer set Master mute
systemctl suspend
elif [[ $ans == "no" ]]; then
exit 0

View File

@ -9,6 +9,7 @@ local keys = require("keys")
--
local padding = 10
return {
check_for_updates = false,
-- -- window_background_opacity = 0.9,
window_padding = {
left = padding,