├── README.md ├── waybar_swaydwm.png ├── style_sway.css └── config_sway /README.md: -------------------------------------------------------------------------------- 1 | # waybar_conf 2 | A repo for waybar configs 3 | -------------------------------------------------------------------------------- /waybar_swaydwm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chaibronz/waybar_conf/HEAD/waybar_swaydwm.png -------------------------------------------------------------------------------- /style_sway.css: -------------------------------------------------------------------------------- 1 | * { 2 | font-family: "UbuntuMono Nerd Font"; 3 | font-size: 16px; 4 | } 5 | 6 | 7 | window#waybar { 8 | background-color: #225877; 9 | color: #ffffff; 10 | } 11 | 12 | 13 | .modules-left { 14 | background-color: #323232; 15 | padding: 0px 0px 0px 0px; 16 | } 17 | 18 | 19 | .modules-right { 20 | background-color: #323232; 21 | padding: 0px 5px 0px 0px; 22 | } 23 | 24 | 25 | #custom-scratch { 26 | background-color: #323232; 27 | color: #b8b8b8; 28 | padding: 0px 9px 0px 9px; 29 | } 30 | 31 | 32 | #workspaces { 33 | } 34 | 35 | 36 | #workspaces button { 37 | padding: 0px 11px 0px 11px; 38 | min-width: 1px; 39 | color: #888888; 40 | } 41 | 42 | 43 | #workspaces button.focused { 44 | padding: 0px 11px 0px 11px; 45 | background-color: #285577; 46 | color: #ffffff; 47 | } 48 | 49 | 50 | #mode { 51 | background-color: #900000; 52 | color: #ffffff; 53 | padding: 0px 5px 0px 5px; 54 | border: 1px solid #2f343a; 55 | } 56 | 57 | 58 | #window { 59 | color: #ffffff; 60 | background-color: #285577; 61 | padding: 0px 10px 0px 10px; 62 | } 63 | 64 | 65 | window#waybar.empty #window { 66 | background-color: transparent; 67 | color: transparent; 68 | } 69 | 70 | 71 | window#waybar.empty { 72 | background-color: #323232; 73 | } 74 | 75 | 76 | #network, #temperature, #backlight, #pulseudio, #battery { 77 | padding: 0px 15px 0px 15px; 78 | } 79 | 80 | 81 | #clock { 82 | margin: 0px 15px 0px 15px; 83 | } 84 | 85 | 86 | #tray{ 87 | padding: 0px 8px 0px 5px; 88 | margin: 0px 5px 0px 5px; 89 | } 90 | 91 | 92 | #battery.critical { 93 | color: #ff5555; 94 | } 95 | 96 | 97 | #network.disconnected { 98 | color: #ff5555; 99 | } 100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /config_sway: -------------------------------------------------------------------------------- 1 | { 2 | "layer": "top", 3 | "position": "top", 4 | "height": 27, 5 | 6 | 7 | "modules-left": ["sway/workspaces", "custom/scratch", "sway/mode", "sway/window"], 8 | "modules-center": [], 9 | "modules-right": ["network", "temperature", "backlight", "pulseaudio", "battery", "clock", "tray"], 10 | 11 | 12 | "sway/workspaces": { 13 | "disable-scroll": true, 14 | "disable-markup": true, 15 | "format": "{index}" 16 | }, 17 | 18 | 19 | "sway/window": { 20 | "format": "{}", 21 | "max-length": 150 22 | }, 23 | 24 | 25 | "custom/scratch": { 26 | "interval": 3, 27 | "exec": "swaymsg -t get_tree | jq 'recurse(.nodes[]) | first(select(.name==\"__i3_scratch\")) | .floating_nodes | length | select(. >= 0)'", 28 | "format": "^{}", 29 | "on-click": "swaymsg 'scratchpad show'", 30 | "on-click-right": "swaymsg 'move scratchpad'" 31 | }, 32 | 33 | 34 | "tray": { 35 | "icon-size": 18, 36 | "spacing": 15 37 | }, 38 | 39 | 40 | "clock": { 41 | "format": "{:%a %b %e %R}", 42 | "interval": 30 43 | }, 44 | 45 | 46 | "battery": { 47 | "bat": "BAT0", 48 | "states": { 49 | "full": 99, 50 | "good": 98, 51 | "normal": 98, 52 | "warning": 20, 53 | "critical": 20 54 | }, 55 | 56 | "format": "{icon} {capacity}%", 57 | "format-good": "{icon} {capacity}%", 58 | "format-full": " {capacity}%", 59 | "format-icons": ["", "", "", "", ""], 60 | "interval": 30 61 | }, 62 | 63 | 64 | "network": { 65 | "interface": "wlp4s0", 66 | "format-wifi": " WiFi-On", 67 | "format-disconnected": "睊 Disconnected", 68 | "interval": 60 69 | }, 70 | 71 | 72 | "temperature": { 73 | "thermal-zone": 0, 74 | "format": "{icon} {temperatureC}°C", 75 | "format-icons":[""], 76 | "interval": 30 77 | }, 78 | 79 | 80 | "backlight": { 81 | "device": "intel_backlight", 82 | "format": "{icon} {percent}% ", 83 | "format-icons": ["","","",""], 84 | "interval": 60 85 | }, 86 | 87 | 88 | "pulseaudio": { 89 | "format": "{icon} {volume}% ", 90 | "format-bluetooth": " {volume}% ", 91 | "format-muted":"婢 Mute ", 92 | "interval": 60, 93 | 94 | "format-icons": { 95 | "default": [""] 96 | }, 97 | 98 | "on-click": "blueman-manager" 99 | 100 | 101 | } 102 | 103 | } 104 | --------------------------------------------------------------------------------