Initial
This commit is contained in:
commit
c8734e660a
392 changed files with 21043 additions and 0 deletions
181
.config/waybar/waybar_heron/config
Normal file
181
.config/waybar/waybar_heron/config
Normal file
|
|
@ -0,0 +1,181 @@
|
|||
{
|
||||
// Basics
|
||||
"layer": "bottom",
|
||||
"position": "top",
|
||||
"margin-top": 5,
|
||||
"margin-right": 5,
|
||||
"margin-left": 5,
|
||||
|
||||
// Modules
|
||||
"modules-left": [
|
||||
"clock",
|
||||
"custom/separator",
|
||||
"cpu",
|
||||
"temperature",
|
||||
"custom/separator",
|
||||
"memory",
|
||||
"custom/separator",
|
||||
"disk#one",
|
||||
"custom/separator",
|
||||
"custom/spotify"
|
||||
],
|
||||
"modules-center": [
|
||||
"sway/workspaces",
|
||||
"sway/mode"
|
||||
],
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"custom/separator",
|
||||
"idle_inhibitor",
|
||||
"backlight",
|
||||
"pulseaudio",
|
||||
"custom/separator",
|
||||
"network",
|
||||
"custom/vpn",
|
||||
"custom/separator",
|
||||
"battery",
|
||||
"custom/separator",
|
||||
"custom/powermenu",
|
||||
"custom/separator"
|
||||
],
|
||||
|
||||
// Module Config
|
||||
"clock": {
|
||||
"format": " {:%a %d %b %H:%M}"
|
||||
},
|
||||
"cpu": {
|
||||
"states": {
|
||||
"good": 0,
|
||||
"warning": 70,
|
||||
"critical": 90
|
||||
},
|
||||
"interval": 1,
|
||||
"format": " {usage:2}%",
|
||||
"on-click": "foot -e btop"
|
||||
},
|
||||
"temperature": {
|
||||
"thermal-zone": 3,
|
||||
"interval": 1,
|
||||
"hwmon-path": "/sys/class/hwmon/hwmon3/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
"format-critical": "({temperatureC}°C)",
|
||||
"format": "({temperatureC}°C)"
|
||||
},
|
||||
"memory": {
|
||||
"states": {
|
||||
"good": 0,
|
||||
"warning": 70,
|
||||
"critical": 85
|
||||
},
|
||||
"interval": 5,
|
||||
"format": " {}%",
|
||||
"on-click": "foot -e btop"
|
||||
},
|
||||
"disk#one": {
|
||||
"states": {
|
||||
"good": 0,
|
||||
"warning": 70,
|
||||
"critical": 95
|
||||
},
|
||||
"interval": 5,
|
||||
"format": " {percentage_used:2}%",
|
||||
"path": "/"
|
||||
},
|
||||
"custom/spotify": {
|
||||
"interval": 1,
|
||||
"return-type": "json",
|
||||
"exec": "~/.config/waybar/modules/spotify.sh",
|
||||
"exec-if": "pgrep spotify",
|
||||
"escape": true
|
||||
},
|
||||
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"format": "{name}",
|
||||
"format-icons": {
|
||||
"urgent": "",
|
||||
"focused": "",
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 16,
|
||||
"spacing": 8
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"backlight": {
|
||||
"format": "{icon} {percent}%",
|
||||
"format-icons": [
|
||||
"",
|
||||
""
|
||||
],
|
||||
"on-scroll-up": "brightnessctl set +5%",
|
||||
"on-scroll-down": "brightnessctl set 5%-"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": " {format_source}",
|
||||
"format-source": " {volume}%",
|
||||
"format-source-muted": "",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": " {essid} ({signalStrength}%)",
|
||||
"format-ethernet": " {ifname} {ipaddr}",
|
||||
"format-disconnected": "Disconnected",
|
||||
"tooltip-format": "{ifname}",
|
||||
"tooltip-format-wifi": "{ipaddr}",
|
||||
"tooltip-format-ethernet": "{ipaddr}",
|
||||
"tooltip-format-disconnected": "Disconnected",
|
||||
"interval": 30
|
||||
},
|
||||
"custom/vpn": {
|
||||
"format": " {icon}",
|
||||
"exec": "$HOME/.config/waybar/modules/vpn.sh",
|
||||
"return-type": "json",
|
||||
"interval": 5,
|
||||
"format-icons": [" ",""]
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 100,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-icons": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"custom/powermenu": {
|
||||
"format": "",
|
||||
"on-click": "nwg-bar",
|
||||
"tooltip": false
|
||||
}
|
||||
}
|
||||
19
.config/waybar/waybar_heron/modules/spotify.sh
Normal file
19
.config/waybar/waybar_heron/modules/spotify.sh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
class=$(playerctl metadata --player=spotify_player --format '{{lc(status)}}')
|
||||
icon=" "
|
||||
|
||||
if [[ $class == "playing" ]]; then
|
||||
info=$(playerctl metadata --player=spotify_player --format '{{artist}} - {{title}}')
|
||||
# if [[ ${#info} > 20 ]]; then
|
||||
# info=$(echo $info | cut -c1-20)"..."
|
||||
# fi
|
||||
info=$(echo $info | cut -c1-50)
|
||||
text=$icon" "$info
|
||||
elif [[ $class == "paused" ]]; then
|
||||
text=$icon" "paused
|
||||
elif [[ $class == "stopped" ]]; then
|
||||
text=""
|
||||
fi
|
||||
|
||||
echo -e "{\"text\":\""$text"\", \"class\":\""$class"\"}"
|
||||
4
.config/waybar/waybar_heron/modules/vpn.sh
Normal file
4
.config/waybar/waybar_heron/modules/vpn.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
ip route | grep -q 'proton0' \
|
||||
&& echo '{"text":"Connected","class":"connected","percentage":100}' \
|
||||
|| echo '{"text":"Disconnected","class":"disconnected","percentage":0}'
|
||||
109
.config/waybar/waybar_heron/style.css
Normal file
109
.config/waybar/waybar_heron/style.css
Normal file
|
|
@ -0,0 +1,109 @@
|
|||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: "DejaVuSansMono Nerd Font", "FreeSans";
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: none;
|
||||
color: #f8f8f2;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#window {
|
||||
font-weight: bold;
|
||||
font-family: "monospace";
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 5px 5px;
|
||||
background: transparent;
|
||||
color: #f8f8f2;
|
||||
}
|
||||
#workspaces button.focused {
|
||||
color: #bd93f9;
|
||||
}
|
||||
#workspaces button.urgent {
|
||||
background-color: #ff5555;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background: #64727D;
|
||||
}
|
||||
|
||||
.modules-left,
|
||||
.modules-center,
|
||||
.modules-right {
|
||||
background: #282a36;
|
||||
border-radius: 6px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Base styling for modules */
|
||||
#workspaces,
|
||||
#mode,
|
||||
#window,
|
||||
#idle_inhibitor,
|
||||
#pulseaudio,
|
||||
#cpu,
|
||||
#memory,
|
||||
#clock,
|
||||
#battery,
|
||||
#backlight,
|
||||
#disk,
|
||||
#custom-separator,
|
||||
#custom-powermenu,
|
||||
#taskbar,
|
||||
#tray {
|
||||
padding: 2px 10px 0 10px;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
color: #999;
|
||||
font-size: 10px;
|
||||
padding: 3px 10px 0 0;
|
||||
}
|
||||
#temperature.critical {
|
||||
color: #ff5555;
|
||||
}
|
||||
|
||||
#custom-vpn.disconnected {
|
||||
color: #cc0000;
|
||||
}
|
||||
#custom-vpn.connected {
|
||||
color: #00ff00;
|
||||
}
|
||||
|
||||
#custom-separator {
|
||||
opacity: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#battery.warning,
|
||||
#cpu.warning,
|
||||
#disk.one.warning,
|
||||
#memory.warning {
|
||||
background-color: inherit;
|
||||
color: #ffb86c;
|
||||
}
|
||||
|
||||
#battery.critical,
|
||||
#cpu.critical,
|
||||
#disk.one.critical,
|
||||
#memory.critical,
|
||||
#network.disconnected,
|
||||
#pulseaudio.muted {
|
||||
color: #ff5555;
|
||||
}
|
||||
|
||||
#tray {
|
||||
padding: 5px 3px 5px 3px;
|
||||
}
|
||||
#custom-spotify {
|
||||
color: #A6E3A1;
|
||||
padding-left: 15px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue