Add files via upload

This commit is contained in:
OdiousImp2604
2021-01-16 19:05:21 +00:00
committed by GitHub
parent 2c9db867e7
commit 4fa7312bca
14 changed files with 391 additions and 213 deletions

View File

@@ -13,31 +13,30 @@
"layer": "top",
"position": "bottom",
"position": "top",
// If height property would be not present, it'd be calculated dynamically
"height": 30,
"modules-left": [
"custom/launcher",
"sway/workspaces",
"sway/mode"
],
"modules-center": [
],
"modules-right": [
"network",
"pulseaudio",
"memory",
"cpu",
"temperature",
"pulseaudio",
"custom/keyboard-layout",
"battery",
"backlight",
"tray",
"clock#date",
"clock#time",
"tray",
"custom/power"
],
@@ -47,23 +46,18 @@
// -------------------------------------------------------------------------
"battery": {
"interval": 10,
"states": {
"warning": 30,
"critical": 15
},
// Connected to AC
"format": " {icon} {capacity}%", // Icon: bolt
// Not connected to AC
"format-discharging": "{icon} {capacity}%",
"format-icons": [
"", // Icon: battery-full
"", // Icon: battery-three-quarters
"", // Icon: battery-half
"", // Icon: battery-quarter
"" // Icon: battery-empty
],
"tooltip": true
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"clock#time": {
@@ -99,7 +93,7 @@
"memory": {
"interval": 5,
"format": " {}%", // Icon: memory
"format": " {}%", // Icon: memory
"states": {
"warning": 70,
"critical": 90
@@ -112,6 +106,7 @@
"format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet
"format-disconnected": "⚠ Disconnected",
"tooltip-format": "{ifname}: {ipaddr}"
},
"sway/mode": {
@@ -125,35 +120,41 @@
},
"sway/workspaces": {
"disable-scroll": false,
"all-outputs": true,
"format": "{icon}",
},
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
}
"all-outputs": false,
"disable-scroll": true,
"format": "{icon} {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": {
"format": "{icon} 奄 {volume:2}%",
"format-bluetooth": "{icon} {volume}%",
"format-muted": "",
"format-icons": {
"headphones": "",
"default": [
"",
""
]
},
"scroll-step": 1, // %, can be a float
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon} {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",
"on-scroll-up": "pactl set-sink-volume 0 +3%",
"on-scroll-down": "pactl set-sink-volume 0 -3%",
},
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ -5%",
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ +5%",
},
"temperature": {
"critical-threshold": 80,
@@ -173,25 +174,19 @@
"icon-size": 21,
"spacing": 10
},
"custom/power": {
"format": "⏻",
"on-click": "exec wlogout",
"tooltip": false
},
"backlight": {
"backlight": {
"interval": 5,
"format": "{percent}% {icon}",
"format": "{icon} {percent}%",
"format-alt": "{percent}% {icon}",
"format-alt-click": "click-right",
"format-icons": ["🌕", "🌔", "🌓", "🌒", "🌑"],
"on-scroll-down": "brightnessctl -c backlight set +5%",
"on-scroll-up": "brightnessctl -c backlight set 5%-"
},
"custom/launcher": {
"format":" ",
"on-click": "exec wofi -c ~/.config/wofi/config -I",
"custom/power": {
"format": "⏻",
"on-click": "exec wlogout",
"tooltip": false
}
},
}

View File

@@ -58,6 +58,7 @@
#battery,
#clock,
#cpu,
#backlight
#custom-keyboard-layout,
#memory,
#mode,
@@ -67,6 +68,10 @@
#tray {
padding-left: 10px;
padding-right: 10px;
margin-right: 2px;
margin-top: 4px;
margin-bottom:4px;
margin-left: 2px;
}
@@ -78,7 +83,10 @@
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
background-color: #545157;
margin-right: 8px;
margin-left: 8px;
font-size: 13px;
}
#battery.warning {
@@ -101,11 +109,12 @@
#clock {
font-weight: bold;
color: #dbcb75;
background-color: #545157;
margin-left: 2px;
}
#cpu {
color: #40e612;
background-color: #545157;
}
#cpu.warning {
@@ -120,7 +129,6 @@
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
color: #96c6f8;
}
#memory.warning {
@@ -141,7 +149,8 @@
}
#network {
color: #3f6e22 ;
background-color: #545157;
}
#network.disconnected {
@@ -149,11 +158,14 @@
}
#pulseaudio {
color: #208273;
color: @base07;
background-color: #545157;
margin-right: 8px;
}
#pulseaudio.muted {
color: #208273;
color: @base07;
margin-right: 8px;
}
#custom-spotify {
@@ -169,7 +181,15 @@
}
#tray {
/* No styles */
font-size: 17px;
margin-right: 7px;
margin-top: 4px;
margin-bottom:4px;
padding-left: 5px;
padding-right: 5px;
padding-top: 5px;
padding-bottom: 5px;
}
#window {
@@ -195,20 +215,23 @@
border-color: #c9545d;
color: #c9545d;
}
#custom-power {
font-size: 17px;
color: #eceff4;
font-size: 18px;
margin-right: 7px;
border-radius: 15px;
margin-top: 4px;
margin-bottom:4px;
padding-left: 10px;
padding-right: 10px;
background-color: #545157;
}
#custom-keyboard-layout {
color: #667c9d;
}
#custom-launcher {
margin-left: 10px;
margin-right: 10px;
font-size: 15px;
}
#backlight {
margin-right:5px;
}