Readme + base configs for sway, waybar, lightdm
This commit is contained in:
@@ -0,0 +1,160 @@
|
||||
|
||||
{
|
||||
//GLOBAL
|
||||
|
||||
|
||||
"layer": "top",
|
||||
|
||||
"position": "top",
|
||||
|
||||
"modules-left": [
|
||||
"sway/workspaces",
|
||||
"tray"
|
||||
],
|
||||
|
||||
"modules-center": [
|
||||
"clock#date"
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
"battery",
|
||||
"clock#time"
|
||||
],
|
||||
|
||||
//MODULES
|
||||
|
||||
"clock#time": {
|
||||
"interval": 10,
|
||||
"locale": "C",
|
||||
"timezone": "Europe/Berlin",
|
||||
"format": "{:%H:%M}",
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
|
||||
"clock#date": {
|
||||
"interval": 20,
|
||||
"locale": "C",
|
||||
"timezone": "Europe/Berlin",
|
||||
"format": " {:%e %b %Y}", // Icon: calendar-alt
|
||||
//"tooltip-format": "{:%e %B %Y}"
|
||||
"tooltip": true
|
||||
|
||||
},
|
||||
|
||||
"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
|
||||
],
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
"cpu": {
|
||||
"interval": 5,
|
||||
"tooltip": false,
|
||||
"format": " {usage}%", //Icon: microchip
|
||||
"states": {
|
||||
"warning": 70,
|
||||
"critical": 90
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
"memory": {
|
||||
"interval": 5,
|
||||
"format": " {}%", // Icon: memory
|
||||
"states": {
|
||||
"warning": 70,
|
||||
"critical": 90
|
||||
}
|
||||
},
|
||||
|
||||
"network": {
|
||||
"interval": 5,
|
||||
"format-wifi": " {essid}", // Icon: wifi
|
||||
"format-ethernet": " {ifname}", // Icon: ethernet
|
||||
"format-disconnected": "Disconnected",
|
||||
"tooltip-format": "{ifname}: {ipaddr}",
|
||||
"on-click": "swaymsg exec cmst"
|
||||
},
|
||||
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\"> {}</span>",
|
||||
"tooltip": true
|
||||
},
|
||||
|
||||
|
||||
"sway/workspaces": {
|
||||
"all-outputs": false,
|
||||
"disable-scroll": true,
|
||||
"format": "{name}",
|
||||
"format-icons": {
|
||||
"1:www": "龜", // Icon: firefox-browser
|
||||
"2:mail": "", // Icon: mail
|
||||
"3:editor": "", // Icon: code
|
||||
"4:terminals": "", // Icon: terminal
|
||||
"5:portal": "", // Icon: terminal
|
||||
"urgent": "",
|
||||
"focused": "",
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
|
||||
"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": ["", ""]
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 22
|
||||
|
||||
//"spacing": 10
|
||||
},
|
||||
|
||||
|
||||
"custom/bar": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,143 @@
|
||||
|
||||
{
|
||||
//GLOBAL
|
||||
|
||||
"layer": "top",
|
||||
|
||||
"position": "bottom",
|
||||
|
||||
"modules-left": [
|
||||
"cpu",
|
||||
"memory"
|
||||
// "disk"
|
||||
],
|
||||
|
||||
"modules-center": [
|
||||
"network"
|
||||
],
|
||||
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"backlight",
|
||||
"pulseaudio"
|
||||
],
|
||||
|
||||
//MODULES
|
||||
|
||||
|
||||
"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
|
||||
],
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
"cpu": {
|
||||
"interval": 5,
|
||||
"tooltip": false,
|
||||
"format": " {usage}%", //Icon: microchip
|
||||
"states": {
|
||||
"warning": 70,
|
||||
"critical": 90
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
"memory": {
|
||||
"interval": 5,
|
||||
"format": " {}%", // Icon: memory
|
||||
"states": {
|
||||
"warning": 70,
|
||||
"critical": 90
|
||||
}
|
||||
},
|
||||
|
||||
"network": {
|
||||
"interval": 5,
|
||||
"format-wifi": " {essid}", // Icon: wifi
|
||||
"format-ethernet": " {ifname}", // Icon: ethernet
|
||||
"format-disconnected": "Disconnected",
|
||||
"tooltip-format": "{ifname}: {ipaddr}",
|
||||
"on-click": "swaymsg exec cmst"
|
||||
},
|
||||
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\"> {}</span>",
|
||||
"tooltip": true
|
||||
},
|
||||
|
||||
|
||||
"sway/workspaces": {
|
||||
"all-outputs": false,
|
||||
"disable-scroll": true,
|
||||
"format": "{name}",
|
||||
"format-icons": {
|
||||
"1:www": "龜", // Icon: firefox-browser
|
||||
"2:mail": "", // Icon: mail
|
||||
"3:editor": "", // Icon: code
|
||||
"4:terminals": "", // Icon: terminal
|
||||
"5:portal": "", // Icon: terminal
|
||||
"urgent": "",
|
||||
"focused": "",
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
|
||||
"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": ["", ""]
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 22
|
||||
|
||||
//"spacing": 10
|
||||
},
|
||||
|
||||
|
||||
"custom/bar": {
|
||||
"format": "",
|
||||
"tooltip": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,146 @@
|
||||
/* Reset styles */
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 1;
|
||||
min-height: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* The bar */
|
||||
#waybar {
|
||||
background: #282828;
|
||||
color: white;
|
||||
font-family: "awesome 5";
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#disk,
|
||||
#backlight,
|
||||
#battery,
|
||||
#clock,
|
||||
#cpu,
|
||||
#custom-keyboard-layout,
|
||||
#memory,
|
||||
#mode,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#custom-alsa,
|
||||
#tray {
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
margin-left: 2px;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
/*modules style*/
|
||||
#disk {
|
||||
background: #d79921;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background: #689d6a;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#battery {
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
background: #fbf1c7;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#battery.warning {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#clock.date {
|
||||
background: #d65d0e;
|
||||
color: #282828;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#clock.time {
|
||||
background: #eceff4;
|
||||
color: #282828;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background: #af3a03;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#cpu.warning {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#cpu.critical {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#memory {
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
background: #458588;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#memory.warning {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background: #64727d;
|
||||
border-top: 2px solid white;
|
||||
/* To compensate for the top border and still have vertical centering */
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
#network {
|
||||
background: #98971a;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background: #8f3f71;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background: #98971a;
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#window {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
font-weight: bold;
|
||||
padding-bottom: 2px;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
color: #076678;
|
||||
background: #282828;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
font-weight: bold;
|
||||
color: #282828;
|
||||
background-color: #076678;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user