This commit is contained in:
2025-06-22 11:57:35 +02:00
parent 924caa2851
commit fbe156fa6c
7 changed files with 43 additions and 11 deletions

32
.scripts/waybar-toggle.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/env bash
function close() {
if pgrep -x "waybar" > /dev/null; then
killall -q waybar
# Wait until the processes have been shut down
while pgrep -x waybar >/dev/null; do sleep 1; done
fi
}
function open() {
waybar &
}
if [ -z "$1" ]; then
close
open
elif [ "$1" = "close" ]; then
if ! pgrep -x "waybar" > /dev/null; then
exit 1
fi
close
elif [ "$1" = "open" ]; then
if pgrep -x "waybar" > /dev/null; then
exit 1
fi
open
else
echo "Usage: $0 [close|open]"
exit 1
fi

View File

@@ -1,5 +1,5 @@
<img src="https://github.com/Uyanide/dotfiles/blob/main/.chores/desktop.jpg?raw=true"/>
<img src="https://github.com/Uyanide/dotfiles/blob/main/.chores/tiling.png?raw=true"/>
<img src="https://github.com/Uyanide/dotfiles/blob/main/.chores/tiling.jpg?raw=true"/>
<img src="https://github.com/Uyanide/dotfiles/blob/main/.chores/grub.jpg?raw=true"/>
## Setup Overview

View File

@@ -26,7 +26,7 @@
(defpoll music-art :interval "1s" "Main/scripts/music-art")
(defpoll volume :interval "1s" "Main/scripts/system --vol")
(defpoll brightness :interval "1s" "Main/scripts/system --bri")
(defpoll fortune :interval "1h" "Main/scripts/fortune.py 32 9")
(defpoll fortune :interval "1h" "Main/scripts/fortune-split 32 9")
(deflisten cava "Main/scripts/cava")
(defpoll title :interval "1s" "Main/scripts/music-title --status")
(defpoll artist :interval "1s" "Main/scripts/player --artist")

View File

@@ -161,4 +161,5 @@ bind = Super+Alt, S, movetoworkspace, special:s
bind = Super, P, pin
bind = Alt, Tab, cyclenext
bind = Super, Tab, hyprexpo:expo, toggle # can be: toggle, select, off/disable or on/enable
bind = Super+Ctrl, T, exec, ~/.scripts/workspace-new.sh
bind = Super+Ctrl, T, exec, ~/.scripts/workspace-new.sh # Create new workspace
bind = Super+Shift, K, exec, waybar-toggle.sh close || waybar-toggle.sh open # Toggle waybar visibility

View File

@@ -140,8 +140,8 @@
"min-length": 20
},
"temperature": {
// "thermal-zone": 1,
"interval": 4,
"interval": 5,
"thermal-zone": 6,
"hwmon-path": "/sys/class/hwmon/hwmon6/temp1_input",
"critical-threshold": 80,
// "format-critical": " {temperatureC}°C",
@@ -152,7 +152,7 @@
"min-length": 7
},
"memory": {
"interval": 30,
"interval": 11,
// "format": " {used:0.2f} / {total:0.0f} GB",
"format": "󰍛 {percentage}%",
"on-click": "killall btop || ghostty -e btop",
@@ -160,7 +160,7 @@
"max-length": 7
},
"cpu": {
"interval": 1,
"interval": 3,
//"format": " {}%", // Icon: microchip
"format": "󰘚 {usage}%",
"max-length": 7,
@@ -168,7 +168,7 @@
"on-click": "killall btop || ghostty -e btop"
},
"battery": {
"interval": 2,
"interval": 30,
"states": {
"good": 95,
"warning": 30,

View File

@@ -12,7 +12,7 @@ button {
color: #cdd6f4;
border-radius: 0;
outline-style: none;
background-color: #1e1e2e;
background-color: alpha(#1e1e2e, 0.8);
border: none;
border-width: 0px;
border-radius: 0px;
@@ -29,9 +29,8 @@ button {
button:focus,
button:active,
button:hover {
/* 20% Overlay 2, 80% mantle */
background-color: #313244;
background-size: 20%;
background-color: alpha(#1e1e2e, 0.6);
animation: gradient_f 20s ease-in infinite;
transition: all 0.3s cubic-bezier(0.55, 0, 0.28, 1.682);
}