Compare commits

...

10 commits

Author SHA1 Message Date
Viyurz
edcc4db0c7
Waybar: Add format-full to hide time when the variable is empty. 2023-11-16 09:46:29 +01:00
Viyurz
bfc03fb2d0
Hyprland: Remap Super+Ctrl+N
Remap Super+Ctrl+N from "dismiss all notifications" to "toggle do not
disturb mode".
2023-11-13 15:36:44 +01:00
Viyurz
789145f208
Mako DND: I RTFM'd 2023-11-13 13:29:58 +01:00
Viyurz
8c579317ca
Waybar: Added "Do not disturb" toggle 2023-11-13 11:51:00 +01:00
Viyurz
695e6676a8
Hyprland: Added "Dismiss all notifications" keybinding (Super+Shift+N) 2023-11-10 08:16:17 +01:00
Viyurz
94806d201c
.zaliases: Added hx alias for helix 2023-10-27 15:28:30 +02:00
Viyurz
a3e488b9a9
I said swaync not swayosd 2023-10-27 14:19:25 +02:00
Viyurz
ab3c8cf2d5
Fix typo in .zlogout 2023-10-27 13:05:40 +02:00
Viyurz
b37574c0f1
Add .zlogout 2023-10-27 13:03:05 +02:00
Viyurz
ebce73c797
kill-wine-explorer.sh: Redirect stdout & stderr to /dev/null 2023-10-27 13:02:00 +02:00
11 changed files with 59 additions and 11 deletions

View file

@ -17,10 +17,12 @@ source = ~/.config/hypr/windowrules.conf
# Exec once
exec-once = artix-pipewire-launcher
exec-once = artix-pipewire-launcher restart
exec-once = nm-applet
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = $HOME/.scripts/swayidle.sh
exec-once = swayosd-server
# XWayland
exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2

View file

@ -8,7 +8,7 @@ binde = $mainMod_SHIFT, V, togglesplit,
bind = $mainMod, L, exec, $HOME/.scripts/swaylock.sh
bind = $mainMod, F, fullscreen
bind = $mainMod_SHIFT, N, exec, swaync-client -t -sw
bind = $mainMod_SHIFT, N, exec, $HOME/.scripts/waybar-dnd-toggle.sh; pkill -SIGRTMIN+2 waybar
bind = $mainMod, R, exec, wofi --show run
bind = $mainMod, E, exec, thunar
binde = $mainMod_SHIFT, T, exec, kitty

View file

@ -6,3 +6,6 @@ border-radius=4
border-size=2
font='JetBrainsMono Nerd Font' 11
outer-margin=30,30,0,0
[mode=dnd]
invisible=1

View file

@ -20,7 +20,8 @@
"memory",
"custom/cpu-temp",
"cpu",
"clock"
"clock",
"custom/dnd-toggle"
],
"hyprland/workspaces": {
@ -133,8 +134,9 @@
"format-time": "{H}:{m}",
"format": "{icon} {capacity}% ({time})",
"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
"format-plugged": "󰂄 {capacity}%",
"format-charging-100": "󰂅 {capacity}% ({time})",
"format-plugged": "󰂄 {capacity}% ({time})",
"format-full": "{icon} {capacity}%",
"format-charging-100": "󰂅 {capacity}%",
"format-charging-90": "󰂋 {capacity}% ({time})",
"format-charging-80": "󰂊 {capacity}% ({time})",
"format-charging-70": "󰢞 {capacity}% ({time})",
@ -197,5 +199,18 @@
"today": "<span color='#ff6699'><b>{}</b></span>"
}
}
},
"custom/dnd-toggle": {
"exec": "$HOME/.scripts/waybar-dnd-toggle.sh --no-toggle",
"interval": "once",
"on-click": "$HOME/.scripts/waybar-dnd-toggle.sh; pkill -SIGRTMIN+2 waybar",
"signal": 2,
"tooltip": false,
"return-type": "json",
"format": "{icon} {}",
"format-icons": {
"dnd-enabled": "󰂛",
"dnd-disabled": "󰂚"
}
}
}

View file

@ -78,7 +78,8 @@
#custom-gpu-temp,
#custom-gpu-usage,
#custom-cpu-temp,
#cpu {
#cpu,
#custom-dnd-toggle.dnd-disabled {
color: @accent1;
}
@ -92,7 +93,8 @@
}
#pulseaudio.output.muted,
#pulseaudio.input.source-muted {
#pulseaudio.input.source-muted,
#custom-dnd-toggle.dnd-enabled {
color: @disabled;
}

View file

@ -7,6 +7,7 @@ alias ssh="TERM=xterm-256color ssh"
#alias ssh="TERM=xterm-256color kitty +kitten ssh"
alias ff="fastfetch"
alias ip="ip --color=auto"
alias hx="helix"
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'

View file

@ -1,3 +1,6 @@
pkill -u "$USER" -9 ssh-agent
wl-copy -c
cliphist wipe
pkill -u "$USER" -9 ssh-agent
pkill -u "$USER" -9 pipewire
pkill -u "$USER" -9 dbus-daemon
killall -u "$USER" -9 kill-wine-explorer.sh

View file

@ -20,7 +20,7 @@ printenv SSH_TTY &> /dev/null || wal -R
# Autostart on TTY1:
# Hyprland on laptop
[[ "$XDG_VTNR" -eq 1 ]] && [[ "$HOST" = 'vrz-lt' ]] && exec dbus-run-session Hyprland
[[ "$XDG_VTNR" -eq 1 ]] && [[ "$HOST" = 'vrz-lt' ]] && dbus-run-session Hyprland
# Plasma on desktop
[[ "$XDG_VTNR" -eq 1 ]] && [[ "$HOST" = 'vrz-dt' ]] && startx

View file

@ -1,6 +1,6 @@
#!/bin/sh
while true; do
killall -9 explorer.exe
killall -9 explorer.exe &> /dev/null
sleep 5
done

View file

@ -326,7 +326,7 @@ else
echo "Reloading Mako."
makoctl reload &
else
echo "Starting Mako."
echo "Starting mako."
hyprctl dispatch exec mako > /dev/null &
fi
fi

22
.scripts/waybar-dnd-toggle.sh Executable file
View file

@ -0,0 +1,22 @@
#!/bin/sh
if [[ "$1" != "--no-toggle" ]]; then
if makoctl mode | grep -q dnd; then
makoctl mode -r dnd
else
makoctl mode -a dnd
fi
fi
if makoctl mode | grep -q dnd; then
class="dnd-enabled"
else
class="dnd-disabled"
fi
cat << EOF
{"text": "", "alt": "$class", "class": "$class", "percentage": ""}
EOF