move script
This commit is contained in:
parent
c8b480ccfd
commit
653ef5b48b
2 changed files with 109 additions and 116 deletions
|
|
@ -1,125 +1,118 @@
|
||||||
// -*- mode: jsonc -*-
|
// -*- mode: jsonc -*-
|
||||||
{
|
{
|
||||||
"layer": "top", // Waybar at top layer
|
"layer": "top", // Waybar at top layer
|
||||||
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||||||
"height": 36, // Waybar height (to be removed for auto height)
|
"height": 36, // Waybar height (to be removed for auto height)
|
||||||
// "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",
|
"modules-right": [
|
||||||
"hyprland/window"
|
"custom/swww",
|
||||||
],
|
"wireplumber",
|
||||||
"modules-center": [
|
"network",
|
||||||
"custom/spotify"
|
"cpu",
|
||||||
],
|
"memory",
|
||||||
"modules-right": [
|
"temperature",
|
||||||
"custom/swww",
|
"idle_inhibitor",
|
||||||
"wireplumber",
|
"clock",
|
||||||
"network",
|
"custom/swaync",
|
||||||
"cpu",
|
],
|
||||||
"memory",
|
"idle_inhibitor": {
|
||||||
"temperature",
|
"format": "{icon}",
|
||||||
"idle_inhibitor",
|
"tooltip-format-activated": "On",
|
||||||
"clock",
|
"tooltip-format-deactivated": "Off",
|
||||||
"custom/swaync"
|
"format-icons": {
|
||||||
],
|
"activated": "",
|
||||||
"idle_inhibitor": {
|
"deactivated": "",
|
||||||
"format": "{icon}",
|
|
||||||
"tooltip-format-activated": "On",
|
|
||||||
"tooltip-format-deactivated": "Off",
|
|
||||||
"format-icons": {
|
|
||||||
"activated": "",
|
|
||||||
"deactivated": ""
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"hyprland/workspaces": {
|
},
|
||||||
"active-only": false,
|
"hyprland/workspaces": {
|
||||||
"format": "{icon}",
|
"active-only": false,
|
||||||
"format-icons": {
|
"format": "{icon}",
|
||||||
"default": ""
|
"format-icons": {
|
||||||
}
|
"default": "",
|
||||||
},
|
},
|
||||||
"hyprland/window": {
|
},
|
||||||
"format": "{}",
|
"hyprland/window": {
|
||||||
"rewrite": {
|
"format": "{}",
|
||||||
"(.*) — Mozilla Firefox": " $1",
|
"rewrite": {
|
||||||
"(.*) - fish": "> [$1]",
|
"(.*) — Mozilla Firefox": " $1",
|
||||||
"nv": " neovim"
|
"(.*) - fish": "> [$1]",
|
||||||
},
|
"nv": " neovim",
|
||||||
"separate-outputs": true,
|
|
||||||
"max-length": "40"
|
|
||||||
},
|
},
|
||||||
"tray": {
|
"separate-outputs": true,
|
||||||
"icon-size": 18,
|
"max-length": "40",
|
||||||
"spacing": 10
|
},
|
||||||
|
"tray": {
|
||||||
|
"icon-size": 18,
|
||||||
|
"spacing": 10,
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
"timezone": "America/New_York",
|
||||||
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||||
|
"format-alt": "{:%Y-%m-%d}",
|
||||||
|
"on-click": "",
|
||||||
|
},
|
||||||
|
"cpu": {
|
||||||
|
"format": " {usage}%",
|
||||||
|
"tooltip": true,
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"format": "{}% ",
|
||||||
|
},
|
||||||
|
"temperature": {
|
||||||
|
// "thermal-zone": 2,
|
||||||
|
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||||
|
"critical-threshold": 80,
|
||||||
|
// "format-critical": "{temperatureC}°C {icon}",
|
||||||
|
"format": "{icon} {temperatureC}°C",
|
||||||
|
"format-icons": ["", "", ""],
|
||||||
|
},
|
||||||
|
"wireplumber": {
|
||||||
|
"format": " {volume}%",
|
||||||
|
"format-mute": " {volume}%",
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||||
|
"tooltip-format": "{essid}",
|
||||||
|
"format-wifi": " {signalStrength}%",
|
||||||
|
"format-ethernet": "",
|
||||||
|
"format-linked": "{ifname} (No IP) ",
|
||||||
|
"format-disconnected": "",
|
||||||
|
//"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
|
},
|
||||||
|
"custom/spotify": {
|
||||||
|
"format": "{}",
|
||||||
|
"on-click": "playerctl --player=spotify play-pause",
|
||||||
|
"exec": "python3 $HOME/.config/waybar/modules/mediaplayer.py --player spotify",
|
||||||
|
"return-type": "json",
|
||||||
|
"max-length": 40,
|
||||||
|
"format-icons": {
|
||||||
|
"spotify": " ",
|
||||||
|
"default": "🎜 ",
|
||||||
},
|
},
|
||||||
"clock": {
|
},
|
||||||
"timezone": "America/New_York",
|
"custom/swaync": {
|
||||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
"format": "{icon}",
|
||||||
"format-alt": "{:%Y-%m-%d}",
|
"exec": "swaync-client -swb",
|
||||||
"on-click": ""
|
"return-type": "json",
|
||||||
|
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
||||||
|
"format-icons": {
|
||||||
|
"notification": "<span foreground='red'><small><sup>⬤</sup></small></span>",
|
||||||
|
"none": " ",
|
||||||
|
"dnd-notification": "<span foreground='red'><small><sup>⬤</sup></small></span>",
|
||||||
|
"dnd-none": " ",
|
||||||
},
|
},
|
||||||
"cpu": {
|
},
|
||||||
"format": " {usage}%",
|
"custom/swww": {
|
||||||
"tooltip": true
|
"format": "{icon}",
|
||||||
|
"tooltip": false,
|
||||||
|
"tooltip-format": "Change Wallpaper",
|
||||||
|
"on-click": "bash ~/dotfiles/.scripts/switch-wallpaper.sh &",
|
||||||
|
"format-icons": {
|
||||||
|
"default": " ",
|
||||||
},
|
},
|
||||||
"memory": {
|
},
|
||||||
"format": "{}% "
|
|
||||||
},
|
|
||||||
"temperature": {
|
|
||||||
// "thermal-zone": 2,
|
|
||||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
|
||||||
"critical-threshold": 80,
|
|
||||||
// "format-critical": "{temperatureC}°C {icon}",
|
|
||||||
"format": "{icon} {temperatureC}°C",
|
|
||||||
"format-icons": ["", "", ""]
|
|
||||||
},
|
|
||||||
"wireplumber": {
|
|
||||||
"format": " {volume}%",
|
|
||||||
"format-mute": " {volume}%"
|
|
||||||
},
|
|
||||||
"network": {
|
|
||||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
||||||
"tooltip-format": "{essid}",
|
|
||||||
"format-wifi": " {signalStrength}%",
|
|
||||||
"format-ethernet": "",
|
|
||||||
"format-linked": "{ifname} (No IP) ",
|
|
||||||
"format-disconnected": ""
|
|
||||||
//"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
||||||
},
|
|
||||||
"custom/spotify": {
|
|
||||||
"format": "{}",
|
|
||||||
"on-click": "playerctl --player=spotify play-pause",
|
|
||||||
"exec": "/usr/bin/python3 $HOME/.config/waybar/modules/mediaplayer.py --player spotify",
|
|
||||||
"return-type": "json",
|
|
||||||
"max-length": 40,
|
|
||||||
"format-icons": {
|
|
||||||
"spotify": " ",
|
|
||||||
"default": "🎜 "
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"custom/swaync": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"exec": "swaync-client -swb",
|
|
||||||
"return-type": "json",
|
|
||||||
"on-click": "sleep 0.1 && swaync-client -t -sw",
|
|
||||||
"format-icons": {
|
|
||||||
"notification": "<span foreground='red'><small><sup>⬤</sup></small></span>",
|
|
||||||
"none": " ",
|
|
||||||
"dnd-notification": "<span foreground='red'><small><sup>⬤</sup></small></span>",
|
|
||||||
"dnd-none": " "
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"custom/swww": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"tooltip": false,
|
|
||||||
"tooltip-format": "Change Wallpaper",
|
|
||||||
"on-click": "bash ~/.config/waybar/modules/switch-wallpaper.sh &",
|
|
||||||
"format-icons": {
|
|
||||||
"default": " "
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue