AutoYADM commit: 2025-03-18 00:45:07
This commit is contained in:
parent
acf7566983
commit
9064ad140e
2 changed files with 161 additions and 6 deletions
|
@ -5,9 +5,9 @@
|
||||||
PIPE="/tmp/email_refresh_pipe"
|
PIPE="/tmp/email_refresh_pipe"
|
||||||
# COUNT="/tmp/email_count"
|
# COUNT="/tmp/email_count"
|
||||||
|
|
||||||
if [ -f /tmp/email_indicator_lock ]; then
|
# if [ -f /tmp/email_indicator_lock ]; then
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
# Create pipe if doesn't exist
|
# Create pipe if doesn't exist
|
||||||
[[ -p "$PIPE" ]] || mkfifo "$PIPE" && touch /tmp/email_indicator_lock
|
[[ -p "$PIPE" ]] || mkfifo "$PIPE" && touch /tmp/email_indicator_lock
|
||||||
|
|
||||||
|
@ -26,7 +26,11 @@ get_unread_counts() {
|
||||||
# done
|
# done
|
||||||
# we print a newline to let waybar know to display
|
# we print a newline to let waybar know to display
|
||||||
# what we just printed
|
# what we just printed
|
||||||
echo "p: $pcount s: $scount |"
|
if [ "$pcount" = 0 ] && [ "$scount" = 0 ] ; then
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo "p: $pcount s: $scount |"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# run once for initial output
|
# run once for initial output
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
[
|
[
|
||||||
// TOP BAR
|
// TOP BAR
|
||||||
{
|
{
|
||||||
|
"output": "DP-1",
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
|
@ -101,7 +102,7 @@
|
||||||
// "disable-scroll" : false,
|
// "disable-scroll" : false,
|
||||||
// },
|
// },
|
||||||
"battery": {
|
"battery": {
|
||||||
"format": "bat {capacity}%",
|
"format": "bat {capacity}%"
|
||||||
// "format-icons": ["", "", "", "", ""]
|
// "format-icons": ["", "", "", "", ""]
|
||||||
},
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
|
@ -129,10 +130,11 @@
|
||||||
},
|
},
|
||||||
// LEFT BAR
|
// LEFT BAR
|
||||||
{
|
{
|
||||||
|
"output": "DP-1",
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"exclusive": false,
|
"exclusive": false,
|
||||||
"gtk-layer-shell": true,
|
"gtk-layer-shell": true,
|
||||||
"name": "leftbar",
|
// "name": "leftbar",
|
||||||
"width": 14,
|
"width": 14,
|
||||||
"position": "left",
|
"position": "left",
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
|
@ -144,6 +146,155 @@
|
||||||
"active": "",
|
"active": "",
|
||||||
"default": ""
|
"default": ""
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// TOP BAR
|
||||||
|
{
|
||||||
|
"output": "HDMI-A-1",
|
||||||
|
"layer": "top",
|
||||||
|
"position": "top",
|
||||||
|
"modules-left": [
|
||||||
|
"cava",
|
||||||
|
"custom/colcount"
|
||||||
|
// "niri/workspaces"
|
||||||
|
],
|
||||||
|
"modules-center": [
|
||||||
|
"niri/window"
|
||||||
|
],
|
||||||
|
"modules-right": [
|
||||||
|
// "custom/mail",
|
||||||
|
"cpu",
|
||||||
|
"custom/delim",
|
||||||
|
"memory",
|
||||||
|
"custom/delim",
|
||||||
|
"pulseaudio",
|
||||||
|
"custom/delim",
|
||||||
|
"battery",
|
||||||
|
"custom/delim",
|
||||||
|
"custom/recorder",
|
||||||
|
"custom/delim",
|
||||||
|
"tray",
|
||||||
|
"clock"
|
||||||
|
],
|
||||||
|
"niri/window": {
|
||||||
|
"max-length": 50,
|
||||||
|
"separate-outputs": true
|
||||||
},
|
},
|
||||||
|
"custom/colcount": {
|
||||||
|
"exec": "~/dev/niri-windows/niri-windows.py",
|
||||||
|
"return-type": "json",
|
||||||
|
"restart-interval": "never",
|
||||||
|
"format": "{} "
|
||||||
|
},
|
||||||
|
"custom/mail": {
|
||||||
|
"exec": "~/.config/mail/mail-indicator.sh",
|
||||||
|
"restart-interval": "never",
|
||||||
|
"format": "{}"
|
||||||
|
},
|
||||||
|
"custom/recorder": {
|
||||||
|
"exec": "~/dev/niri-recorder/recorder.py",
|
||||||
|
"return-type": "json",
|
||||||
|
"restart-interval": "never",
|
||||||
|
"on-click": "~/dev/niri-recorder/recorder.sh screen",
|
||||||
|
"on-click-right": "~/dev/niri-recorder/recorder.sh region",
|
||||||
|
"format": " {} "
|
||||||
|
},
|
||||||
|
"custom/delim": {
|
||||||
|
"format": "|"
|
||||||
|
},
|
||||||
|
"cava": {
|
||||||
|
"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
|
||||||
|
// "framerate": 30,
|
||||||
|
// "autosens": 1,
|
||||||
|
// "sensitivity": 100,
|
||||||
|
// "bars": 14,
|
||||||
|
// "lower_cutoff_freq": 50,
|
||||||
|
// "higher_cutoff_freq": 10000,
|
||||||
|
// "method": "pulse",
|
||||||
|
// "source": "auto",
|
||||||
|
// "stereo": true,
|
||||||
|
// "reverse": false,
|
||||||
|
// "bar_delimiter": 0,
|
||||||
|
// "monstercat": false,
|
||||||
|
// "waves": false,
|
||||||
|
// "noise_reduction": 0.77,
|
||||||
|
// "input_delay": 2,
|
||||||
|
"format-icons": [
|
||||||
|
"▁",
|
||||||
|
"▂",
|
||||||
|
"▃",
|
||||||
|
"▄",
|
||||||
|
"▅",
|
||||||
|
"▆",
|
||||||
|
"▇",
|
||||||
|
"█"
|
||||||
|
],
|
||||||
|
"actions": {
|
||||||
|
"on-click-right": "mode"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"niri/workspaces": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
// Named workspaces
|
||||||
|
// (you need to configure them in niri)
|
||||||
|
// "browser": "",
|
||||||
|
// "discord": "",
|
||||||
|
// "chat": "<b></b>",
|
||||||
|
// Icons by state
|
||||||
|
"music": "",
|
||||||
|
"active": "",
|
||||||
|
"default": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// "sway/workspaces": {
|
||||||
|
// "disable-scroll" : false,
|
||||||
|
// },
|
||||||
|
"battery": {
|
||||||
|
"format": "bat {capacity}%"
|
||||||
|
// "format-icons": ["", "", "", "", ""]
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
"format-alt": "{:%a, %d. %b %H:%M}"
|
||||||
|
},
|
||||||
|
"pulseaudio": {
|
||||||
|
"scroll-step": 5,
|
||||||
|
"max-volume": 150,
|
||||||
|
"format": "vol {volume}%",
|
||||||
|
"format-muted": "vol mut",
|
||||||
|
"nospacing": 1,
|
||||||
|
"on-click": "pavucontrol",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
"cpu": {
|
||||||
|
"interval": 10,
|
||||||
|
"format": "cpu {usage}%",
|
||||||
|
"max-length": 10
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"interval": 30,
|
||||||
|
"format": "mem {percentage}%",
|
||||||
|
"max-length": 10
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// LEFT BAR
|
||||||
|
{
|
||||||
|
"output": "HDMI-A-1",
|
||||||
|
"layer": "top",
|
||||||
|
"exclusive": false,
|
||||||
|
"gtk-layer-shell": true,
|
||||||
|
// "name": "leftbar",
|
||||||
|
"width": 14,
|
||||||
|
"position": "left",
|
||||||
|
"modules-left": [
|
||||||
|
"niri/workspaces"
|
||||||
|
],
|
||||||
|
"niri/workspaces": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"active": "",
|
||||||
|
"default": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
Add table
Add a link
Reference in a new issue