Add files via upload

This commit is contained in:
OdiousImp2604
2021-01-22 11:01:57 +00:00
committed by GitHub
parent 98675f1b6f
commit c47529add6
2 changed files with 267 additions and 386 deletions

View File

@@ -1,9 +1,7 @@
// Global // Global
{ {
"layer": "top", "layer": "top",
"position": "bottom", "position": "bottom",
// If height property would be not present, it'd be calculated dynamically // If height property would be not present, it'd be calculated dynamically
"height": 30, "height": 30,
@@ -11,22 +9,19 @@
"custom/launcher", "custom/launcher",
"sway/workspaces", "sway/workspaces",
"sway/mode", "sway/mode",
], ],
"modules-center": [ "modules-center": [
], ],
"modules-right": [ "modules-right": [
"custom/firefox", "custom/firefox",
"custom/seperator",
"custom/files", "custom/files",
"custom/seperator",
"custom/terminal", "custom/terminal",
"network", "network",
"memory", "memory",
"cpu", "cpu",
"custom/weather", // "custom/weather",
"pulseaudio", "pulseaudio",
"custom/keyboard-layout", "custom/keyboard-layout",
"battery", "battery",
@@ -38,7 +33,7 @@
// Modules // Modules
"sway/workspaces": { "sway/workspaces": {
"disable-scroll": true, "disable-scroll": true,
"all-outputs": false, "all-outputs": false,
"format": "{icon}", "format": "{icon}",
@@ -53,12 +48,9 @@
"focused": ",", "focused": ",",
"default": "" "default": ""
} }
}, },
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"battery": { "battery": {
"states": { "states": {
// "good": 95, // "good": 95,
"warning": 30, "warning": 30,
@@ -71,22 +63,17 @@
// "format-good": "", // An empty format will hide the module // "format-good": "", // An empty format will hide the module
// "format-full": "", // "format-full": "",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"clock#time": {
"interval": 1,
"format": "{:%H:%M:%S}",
"tooltip": false
},
"clock": { "clock": {
"interval": 10, "interval": 10,
"format-alt": " {:%e %b %Y}", // Icon: calendar-alt "format-alt": " {:%e %b %Y}", // Icon: calendar-alt
"format": "{:%H:%M}", "format": "{:%H:%M}",
"tooltip-format": "{:%e %B %Y}" "tooltip-format": "{:%e %B %Y}"
}, },
"cpu": { "cpu": {
"interval": 5, "interval": 5,
"format": " {usage}% ({load})", // Icon: microchip "format": " {usage}% ({load})", // Icon: microchip
"states": { "states": {
@@ -94,9 +81,9 @@
"critical": 90 "critical": 90
}, },
"on-click": "exec htop", "on-click": "exec htop",
}, },
"custom/keyboard-layout": { "custom/keyboard-layout": {
"exec": "swaymsg -t get_inputs | grep -m1 'xkb_active_layout_name' | cut -d '\"' -f4", "exec": "swaymsg -t get_inputs | grep -m1 'xkb_active_layout_name' | cut -d '\"' -f4",
// Interval set only as a fallback, as the value is updated by signal // Interval set only as a fallback, as the value is updated by signal
"interval": 30, "interval": 30,
@@ -106,35 +93,34 @@
"tooltip": false "tooltip": false
}, },
"memory": { "memory": {
"interval": 5, "interval": 5,
"format": " {}%", // Icon: memory "format": " {}%", // Icon: memory
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
} }
}, },
"network": { "network": {
"interval": 5, "interval": 5,
"format-wifi": " {essid} ({signalStrength}%)", // Icon: wifi "format-wifi": " {essid} ({signalStrength}%)", // Icon: wifi
"format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet "format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet
"format-disconnected": "⚠ Disconnected", "format-disconnected": "⚠ Disconnected",
"tooltip-format": "{ifname}: {ipaddr}" "tooltip-format": "{ifname}: {ipaddr}"
},
}, "sway/mode": {
"format": "{}",
"sway/mode": {
"format": "<span> {}</span>", // Icon: expand-arrows-alt
"tooltip": false "tooltip": false
}, },
"sway/window": { "sway/window": {
"format": "{}", "format": "{}",
"max-length": 120 "max-length": 120
}, },
"sway/workspaces": { "sway/workspaces": {
"all-outputs": false, "all-outputs": false,
"disable-scroll": true, "disable-scroll": true,
"format": "{icon} {name}", "format": "{icon} {name}",
@@ -148,8 +134,9 @@
"focused": "", "focused": "",
"default": "" "default": ""
} }
}, },
"pulseaudio": {
"pulseaudio": {
"scroll-step": 1, // %, can be a float "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon}", "format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}  {format_source}", "format-bluetooth": "{volume}% {icon}  {format_source}",
@@ -169,20 +156,20 @@
"on-click": "pavucontrol", "on-click": "pavucontrol",
"on-scroll-up": "pamixer -ui 2", "on-scroll-up": "pamixer -ui 2",
"on-scroll-down": "pamixer -ud 2", "on-scroll-down": "pamixer -ud 2",
}, },
"custom/weather": { "custom/weather": {
"exec": "~/.config/waybar/scripts/weather.sh", "exec": "~/.config/waybar/scripts/weather.sh",
"format": "{}", "format": "{}",
"return-type": "json", "return-type": "json",
"interval": 600 "interval": 600
},
"tray": {
"icon-size": 18,
}, },
"tray": { "backlight": {
"icon-size": 21,
"spacing": 10
},
"backlight": {
"interval": 5, "interval": 5,
"format": "{icon} {percent}%", "format": "{icon} {percent}%",
"format-alt": "{percent}% {icon}", "format-alt": "{percent}% {icon}",
@@ -190,34 +177,35 @@
"format-icons": ["🌕", "🌔", "🌓", "🌒", "🌑"], "format-icons": ["🌕", "🌔", "🌓", "🌒", "🌑"],
"on-scroll-down": "brightnessctl -c backlight set +5%", "on-scroll-down": "brightnessctl -c backlight set +5%",
"on-scroll-up": "brightnessctl -c backlight set 5%-" "on-scroll-up": "brightnessctl -c backlight set 5%-"
}, },
"custom/firefox": {
"custom/firefox": {
"format": " ", "format": " ",
"on-click": "exec firefox", "on-click": "exec firefox",
"tooltip": false "tooltip": false
}, },
"custom/terminal": {
"custom/terminal": {
"format": " ", "format": " ",
"on-click": "exec alacritty", "on-click": "exec alacritty",
"tooltip": false "tooltip": false
}, },
"custom/files": {
"custom/files": {
"format": " ", "format": " ",
"on-click": "exec thunar", "on-click": "exec thunar",
"tooltip": false "tooltip": false
}, },
"custom/seperator": {
"format": " ",
}, "custom/launcher": {
"custom/launcher": { "format":" ",
"format":"",
"on-click": "exec wofi -c ~/.config/wofi/config -I", "on-click": "exec wofi -c ~/.config/wofi/config -I",
"tooltip": false "tooltip": false,
}, },
"custom/power": {
"custom/power": {
"format":"", "format":"",
"on-click": "exec ~/.config/waybar/scripts/power-menu.sh", "on-click": "exec ~/.config/waybar/scripts/power-menu.sh",
"tooltip": false "tooltip": false,
}, },
} }

View File

@@ -41,38 +41,19 @@
* { * {
border: none; border: none;
border-radius: 0; border-radius: 0;
min-height: 0; margin: 0px;
margin: 0; padding-top: 1px;
padding: 0; padding-bottom: 1px;
padding-left: 15;
padding-right: 15;
} }
/* The whole bar */ /* The whole bar */
#waybar { #waybar {
background: #000000; background: black;
color: white; color: white;
font-family: UbuntuMono; font-family: UbuntuMono;
font-size: 13px; font-size: 14px;
}
/* Each module */
#battery,
#clock,
#cpu,
#backlight
#custom-keyboard-layout,
#memory,
#mode,
#network,
#pulseaudio,
#custom-weather,
#temperature,
#tray {
padding-left: 10px;
padding-right: 10px;
margin-right: 2px;
margin-top: 4px;
margin-bottom:4px;
margin-left: 2px;
} }
@@ -84,12 +65,6 @@
animation-timing-function: linear; animation-timing-function: linear;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
/*
background-color: #545157;
*/
margin-right: 8px;
margin-left: 8px;
font-size: 13px;
} }
#battery.warning { #battery.warning {
@@ -110,17 +85,6 @@
animation-duration: 2s; animation-duration: 2s;
} }
#clock{
font-size: 13px;
}
#cpu {
/*
no styles
*/
}
#cpu.warning { #cpu.warning {
color: orange; color: orange;
} }
@@ -137,7 +101,7 @@
#memory.warning { #memory.warning {
color: orange; color: orange;
} }
#memory.critical { #memory.critical {
color: red; color: red;
@@ -146,67 +110,31 @@
} }
#mode { #mode {
background: #64727D; background: red;
border-top: 2px solid white; margin-top:2.5px;
/* To compensate for the top border and still have vertical centering */ margin-bottom:2.5px;
padding-bottom: 2px; }
}
#network {
margin-left: 20px;
}
#network.disconnected { #network.disconnected {
color: orange; color: orange;
} }
#pulseaudio {
color: @base07;
margin-right: 8px;
}
#pulseaudio.muted { #pulseaudio.muted {
color: @base07; color: @base07;
margin-right: 8px;
}
#custom-spotify {
color: rgb(102, 220, 105);
}
#temperature {
/* No styles */
} }
#temperature.critical { #temperature.critical {
color: red; color: red;
} }
#tray {
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 { #window {
font-weight: bold; font-weight: bold;
} }
#workspaces button { #workspaces button {
border-top: 2px solid transparent;
/* To compensate for the top border and still have vertical centering */
padding-bottom: 2px;
padding-left: 10px;
padding-right: 10px;
color: #888888; color: #888888;
} padding: 3px;
}
#workspaces button.focused { #workspaces button.focused {
border-color: #4c7899; border-color: #4c7899;
@@ -218,58 +146,23 @@ margin-left: 20px;
border-color: #c9545d; border-color: #c9545d;
color: #c9545d; color: #c9545d;
} }
#custom-power {
font-size: 18px;
padding-left: 10px;
padding-right: 10px;
margin-top: 3px;
}
#backlight {
margin-right:5px;
color: #c4b729;
}
#custom-weather {
/*
no styles
*/
}
#custom-firefox { #custom-firefox {
font-size: 15px;
color: #d08770; color: #d08770;
} }
#custom-files { #custom-files {
color: #ebcb8b; color: #ebcb8b;
font-size: 15px;
} }
#custom-seperator {
margin-left: 3px;
margin-right: 3px;
font-size: 20px;
}
#custom-keyboard-layout {
/*
no styles
*/
}
#custom-launcher {
color: #eceff4;
font-size: 25px;
margin-right: 7px;
padding-left: 15px;
padding-right: 15px;
}
#custom-power { #custom-power {
color: #eceff4; font-size: 15px;
font-size: 17px; margin-right:1px;
padding-left: 10px; padding:0;
padding-right: 10px;
} }
#custom-launcher {
font-size: 20px;
padding:0;
}