move script

This commit is contained in:
Benjamin Palko 2024-07-14 23:30:27 -04:00
parent c8b480ccfd
commit 653ef5b48b
2 changed files with 109 additions and 116 deletions

View file

@ -6,14 +6,8 @@
// "width": 1280, // Waybar width // "width": 1280, // Waybar width
"spacing": 8, // Gaps between modules (4px) "spacing": 8, // Gaps between modules (4px)
// Choose the order of the modules // Choose the order of the modules
"modules-left": [ "modules-left": ["hyprland/workspaces", "tray", "hyprland/window"],
"hyprland/workspaces", "modules-center": ["custom/spotify"],
"tray",
"hyprland/window"
],
"modules-center": [
"custom/spotify"
],
"modules-right": [ "modules-right": [
"custom/swww", "custom/swww",
"wireplumber", "wireplumber",
@ -23,7 +17,7 @@
"temperature", "temperature",
"idle_inhibitor", "idle_inhibitor",
"clock", "clock",
"custom/swaync" "custom/swaync",
], ],
"idle_inhibitor": { "idle_inhibitor": {
"format": "{icon}", "format": "{icon}",
@ -31,42 +25,42 @@
"tooltip-format-deactivated": "Off", "tooltip-format-deactivated": "Off",
"format-icons": { "format-icons": {
"activated": "󱫗", "activated": "󱫗",
"deactivated": "󰔛" "deactivated": "󰔛",
} },
}, },
"hyprland/workspaces": { "hyprland/workspaces": {
"active-only": false, "active-only": false,
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"default": "" "default": "",
} },
}, },
"hyprland/window": { "hyprland/window": {
"format": "{}", "format": "{}",
"rewrite": { "rewrite": {
"(.*) — Mozilla Firefox": "󰈹 $1", "(.*) — Mozilla Firefox": "󰈹 $1",
"(.*) - fish": "> [$1]", "(.*) - fish": "> [$1]",
"nv": " neovim" "nv": " neovim",
}, },
"separate-outputs": true, "separate-outputs": true,
"max-length": "40" "max-length": "40",
}, },
"tray": { "tray": {
"icon-size": 18, "icon-size": 18,
"spacing": 10 "spacing": 10,
}, },
"clock": { "clock": {
"timezone": "America/New_York", "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}", "format-alt": "{:%Y-%m-%d}",
"on-click": "" "on-click": "",
}, },
"cpu": { "cpu": {
"format": "󰻠 {usage}%", "format": "󰻠 {usage}%",
"tooltip": true "tooltip": true,
}, },
"memory": { "memory": {
"format": "{}% 󰍛" "format": "{}% 󰍛",
}, },
"temperature": { "temperature": {
// "thermal-zone": 2, // "thermal-zone": 2,
@ -74,11 +68,11 @@
"critical-threshold": 80, "critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}", // "format-critical": "{temperatureC}°C {icon}",
"format": "{icon} {temperatureC}°C", "format": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""] "format-icons": ["", "", ""],
}, },
"wireplumber": { "wireplumber": {
"format": " {volume}%", "format": " {volume}%",
"format-mute": " {volume}%" "format-mute": " {volume}%",
}, },
"network": { "network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface // "interface": "wlp2*", // (Optional) To force the use of this interface
@ -86,19 +80,19 @@
"format-wifi": " {signalStrength}%", "format-wifi": " {signalStrength}%",
"format-ethernet": "󰈀", "format-ethernet": "󰈀",
"format-linked": "{ifname} (No IP) ", "format-linked": "{ifname} (No IP) ",
"format-disconnected": "󰖪" "format-disconnected": "󰖪",
//"format-alt": "{ifname}: {ipaddr}/{cidr}" //"format-alt": "{ifname}: {ipaddr}/{cidr}"
}, },
"custom/spotify": { "custom/spotify": {
"format": "{}", "format": "{}",
"on-click": "playerctl --player=spotify play-pause", "on-click": "playerctl --player=spotify play-pause",
"exec": "/usr/bin/python3 $HOME/.config/waybar/modules/mediaplayer.py --player spotify", "exec": "python3 $HOME/.config/waybar/modules/mediaplayer.py --player spotify",
"return-type": "json", "return-type": "json",
"max-length": 40, "max-length": 40,
"format-icons": { "format-icons": {
"spotify": " ", "spotify": " ",
"default": "🎜 " "default": "🎜 ",
} },
}, },
"custom/swaync": { "custom/swaync": {
"format": "{icon}", "format": "{icon}",
@ -109,17 +103,16 @@
"notification": "<span foreground='red'><small><sup>⬤</sup></small></span>", "notification": "<span foreground='red'><small><sup>⬤</sup></small></span>",
"none": " ", "none": " ",
"dnd-notification": "<span foreground='red'><small><sup>⬤</sup></small></span>", "dnd-notification": "<span foreground='red'><small><sup>⬤</sup></small></span>",
"dnd-none": " " "dnd-none": " ",
} },
}, },
"custom/swww": { "custom/swww": {
"format": "{icon}", "format": "{icon}",
"tooltip": false, "tooltip": false,
"tooltip-format": "Change Wallpaper", "tooltip-format": "Change Wallpaper",
"on-click": "bash ~/.config/waybar/modules/switch-wallpaper.sh &", "on-click": "bash ~/dotfiles/.scripts/switch-wallpaper.sh &",
"format-icons": { "format-icons": {
"default": " " "default": " ",
},
},
} }
}
}