Compare commits

..

No commits in common. "cd8272def5139f1bbf61cc92b18ce2a3312187ad" and "fc9567e379829636dd09d2a0c8d8683eead907b6" have entirely different histories.

7 changed files with 12 additions and 12 deletions

View file

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

View file

@ -32,7 +32,7 @@ autoSetupRemote = true
[alias] [alias]
adog = log --all --decorate --oneline --graph 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' 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};\ lg = "!f() { x=${1-6};\
length=$(expr $x + 8);\ length=$(expr $x + 8);\

View file

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

View file

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

View file

@ -35,7 +35,6 @@ bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6 bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
# Example special workspace (scratchpad) # Example special workspace (scratchpad)
# bind = $mainMod, S, togglespecialworkspace, magic # bind = $mainMod, S, togglespecialworkspace, magic

View file

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

View file

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