update configs
This commit is contained in:
6
.config/waybar/.vscode/settings.json
vendored
6
.config/waybar/.vscode/settings.json
vendored
@ -1,6 +0,0 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"config" : "jsonc"
|
||||
},
|
||||
"editor.fontFamily": "'Fira Code', 'monospace', monospace"
|
||||
}
|
||||
@ -1,83 +0,0 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"modules-left": [
|
||||
"custom/arch",
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
"modules-center": [
|
||||
"clock",
|
||||
"custom/spotify"
|
||||
],
|
||||
"modules-right": [
|
||||
"cpu",
|
||||
"memory",
|
||||
"pulseaudio",
|
||||
"bluetooth",
|
||||
"network"
|
||||
],
|
||||
"custom/arch": {
|
||||
"format": " ",
|
||||
"tooltip": false,
|
||||
"on-click": "sh $HOME/.config/rofi/bin/powermenu"
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"tooltip": false,
|
||||
"all-outputs": true,
|
||||
"format-icons": {
|
||||
"active": "",
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
"clock": {
|
||||
"format": "<span color='#b4befe'> </span>{0:%H:%M:%S} <span color='#b4befe'> </span>{0:%d.%m.%Y W%W}",
|
||||
"interval": 1
|
||||
},
|
||||
"custom/spotify": {
|
||||
"exec": "/usr/bin/python3 /home/paul/downloads/repos/Waybar/resources/custom_modules/mediaplayer.py --player spotify",
|
||||
"format": "{} ",
|
||||
"return-type": "json",
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-scroll-up": "playerctl next",
|
||||
"on-scroll-down": "playerctl previous"
|
||||
},
|
||||
"cpu": {
|
||||
"format": "<span color='#b4befe'></span> {usage}%",
|
||||
"interval": 5
|
||||
},
|
||||
"memory": {
|
||||
"format": "<span color='#b4befe'></span> {percentage}% ({used}GiB)",
|
||||
"interval": 5
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "<span color='#b4befe'>{icon}</span> {volume}%",
|
||||
"format-muted": "",
|
||||
"tooltip": false,
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"default": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"scroll-step": 1,
|
||||
},
|
||||
"bluetooth": {
|
||||
"format": "<span color='#b4befe'></span> {status}",
|
||||
"format-disabled": "", // an empty format will hide the module
|
||||
"format-connected": "<span color='#b4befe'></span> {num_connections}",
|
||||
"tooltip-format": "{device_enumerate}",
|
||||
"tooltip-format-enumerate-connected": "{device_alias} {device_address}"
|
||||
},
|
||||
"network": {
|
||||
"format": " {ifname}",
|
||||
"format-ethernet": " {ipaddr}/{cidr}",
|
||||
"tooltip": false,
|
||||
}
|
||||
}
|
||||
111
.config/waybar/config.jsonc
Normal file
111
.config/waybar/config.jsonc
Normal file
@ -0,0 +1,111 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"output" : "DP-2",
|
||||
"modules-left": [
|
||||
"custom/power",
|
||||
"hyprland/workspaces",
|
||||
"custom/spotify"
|
||||
],
|
||||
"modules-center": [
|
||||
"clock",
|
||||
],
|
||||
"modules-right": [
|
||||
"privacy",
|
||||
"pulseaudio",
|
||||
"cpu",
|
||||
"memory",
|
||||
"bluetooth",
|
||||
// "network",
|
||||
"custom/wireguard"
|
||||
],
|
||||
"custom/power": {
|
||||
"format": "⏻",
|
||||
"tooltip": false,
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"format": "{name}",
|
||||
"tooltip": false,
|
||||
"all-outputs": true,
|
||||
"on-click": "none"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{0:%H:%M:%S}",
|
||||
"interval": 1,
|
||||
"tooltip": true,
|
||||
"tooltip-format": "{0:%A, %d.%m.%Y W%W}"
|
||||
},
|
||||
"custom/spotify": {
|
||||
"exec": "/usr/bin/python3 /home/paul/downloads/repos/Waybar/resources/custom_modules/mediaplayer.py",
|
||||
"format": "{}",
|
||||
"return-type": "json",
|
||||
"on-click": "playerctl play-pause",
|
||||
"on-scroll-up": "playerctl next",
|
||||
"on-scroll-down": "playerctl previous"
|
||||
},
|
||||
"privacy": {
|
||||
"icon-spacing": 4,
|
||||
"icon-size": 12,
|
||||
"transition-duration": 250,
|
||||
"modules": [
|
||||
{
|
||||
"type": "screenshare",
|
||||
"tooltip": true,
|
||||
"tooltip-icon-size": 24
|
||||
},
|
||||
{
|
||||
"type": "audio-in",
|
||||
"tooltip": true,
|
||||
"tooltip-icon-size": 24
|
||||
}
|
||||
]
|
||||
},
|
||||
"cpu": {
|
||||
"format": " {usage}%",
|
||||
"interval": 5,
|
||||
"on-click": "hyprctl dispatch exec 'resources -t cpu'"
|
||||
},
|
||||
"memory": {
|
||||
"format": " {percentage}% ({used}G)",
|
||||
"interval": 5,
|
||||
"on-click": "hyprctl dispatch exec 'resources -t memory'"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": "",
|
||||
"tooltip": false,
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"default": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"scroll-step": 1,
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"bluetooth": {
|
||||
"format": " {status}",
|
||||
"format-disabled": "", // an empty format will hide the module
|
||||
"format-connected": " {num_connections}",
|
||||
"tooltip-format": "{device_enumerate}",
|
||||
"tooltip-format-enumerate-connected": "{device_alias} {device_address}",
|
||||
"on-click": "hyprctl dispatch exec overskride"
|
||||
},
|
||||
// "network": {
|
||||
// "format": " {ifname}",
|
||||
// "format-ethernet": " {ipaddr}/{cidr}",
|
||||
// "tooltip": false,
|
||||
// },
|
||||
"custom/wireguard": {
|
||||
"exec": "/usr/bin/python3 /home/paul/.config/waybar/scripts/wireguard.py wasteside",
|
||||
"format": " {}",
|
||||
"return-type": "json",
|
||||
"interval": 5
|
||||
}
|
||||
}
|
||||
23
.config/waybar/scripts/wireguard.py
Normal file
23
.config/waybar/scripts/wireguard.py
Normal file
@ -0,0 +1,23 @@
|
||||
from argparse import ArgumentParser
|
||||
from json import dumps
|
||||
from subprocess import run
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = ArgumentParser()
|
||||
parser.add_argument("interfaces", nargs="+", help="one or more names of interfaces to watch")
|
||||
args = parser.parse_args()
|
||||
|
||||
watch = set(args.interfaces)
|
||||
|
||||
ifconfig = run(["ifconfig", "-s"], capture_output=True, text=True).stdout
|
||||
|
||||
interfaces = {line.split()[0] for line in ifconfig.splitlines()[1:]}
|
||||
|
||||
active = interfaces.intersection(watch)
|
||||
|
||||
result = {
|
||||
"text": "active" if len(active) > 0 else "inactive",
|
||||
"tooltip": "\n".join(active),
|
||||
}
|
||||
|
||||
print(dumps(result))
|
||||
@ -1,47 +1,74 @@
|
||||
* {
|
||||
border: none;
|
||||
font-family: 'Fira Code', 'Symbols Nerd Font Mono';
|
||||
font-size: 12px;
|
||||
font-family: 'Fira Sans Semibold', 'Symbols Nerd Font Mono';
|
||||
font-size: 16px;
|
||||
font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
|
||||
min-height: 20px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#custom-arch, #workspaces {
|
||||
border-radius: 10px;
|
||||
background-color: rgba(17, 17, 27, 0.6);
|
||||
color: #b4befe;
|
||||
margin-top: 5px;
|
||||
margin-right: 5px;
|
||||
padding-top: 1px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
/* All modules */
|
||||
|
||||
#custom-arch {
|
||||
font-size: 14px;
|
||||
margin-left: 15px;
|
||||
color: #b4befe;
|
||||
}
|
||||
|
||||
#custom-spotify {
|
||||
/* Module on the left */
|
||||
.modules-left {
|
||||
color: #cdd6f4;
|
||||
margin-top: 4px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
#custom-power {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
color: white;
|
||||
padding: 0px 9px;
|
||||
border-radius: 100px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
#custom-power:hover {
|
||||
background-color: #33ccff;
|
||||
color: #107091;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
margin-left: 10px;
|
||||
font-size: 12px;
|
||||
border-radius: 100px;
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
color: #b4befe;
|
||||
color: white;
|
||||
animation: gradient_f 20s ease-in infinite;
|
||||
transition: all 0.2s ease-in;
|
||||
border-radius: 100px;
|
||||
padding: 0px 4px;
|
||||
margin: 0px 2px;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
color: #000000
|
||||
background: none;
|
||||
background-color: black;
|
||||
color: white;
|
||||
box-shadow: inherit;
|
||||
text-shadow: inherit;
|
||||
}
|
||||
|
||||
#clock, #custom-spotify, #cpu, #memory, #pulseaudio, #bluetooth, #network{
|
||||
border-radius: 10px;
|
||||
background-color: rgba(17, 17, 27, 0.6);
|
||||
#workspaces button.active {
|
||||
background-color: #33ccff;
|
||||
color: #167797;
|
||||
border-radius: 100px;
|
||||
padding: 0px 10px;
|
||||
}
|
||||
|
||||
#custom-spotify {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
/* Module in the middle */
|
||||
#clock {
|
||||
color: #cdd6f4;
|
||||
margin-top: 3px;
|
||||
padding-left: 10px;
|
||||
@ -49,23 +76,39 @@ window#waybar {
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
#bluetooth, #cpu {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
padding-right: 5px;
|
||||
margin-right: 0
|
||||
}
|
||||
/* Module on the right */
|
||||
|
||||
#network, #memory {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
#network {
|
||||
.modules-right {
|
||||
color: black;
|
||||
margin-top: 3px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
#clock {
|
||||
margin-right: 0;
|
||||
#custom-wireguard, #memory {
|
||||
background-color: rgba(255, 255, 255, 0.8);
|
||||
border-radius: 0px 100px 100px 0px;
|
||||
padding-right: 7px;
|
||||
}
|
||||
|
||||
#bluetooth, #cpu {
|
||||
background-color: rgba(255, 255, 255, 0.8);
|
||||
border-radius: 100px 0px 0px 100px;
|
||||
padding: 0px 7px;
|
||||
}
|
||||
|
||||
#memory {
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
color: white;
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
#privacy {
|
||||
background-color: rgba(17, 17, 27, 0.15);
|
||||
padding: 0px 10px;
|
||||
border-radius: 100px;
|
||||
color: white;
|
||||
margin-right: 7px;
|
||||
}
|
||||
Reference in New Issue
Block a user