configure waybar and mpris.
This commit is contained in:
1
.config/systemd/user/default.target.wants/mpris-proxy.service
Symbolic link
1
.config/systemd/user/default.target.wants/mpris-proxy.service
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/agxcoy/.config/systemd/user/mpris-proxy.service
|
||||
1
.config/systemd/user/default.target.wants/playerctld.service
Symbolic link
1
.config/systemd/user/default.target.wants/playerctld.service
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/agxcoy/.config/systemd/user/playerctld.service
|
||||
10
.config/systemd/user/mpris-proxy.service
Normal file
10
.config/systemd/user/mpris-proxy.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Forward bluetooth media controls to MPRIS
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/mpris-proxy
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
10
.config/systemd/user/playerctld.service
Normal file
10
.config/systemd/user/playerctld.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Keep track of media player activity
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/playerctld daemon
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
@@ -1,92 +1,68 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"modules-left": ["sway/workspaces", "niri/workspaces", "niri/window", "sway/mode"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["gamemode", "tray", "sway/scratchpad", "battery", "cpu", "memory", "pulseaudio"],
|
||||
"sway/scratchpad": {
|
||||
"format": " {count}"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": " {volume}%",
|
||||
"on-click": "swayosd-client --output-volume mute-toggle",
|
||||
"on-click-right": "flatpak run com.saivert.pwvucontrol"
|
||||
},
|
||||
"sway/workspaces": {
|
||||
"format": "{name}{windows}",
|
||||
"format-window-separator": "|",
|
||||
"window-rewrite-default": " {class} ",
|
||||
"window-format": "<span color='#e0e0e0'>{name}</span>",
|
||||
"window-rewrite": {
|
||||
"class<firefox>": " ",
|
||||
"class<spotify>": " ",
|
||||
"class<kitty>": " ",
|
||||
"class<vesktop>": " ",
|
||||
"class<kitty> title<nvim.*>": " ",
|
||||
"class<kitty> title<htop.*>": " ",
|
||||
"class<kitty> title<yazi.*>": " ",
|
||||
"class<kitty> title<cava.*>": " ",
|
||||
"class<kitty> title<man.*>": " ",
|
||||
"class<steam>": " ",
|
||||
"class<.*.bottles>": " ",
|
||||
"class<heroic>": " ",
|
||||
"class<org.gnome.Calculator>": " ",
|
||||
"class<org.gnome.Builder>": " ",
|
||||
"class<io.github.idevecore.Valuta>": " ",
|
||||
"class<io.github.fizzyizzy05.binary>": " ",
|
||||
"class<org.gnome.Loupe>": " ",
|
||||
"class<com.saivert.pwvucontrol>": " ",
|
||||
"class<org.qbittorrent.qBittorrent>": " ",
|
||||
"class<VSCodium>": " ",
|
||||
"class<libreoffice-writer>": " ",
|
||||
"class<libreoffice-math>": " ",
|
||||
"class<libreoffice-calc>": " ",
|
||||
"class<libreoffice-base>": " ",
|
||||
"class<libreoffice-impress>": " ",
|
||||
"class<libreoffice-draw>": " ",
|
||||
"class<libreoffice>": " ",
|
||||
"class<libreoffice-startcenter>": " ",
|
||||
"class<soffice>": " ",
|
||||
"class<vlc>": " "
|
||||
}
|
||||
},
|
||||
"niri/workspaces": {
|
||||
"format": "{index}"
|
||||
},
|
||||
"mpris": {
|
||||
"format": "{status_icon} {artist} - {title}",
|
||||
"format-stopped": "",
|
||||
"status-icons": {
|
||||
"paused": "⏸",
|
||||
"playing": ""
|
||||
},
|
||||
"interval": "0.1"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%d %b %H:%M}",
|
||||
"interval": 1,
|
||||
"tooltip-format": "{:%A %d %B %Y}"
|
||||
},
|
||||
"tray": {
|
||||
"spacing": 12
|
||||
},
|
||||
"gamemode": {
|
||||
"glyph": " ",
|
||||
"format": "{glyph}",
|
||||
"use-icon": false,
|
||||
"icon-spacing": 16
|
||||
},
|
||||
"memory": {
|
||||
"format": " {percentage}%",
|
||||
"interval": 1
|
||||
},
|
||||
"cpu": {
|
||||
"format": " {usage}%",
|
||||
"interval": 1
|
||||
},
|
||||
"battery": {
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "{icon} {capacity}% ",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", "", ""],
|
||||
"interval": 1
|
||||
"layer": "top",
|
||||
"modules-left": ["niri/workspaces", "niri/window"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["mpris", "tray", "battery", "cpu", "memory", "temperature", "pulseaudio"],
|
||||
"sway/scratchpad": {
|
||||
"format": " {count}"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": " {volume}%",
|
||||
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
||||
"on-click-right": "flatpak run com.saivert.pwvucontrol"
|
||||
},
|
||||
"niri/workspaces": {
|
||||
"format": "{index}"
|
||||
},
|
||||
"niri/window": {
|
||||
"format": "{}",
|
||||
"icon": true,
|
||||
"max-length": 40,
|
||||
"icon-size": 14,
|
||||
"rewrite": {
|
||||
"(.*) — Mozilla Firefox": "$1",
|
||||
"(.*) - Visual Studio Code": "$1",
|
||||
"(.*) - VLC media player": "$1",
|
||||
"Yazi: (.*)": "$1"
|
||||
}
|
||||
},
|
||||
"mpris": {
|
||||
"format": "{status_icon} {artist} - {title}",
|
||||
"format-stopped": "",
|
||||
"status-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
},
|
||||
"interval": "3"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%d %b %H:%M}",
|
||||
"interval": 1,
|
||||
"tooltip-format": "{:%A %d %B %Y}"
|
||||
},
|
||||
"tray": {
|
||||
"spacing": 12
|
||||
},
|
||||
"temperature": {
|
||||
"thermal-zone": 1,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"memory": {
|
||||
"format": " {percentage}%",
|
||||
"interval": 5
|
||||
},
|
||||
"cpu": {
|
||||
"format": " {usage}%",
|
||||
"interval": 2
|
||||
},
|
||||
"battery": {
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "{icon} {capacity}% ",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", "", ""],
|
||||
"interval": 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user