dev: automated commit - 2025-09-29 14:44:33

This commit is contained in:
Mariano Z. 2025-09-29 14:44:33 -03:00
parent 188e601c2e
commit 76256d9db3
8 changed files with 127 additions and 122 deletions

View file

@ -4,8 +4,9 @@
"mod": "dock",
"exclusive": true,
"passthrough": false,
"border-radius": 10,
"gtk-layer-shell": true,
"height": 5,
"height": 36,
"margin": "5 10 0 10",
// Workspace and Window Management
"sway/workspaces": {
@ -52,10 +53,9 @@
},
// Date and Time
"clock": {
// DD-MM-YYYY
"format": " {0:%H:%M:%S %Z} 󰸘 {0:%d/%m/%Y}",
"format": "{:%H:%M %Z}",
"interval": 60,
"format-alt": "{:L%A, %B %d, %Y (%R)}  ",
"format-alt": "{:%d/%m/%Y}",
"tooltip-format": "<small><tt>{calendar}</tt></small>",
"timezones": [
"America/Montevideo",
@ -214,12 +214,11 @@
"Paused": "<span foreground='#928374'>󰒮 󰏥 󰒭</span>"
}
},
// Notifications and Utilities
"custom/wf-recorder": {
"format": "󰑀",
"tooltip": false,
"on-click": "wf-recorder -f ~/Videos/$(date +%Y%m%d_%H%M%S).mp4",
"on-click-right": "pkill -f wf-recorder"
"custom/screenrecording-indicator": {
"on-click": "~/.local/bin/record.sh",
"exec": "~/.config/waybar/indicators/screen-recording.sh",
"signal": 8,
"return-type": "json"
},
"custom/notification": {
"tooltip": false,

View file

@ -27,6 +27,7 @@
"custom/playerlabel"
],
"modules-right": [
"custom/screenrecording-indicator",
"custom/randwall",
"clock",
"group/tray-expander"
@ -47,6 +48,7 @@
"custom/playerlabel"
],
"modules-right": [
"custom/screenrecording-indicator",
"custom/randwall",
"pulseaudio",
"backlight",
@ -57,4 +59,4 @@
"eDP-1"
]
}
]
]

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
if pgrep -x wl-screenrec >/dev/null || pgrep -x wf-recorder >/dev/null; then
echo '{"text": "󰻂", "tooltip": "Stop recording", "class": "active"}'
else
echo '{"text": "󰑊", "tooltip": "Start recording", "class": "inactive"}'
fi

View file

@ -1,3 +1,6 @@
@define-color foreground #e0def4;
@define-color background #191724;
* {
border: none;
border-radius: 0;
@ -6,89 +9,60 @@
min-height: 0;
}
/* Window Styles */
window#waybar {
background: rgba(0, 0, 0, 0.8);
border-bottom: 1px solid #282828;
background: rgba(25, 23, 36, 0.8);
border-bottom: 1px solid #26233a;
border-radius: 10px;
color: #f4d9e1;
color: @foreground;
}
tooltip {
background: #010409;
background: @background;
border-radius: 10px;
}
/* Workspace Styles */
#workspaces button {
color: #fff;
color: @foreground;
border-radius: 10px;
padding: 5px;
margin: 4px 4px;
}
#workspaces button.urgent {
background: #010409;
color: #FF7F7F;
background: @background;
color: #eb6f92;
}
#workspaces button:hover,
#workspaces button.focused {
background: #f4d9e1;
color: #282828;
background: #c4a7e7;
color: @background;
}
/* Common Module Styles */
#cpu,
#memory,
#window,
#clock,
#network,
#bluetooth,
#pulseaudio,
#battery,
#pulseaudio,
#network,
#bluetooth,
#temperature,
#workspaces,
#tray,
#custom-vpn,
#custom-notification,
#backlight {
padding: 0px 5;
}
#cpu {
padding-right: 0;
}
/* Individual Module Styles */
#window {
margin: 0 60px;
}
#cpu,
#memory,
#clock,
#network,
#bluetooth,
#pulseaudio,
#pulseaudio.microphone,
#battery {
color: #fff;
#custom-playerctl,
#custom-playerlabel,
#custom-screenrecording-indicator,
#custom-randwall {
color: @foreground;
padding: 0px 8px;
}
#temperature.critical {
color: #eba0ac;
color: #eb6f92;
}
/* Custom Module Styles */
#custom-playerctl,
#custom-playerlabel {
background: #282828;
background: #26233a;
border-radius: 16px;
font-style: normal;
font-weight: normal;
margin: 5px 0;
margin: 5px 8px;
}
#custom-playerctl {
@ -101,68 +75,36 @@ tooltip {
padding: 0 15px 0 10px;
}
#custom-notification {
border-radius: 0;
font-weight: bold;
}
#custom-randwall {
margin-right: 10px;
}
#custom-vpn.connected {
color: #a6e3a1;
}
#custom-vpn.disconnected {
color: #f4d9e1;
}
#custom-wf-recorder {
padding: 0 10px;
margin: 0 4px;
#custom-screenrecording-indicator {
border-radius: 4px;
transition: all 0.3s ease;
}
#custom-wf-recorder.idle {
background-color: #2c2c2c;
color: #ccc;
#custom-screenrecording-indicator.idle {
background-color: @background;
color: @foreground;
}
#custom-wf-recorder.recording {
background-color: #cc3436;
color: white;
#custom-screenrecording-indicator.active {
color: #cc3436;
animation: blink 1s infinite;
}
@keyframes blink {
0% {
opacity: 1;
}
50% {
opacity: 0.7;
}
100% {
opacity: 1;
}
0% { opacity: 1; }
50% { opacity: 0.7; }
100% { opacity: 1; }
}
#custom-microphone {
padding: 0 10px;
margin: 0 5px;
#custom-notification {
margin-right: 12px;
}
#custom-microphone.headset {
color: #a6e3a1;
#custom-randwall {
color: #f6c177;
}
#custom-microphone.internal {
color: #f9e2af;
#custom-expand-icon {
color: #9ccfd8;
}
#custom-microphone.unknown {
color: #f38ba8;
}