Waybar config
This commit is contained in:
parent
cf194623d6
commit
e8e4c38c73
@ -11,6 +11,8 @@ Linux UI customized to resemble a Fallout Pip-Boy. To be used with the PINE64 Pi
|
||||
- waybar: Side panel
|
||||
- termite: Terminal emulator
|
||||
- mako: Notifications daemon
|
||||
- mpd: Music player daemon
|
||||
- xfmpc: Music player client
|
||||
|
||||
## Dependencies
|
||||
- [Sway on PinePhone](https://github.com/Dejvino/pinephone-sway-poc)
|
||||
|
@ -23,7 +23,7 @@ output DSI-1 transform 270
|
||||
exec "squeekboard"
|
||||
|
||||
# Status Bar
|
||||
exec "waybar -c ~/.config/waybar/config_v -b side"
|
||||
exec "waybar -c ~/.config/waybar/config -b side"
|
||||
|
||||
# Restore backlight
|
||||
exec 'swayphone_power_wakeup'
|
||||
|
204
config/waybar/config
Executable file
204
config/waybar/config
Executable file
@ -0,0 +1,204 @@
|
||||
|
||||
{
|
||||
//GLOBAL
|
||||
|
||||
|
||||
"layer": "top",
|
||||
|
||||
"position": "right", // or "left"
|
||||
"width": 100,
|
||||
|
||||
"modules-left": [
|
||||
"clock#time",
|
||||
"clock#date",
|
||||
"battery",
|
||||
"custom/terminal",
|
||||
"sway/workspaces"
|
||||
],
|
||||
|
||||
"modules-center": [
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
"cpu",
|
||||
"memory",
|
||||
// "disk",
|
||||
"network",
|
||||
"backlight",
|
||||
"pulseaudio",
|
||||
"custom/kill",
|
||||
"tray"
|
||||
],
|
||||
|
||||
//MODULES
|
||||
|
||||
"clock#time": {
|
||||
"interval": 10,
|
||||
"locale": "C",
|
||||
"timezone": "Europe/Berlin",
|
||||
"format": " {:%H:%M}",
|
||||
"tooltip": false,
|
||||
"on-click": "termite -e swayphone_menuselect"
|
||||
},
|
||||
|
||||
|
||||
"clock#date": {
|
||||
"interval": 20,
|
||||
"locale": "C",
|
||||
"timezone": "Europe/Berlin",
|
||||
"format": " {:%e %b %Y}", // Icon: calendar-alt
|
||||
//"tooltip-format": "{:%e %B %Y}"
|
||||
"tooltip": true,
|
||||
"on-click": "termite -e swayphone_menuselect"
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"interval": 1,
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
/*
|
||||
// Connected to AC
|
||||
"format": " {capacity}%", // Icon: bolt
|
||||
// Not connected to AC
|
||||
"format-discharging": " {capacity}%",
|
||||
"format-icons": [
|
||||
"", // Icon: battery-full
|
||||
"", // Icon: battery-three-quarters
|
||||
"", // Icon: battery-half
|
||||
"", // Icon: battery-quarter
|
||||
"" // Icon: battery-empty
|
||||
],
|
||||
*/
|
||||
// Connected to AC
|
||||
"format": "CH {capacity}%", // Icon: bolt
|
||||
// Not connected to AC
|
||||
"format-discharging": "D {capacity}%",
|
||||
"format-icons": [
|
||||
"4/4", // Icon: battery-full
|
||||
"3/4", // Icon: battery-three-quarters
|
||||
"2/4", // Icon: battery-half
|
||||
"1/4", // Icon: battery-quarter
|
||||
"0/4" // Icon: battery-empty
|
||||
],
|
||||
|
||||
"tooltip": false,
|
||||
// "bat": "axp20x-battery",
|
||||
// "adapter": "axp20x-usb",
|
||||
"on-click": "termite -e \"~/battery.sh ; sleep 5\""
|
||||
},
|
||||
|
||||
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\"> {}</span>",
|
||||
"tooltip": true
|
||||
},
|
||||
|
||||
|
||||
"sway/workspaces": {
|
||||
"all-outputs": false,
|
||||
"disable-scroll": true,
|
||||
"persistent_workspaces": {
|
||||
"1:STAT": [],
|
||||
"2:INV": [],
|
||||
"3:DATA": [],
|
||||
"4:MAP": [],
|
||||
"5:RADIO": []
|
||||
},
|
||||
"format": "{name}",
|
||||
"format-icons": {
|
||||
//"1:T": "", // Icon: terminal
|
||||
"3:F": "龜", // Icon: firefox-browser
|
||||
"8:M": "", // Icon: mail
|
||||
"urgent": "",
|
||||
"focused": "",
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
|
||||
"custom/kill": {
|
||||
"on-click": "swaymsg kill",
|
||||
"format": "[KILL]"
|
||||
},
|
||||
|
||||
"custom/terminal": {
|
||||
"on-click": "termite",
|
||||
"format": "[TERM]"
|
||||
},
|
||||
|
||||
|
||||
"cpu": {
|
||||
"interval": 5,
|
||||
"tooltip": false,
|
||||
"format": " {usage}%", //Icon: microchip
|
||||
"states": {
|
||||
"warning": 70,
|
||||
"critical": 90
|
||||
},
|
||||
"on-click": "termite -e \"htop --sort-key=PERCENT_CPU\""
|
||||
},
|
||||
|
||||
|
||||
"memory": {
|
||||
"interval": 5,
|
||||
"format": " {}%", // Icon: memory
|
||||
"states": {
|
||||
"warning": 70,
|
||||
"critical": 90
|
||||
},
|
||||
"on-click": "termite -e \"htop --sort-key=PERCENT_MEM\""
|
||||
},
|
||||
|
||||
"network": {
|
||||
"interval": 5,
|
||||
"format-wifi": " {essid}", // Icon: wifi
|
||||
"format-ethernet": " {ifname}", // Icon: ethernet
|
||||
"format-disconnected": "Disconnected",
|
||||
"tooltip-format": "{ifname}: {ipaddr}",
|
||||
"on-click": "swaymsg exec \"termite -e nmtui\""
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
"scroll-step": 1,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-bluetooth": "{icon} {volume}%",
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"headphones": "",
|
||||
"handsfree": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
|
||||
"disk": {
|
||||
"interval": 5,
|
||||
"format": " {percentage_used:2}%",
|
||||
"path": "/"
|
||||
|
||||
},
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{icon} {percent}% ",
|
||||
"states": [0,50],
|
||||
"format-icons": ["", ""],
|
||||
"on-click": "termite -e swayphone_backlightselect"
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 22
|
||||
|
||||
//"spacing": 10
|
||||
},
|
||||
|
||||
|
||||
"custom/bar": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
}
|
||||
}
|
||||
|
150
config/waybar/style.css
Executable file
150
config/waybar/style.css
Executable file
@ -0,0 +1,150 @@
|
||||
/* Reset styles */
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 1;
|
||||
min-height: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* The bar */
|
||||
#waybar {
|
||||
background: #000000;
|
||||
color: #00ff00;
|
||||
font-family: "awesome 5";
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#disk,
|
||||
#backlight,
|
||||
#battery,
|
||||
#clock,
|
||||
#cpu,
|
||||
#custom-keyboard-layout,
|
||||
#memory,
|
||||
#mode,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#custom-alsa,
|
||||
#custom-kill,
|
||||
#custom-terminal,
|
||||
#tray {
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
margin-left: 2px;
|
||||
margin-right: 2px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
border: 1px solid #00ff00;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
/*@media (width > 800px) {
|
||||
#clock {
|
||||
padding: 10px;
|
||||
}
|
||||
}*/
|
||||
|
||||
/*modules style*/
|
||||
#disk {
|
||||
}
|
||||
|
||||
#backlight {
|
||||
}
|
||||
|
||||
#battery {
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#battery.warning {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#clock.date {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#clock.time {
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
}
|
||||
|
||||
#cpu.warning {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#cpu.critical {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#memory {
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#memory.warning {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#mode {
|
||||
border-top: 2px solid white;
|
||||
/* To compensate for the top border and still have vertical centering */
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
#network {
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
}
|
||||
|
||||
#custom-kill {
|
||||
}
|
||||
|
||||
#custom-terminal {
|
||||
}
|
||||
|
||||
#tray {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#window {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
font-weight: bold;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
border-radius: 10px;
|
||||
color: #00ff00;
|
||||
border: 1px dotted #0c0;
|
||||
border-radius: 1px;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
font-weight: bolder;
|
||||
color: #000;
|
||||
background-color: #00ff00;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user