Compare commits

...

2 commits

Author SHA1 Message Date
Tobias Reisinger 249e35cbc0
Add mpris and fixes to waybar config 2024-03-04 15:32:07 +01:00
Tobias Reisinger d95efe4d73
Update configs 2024-03-03 14:15:39 +01:00
6 changed files with 56 additions and 17 deletions

View file

@ -1,9 +1,10 @@
[options] [options]
BatchInstall = true
CleanAfter = true CleanAfter = true
CombinedUpgrade = true CombinedUpgrade = true
BatchInstall = true
NewsOnUpgrade = true NewsOnUpgrade = true
RemoveMake = yes RemoveMake = yes
SudoLoop = true
#[bin] #[bin]
#Sudo = doas #Sudo = doas

View file

@ -17,3 +17,11 @@ node_modules/
# PHP # PHP
vendor/ vendor/
# Freetube Flatpak
.var/app/io.freetubeapp.FreeTube/config/FreeTube/Cache
.var/app/io.freetubeapp.FreeTube/config/FreeTube/Code Cache
.var/app/io.freetubeapp.FreeTube/config/FreeTube/dashFiles
.var/app/io.freetubeapp.FreeTube/config/FreeTube/DawnCache
.var/app/io.freetubeapp.FreeTube/config/FreeTube/player_cache
.var/app/io.freetubeapp.FreeTube/config/FreeTube/storyboards

View file

@ -1,12 +1,13 @@
{ {
"layer": "top", "layer": "top",
"position": "bottom", "position": "bottom",
"height": 24, "height": 28,
"spacing": 6, "spacing": 6,
"modules-left": [ "modules-left": [
"hyprland/workspaces" "hyprland/workspaces"
], ],
"modules-center": [ "modules-center": [
"mpris"
], ],
"modules-right": [ "modules-right": [
"network", "network",

View file

@ -1,5 +1,7 @@
#!/usr/bin/env sh #!/usr/bin/env sh
set -e
updates=$(checkupdates) updates=$(checkupdates)
text=$(echo "$updates" | wc -l) text=$(echo "$updates" | wc -l)
tooltip=$(echo "$updates" | sed 's/$/\\n/' | tr -d '\n' | sed 's/\\n$//') tooltip=$(echo "$updates" | sed 's/$/\\n/' | tr -d '\n' | sed 's/\\n$//')

View file

@ -2,15 +2,15 @@
"hyprland/workspaces": { "hyprland/workspaces": {
"on-click": "activate", "on-click": "activate",
"all-outputs": true, "all-outputs": true,
"sort-by-number": true, "sort-by-number": true
}, },
"hyprland/window": { "hyprland/window": {
"max-length": 128 "max-length": 128
}, },
"clock": { "clock": {
"interval": 1, "interval": 1,
"format": " {:%Y-%m-%d %H:%M:%S}", "format": " {:%Y-%m-%d %H:%M:%S}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>" "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
}, },
"cpu": { "cpu": {
"format": " {usage}%" "format": " {usage}%"
@ -18,6 +18,29 @@
"memory": { "memory": {
"format": " {percentage}%" "format": " {percentage}%"
}, },
"mpris": {
"format": "{player_icon} {status_icon} {dynamic}",
"interval": 5,
"dynamic-order": [
"title",
"artist",
"position",
"length"
],
"player-icons": {
"default": "󰎈",
"chromium": "",
"firefox": "",
"spotify": "",
"spotifyd": "",
"vlc": ""
},
"status-icons": {
"paused": "󰏤",
"playing": "󰐊",
"stopped": "󰓛"
}
},
"network": { "network": {
"format": " {ipaddr}" "format": " {ipaddr}"
}, },
@ -28,17 +51,17 @@
"tray": { "tray": {
"spacing": 4 "spacing": 4
}, },
"custom/pacman": { "custom/pacman": {
"format": "󰏕 {}", "format": "󰏕 {}",
"interval": 3600, "interval": 3600,
"exec": "~/.config/waybar/custom/pacman", "exec": "~/.config/waybar/custom/pacman",
"on-click": "alacritty -e 'archlinux-update'", "on-click": "alacritty -e 'archlinux-update'",
"return-type": "json", "return-type": "json",
"signal": 8 "signal": 8
}, },
"custom/weather": { "custom/weather": {
"exec": "~/.config/waybar/custom/weather", "exec": "~/.config/waybar/custom/weather",
"on-click": "xdg-open 'https://www.wetter.com/deutschland/oranienburg/DE0007983.html'", "on-click": "xdg-open 'https://www.wetter.com/deutschland/oranienburg/DE0007983.html'",
"return-type": "json", "return-type": "json",
"format": "{}", "format": "{}",
"tooltip": true, "tooltip": true,
@ -46,8 +69,8 @@
}, },
"custom/status": { "custom/status": {
"format": "󱖫 {}", "format": "󱖫 {}",
"exec": "~/.config/waybar/custom/status-serguzim-net", "exec": "~/.config/waybar/custom/status-serguzim-net",
"on-click": "xdg-open 'https://status.serguzim.net'", "on-click": "xdg-open 'https://status.serguzim.net'",
"return-type": "json", "return-type": "json",
"tooltip": true, "tooltip": true,
"interval": 500 "interval": 500

View file

@ -27,10 +27,14 @@ window#waybar {
border-bottom: solid 2px @pink; border-bottom: solid 2px @pink;
} }
#network { #mpris {
border-bottom: solid 2px @green; border-bottom: solid 2px @green;
} }
#network {
border-bottom: solid 2px @yellow;
}
#temperature { #temperature {
border-bottom: solid 2px @red; border-bottom: solid 2px @red;
} }