Initial Commit
This commit is contained in:
150
.config/sway/waybar/config.ini
Executable file
150
.config/sway/waybar/config.ini
Executable file
@@ -0,0 +1,150 @@
|
||||
// https://github.com/Alexays/Waybar/wiki
|
||||
{
|
||||
"layer": "bottom", // Waybar at top layer
|
||||
"position": "top", // Waybar position (top|bottom|left|right)
|
||||
"height": 24,
|
||||
//"width": 1350, // Waybar width
|
||||
// Choose the order of the modules idle_inhibitor
|
||||
"modules-left": ["custom/launcher","sway/workspaces", "sway/mode", "sway/window"],
|
||||
"modules-right": ["backlight", "cpu", "memory", "battery", "pulseaudio", "idle_inhibitor", "clock","tray", "custom/keybindings", "custom/archlinuxlogout"],
|
||||
|
||||
// Modules configuration
|
||||
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": false,
|
||||
//"all-outputs": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"3": "3",
|
||||
"4": "4",
|
||||
"5": "5",
|
||||
"6": "6",
|
||||
"7": "7",
|
||||
"8": "8",
|
||||
"9": "9",
|
||||
"10": "10",
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"sway/window": {
|
||||
"format": "{}"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 14,
|
||||
"spacing": 5
|
||||
},
|
||||
"clock": {
|
||||
"tooltip-format": "{:%A %B %d %Y | %H:%M}",
|
||||
"format": " {:%a %d %b %I:%M %p}", //12 hour format
|
||||
//"format": " {:%a %d %b %H:%M}", //24 hour format
|
||||
"format-alt": " {:%d/%m/%Y %H:%M:%S}",
|
||||
//"timezones": [ "$TZ" ],
|
||||
//"max-length": 200
|
||||
"interval": 1
|
||||
},
|
||||
"cpu": {
|
||||
"format": "cpu: {usage: >3}%",
|
||||
"on-click": "alacritty -e bashtop"
|
||||
},
|
||||
"memory": {
|
||||
"format": "mem: {: >3}%",
|
||||
"on-click": "alacritty -e bashtop"
|
||||
},
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C ",
|
||||
"format": "{temperatureC}°C "
|
||||
},
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{icon} {percent: >3}%",
|
||||
"format-icons": ["", ""],
|
||||
"on-scroll-down": "brightnessctl -c backlight set 5%-",
|
||||
"on-scroll-up": "brightnessctl -c backlight set +5%"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{icon} {capacity: >3}%",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
//"format-icons": ["", "", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2s0", // (Optional) To force the use of this interface
|
||||
"format": "⚠ Disabled",
|
||||
"format-wifi": " {essid}",
|
||||
"format-ethernet": " {ifname}: {ipaddr}/{cidr}",
|
||||
"format-disconnected": "⚠ Disconnected",
|
||||
"on-click": "alacritty -e nmtui"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"scroll-step": 5,
|
||||
"format": "{icon} {volume: >3}%",
|
||||
"format-bluetooth": "{icon} {volume: >3}%",
|
||||
"format-muted":" muted",
|
||||
"format-icons": {
|
||||
"headphones": "",
|
||||
"handsfree": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"custom/pacman": {
|
||||
"format": " {}",
|
||||
"interval": 7200, // every two hours
|
||||
"exec": "i=$(checkupdates); echo \"$i\" |wc -l; echo \"$i\" |column -t |tr '\n' '\r'", // # of updates and tooltip details
|
||||
"exec-if": "exit 0", // always run; consider advanced run conditions
|
||||
"on-click": "alacritty -e sudo pacman -Syu", // update system
|
||||
"signal": 8
|
||||
},
|
||||
"custom/power": {
|
||||
"format":" ⏻ ",
|
||||
"on-click": "nwg-bar",
|
||||
"tooltip": false,
|
||||
},
|
||||
"custom/archlinuxlogout": {
|
||||
"format":" ⏻ ",
|
||||
"on-click": "archlinux-logout",
|
||||
"tooltip": false,
|
||||
},
|
||||
"custom/keyboard-layout": {
|
||||
"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": 30,
|
||||
"format": " {}", // Icon: keyboard
|
||||
// Signal sent by Sway key binding (~/.config/sway/key-bindings)
|
||||
"signal": 1, // SIGHUP
|
||||
"tooltip": false,
|
||||
"on-click": "~/.config/waybar/scripts/keyhint",
|
||||
},
|
||||
"custom/keybindings": {
|
||||
"format":" ",
|
||||
"tooltip": false,
|
||||
"on-click": "~/.config/sway/waybar/scripts/keyhint",
|
||||
},
|
||||
"custom/launcher": {
|
||||
"format":" ",
|
||||
"on-click": "exec nwg-drawer -c 7 -is 70 -spacing 23",
|
||||
"tooltip": false,
|
||||
},
|
||||
}
|
||||
3
.config/sway/waybar/scripts/check_updates
Executable file
3
.config/sway/waybar/scripts/check_updates
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
i="$(checkupdates)"
|
||||
printf "%b%b" "$i" "${i:+\n}" |wc -l; echo "$i" |column -t #|tr '\n' '\r'
|
||||
2
.config/sway/waybar/scripts/keyhint
Executable file
2
.config/sway/waybar/scripts/keyhint
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
kitty -e micro ~/.config/sway/cheatsheet.md
|
||||
195
.config/sway/waybar/style.css
Normal file
195
.config/sway/waybar/style.css
Normal file
@@ -0,0 +1,195 @@
|
||||
/* =============================================================================
|
||||
*
|
||||
* Waybar configuration
|
||||
*
|
||||
* Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration
|
||||
*
|
||||
* =========================================================================== */
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Keyframes
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
/*
|
||||
Polar Night
|
||||
nord0 #2e3440
|
||||
nord1 #3b4252
|
||||
nord2 #434c5e
|
||||
nord3 #4c566a
|
||||
Snow Storm
|
||||
nord4 #d8dee9
|
||||
nord5 #e5e9f0
|
||||
nord6 #eceff4
|
||||
Frost
|
||||
nord7 #8fbcbb
|
||||
nord8 #88c0d0
|
||||
nord9 #81a1c1
|
||||
nord10 #5e81ac
|
||||
Aurora
|
||||
nord11 #bf616a
|
||||
nord12 #d08770
|
||||
nord13 #ebcb8b
|
||||
nord14 #a3be8c
|
||||
nord15 #b48ead
|
||||
*/
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Base styles
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
/* Reset all styles */
|
||||
|
||||
* {
|
||||
color: #eceff4;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
padding: 0 0;
|
||||
font-family:Noto Sans;
|
||||
font-size: 12px;
|
||||
margin-right: 5px;
|
||||
margin-left: 5px;
|
||||
padding-bottom:3px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
/* background:#2e3440;*/
|
||||
background:rgba(33, 33, 33, 0.8);
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 2px 0px;
|
||||
border-bottom: 2px;
|
||||
color: #eceff4;
|
||||
border-color: #d8dee9;
|
||||
border-style: solid;
|
||||
margin-top:2px;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
border-color: #81a1c1;
|
||||
}
|
||||
|
||||
#mode {
|
||||
color: #ebcb8b;
|
||||
}
|
||||
|
||||
#clock, #battery, #cpu, #memory,#idle_inhibitor, #temperature,#custom-keyboard-layout, #backlight, #network, #pulseaudio, #mode, #tray, #window,#custom-launcher,#custom-power,#custom-pacman {
|
||||
padding: 0 3px;
|
||||
border-bottom: 2px;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Module styles
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#clock {
|
||||
color:#a3be8c;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
color: #ebcb8b;
|
||||
}
|
||||
|
||||
#battery {
|
||||
color: #d8dee9;
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
color: #81a1c1;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
color: #4c566a;
|
||||
background-color: #eceff4;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background: #bf616a;
|
||||
color: #eceff4;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
color:#a3be8c ;
|
||||
}
|
||||
|
||||
#memory {
|
||||
color: #d3869b;
|
||||
}
|
||||
|
||||
#network.disabled {
|
||||
color:#bf616a;
|
||||
}
|
||||
|
||||
#network{
|
||||
color:#a3be8c;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
color: #bf616a;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
color: #b48ead;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
color: #3b4252;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
color: #8fbcbb;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
color: #bf616a;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
color: #ebcb8b;
|
||||
}
|
||||
|
||||
#tray {
|
||||
}
|
||||
|
||||
#custom-launcher,#custom-power,#custom-archlinuxlogout{
|
||||
border-style: hidden;
|
||||
margin-top:2px;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
#custom-archlinuxlogout{
|
||||
border-style: hidden;
|
||||
margin-top:2px;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
#custom-keybindings{
|
||||
border-style: hidden;
|
||||
margin-top:2px;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
#window{
|
||||
border-style: hidden;
|
||||
margin-top:1px;
|
||||
}
|
||||
#mode{
|
||||
margin-bottom:3px;
|
||||
}
|
||||
|
||||
#custom-keyboard-layout{
|
||||
color:#d08770;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user