From fd6d40687de958751ceaf567f68ffdbe51c67e98 Mon Sep 17 00:00:00 2001 From: thomas Date: Thu, 30 Apr 2026 13:51:27 +0100 Subject: [PATCH] Dot Files --- .gitignore | 9 ++++ waybar/config | 104 +++++++++++++++++++++++++++++++++++++++ waybar/style.css | 123 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 236 insertions(+) create mode 100644 .gitignore create mode 100644 waybar/config create mode 100644 waybar/style.css diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8bd6a44 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# Ignore everything in repository root +/* + +# Files to not ignore +!/.gitignore +!/some_other_files + +# Folder to not ignore +!/waybar/ \ No newline at end of file diff --git a/waybar/config b/waybar/config new file mode 100644 index 0000000..37c063d --- /dev/null +++ b/waybar/config @@ -0,0 +1,104 @@ +{ + "modules-left": ["clock#date", "clock", "custom/launcher"], + "modules-center": [], + "modules-right": ["network", "bluetooth", "pulseaudio", "custom/power"], + + "sway/mode": { + "format": "{}" + }, + "network": { + "format-wifi": "{icon} {essid} ({signalStrength}%)", + "format-ethernet": "Ethernet", + "format-disconnected": "󰅛 Not Connected", + "tooltip-format": "{ipaddr} via {gwaddr}", + "tooltip-format-disconnected": "Disconnected", + "max-length": 50, + "on-click": "orbit toggle top-right", + "on-click-right": "kitty -e nmtui", + "format-icons": { + "wifi": ["󰤯", "󰤟", "󰤢", "󰤥", "󰤨"], + "ethernet": "", + "disconnected": "󰅛" + } + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + "icon-size": 15, + "spacing": 10 + }, + "clock": { + "format": " {:%H:%M}" + }, + "clock#date": { + "format": " {:%A, %B %d, %Y}", + "tooltip-format": "{calendar}", + "calendar": { + "mode" : "year", + "mode-mon-col" : 2, + "weeks-pos" : "right", + "on-scroll" : 1, + "format": { + "months": "{}", + "days": "{}", + "weeks": "W{}", + "weekdays": "{}", + "today": "{}" + } + }, + "actions": { + "on-click-right": "mode" + } + }, + "pulseaudio": { + "format": "{icon} {volume}% {format_source}", + "format-muted": " {format_source}", + "format-bluetooth": "{icon} {volume}% {format_source}", + "format-bluetooth-muted": " {format_source}", + "format-source": " {volume}%", + "format-source-muted": " {volume}%", + "format-icons": { + "default": [ + "", + "", + ""] + }, + "on-click": "pavucontrol" + }, + "bluetooth": { + "format-on": " On", + "format-off": "󰂲 Off", + "format-disabled": "󰂲 Off", + "format-connected": "󰂱 {device_alias}", + "format-connected-battery": "󰂱 {device_alias} 󰥈 {device_battery_percentage}%", + "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected", + "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}", + "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}", + "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%", + "on-click": "blueman-manager", + "on-click-right": "rfkill toggle bluetooth" + }, + "custom/power": { + "format": " ", + "on-click": "~/.config/rofi/powermenu/type-2/powermenu.sh" + }, + "custom/scratchpad-indicator": { + "format-text": "{}hi", + "return-type": "json", + "interval": 3, + "exec": "~/.local/bin/scratchpad-indicator 2> /dev/null", + "exec-if": "exit 0", + "on-click": "swaymsg 'scratchpad show'", + "on-click-right": "swaymsg 'move scratchpad'" + }, + "custom/launcher": { + "format":" ", + "tooltip-format": "Click To Launch Bitwarden", + "on-click": "exec bitwarden-desktop" + } +} \ No newline at end of file diff --git a/waybar/style.css b/waybar/style.css new file mode 100644 index 0000000..c54624a --- /dev/null +++ b/waybar/style.css @@ -0,0 +1,123 @@ +* { + border: none; + font-family: Font Awesome, Roboto, Arial, sans-serif; + font-size: 13px; + color: #ffffff; + border-radius: 20px; +} + +window#waybar { + background: rgba(0, 0, 0, 0); +} +/*-----module groups----*/ +.modules-right { + margin: 2px 10px 0 0; +} +.modules-center { + margin: 2px 0 0 0; +} +.modules-left { + margin: 2px 0 0 5px; +} +/*-----modules indv----*/ +#workspaces button { + padding: 1px 5px; + background-color: transparent; +} +#workspaces button:hover { + box-shadow: inherit; + background-color: rgba(0,153,153,1); +} + +#workspaces button.focused { + background-color: rgba(0,43,51,0.85); +} + +#clock { + padding: 5px 15px; + background-color: rgba(0,43,51,0.85); + border-radius: 20px; + margin: 5px 3px; +} +#battery, +#cpu, +#memory, +#temperature, +#network { + padding: 5px 15px; + background-color: rgba(0,43,51,0.85); + border-radius: 20px; + margin: 5px 3px; +} +#pulseaudio { + padding: 5px 10px 5px 15px; + background-color: rgba(0,43,51,0.85); + border-radius: 20px; + margin: 5px 3px; +} +#bluetooth { + padding: 5px 15px 5px 15px; + background-color: rgba(0,43,51,0.85); + border-radius: 20px; + margin: 5px 3px; +} +#custom-media, +#custom-launcher{ + font-size: 16px; + background-image: url('/home/thomas/Pictures/Icons/bitwarden.svg'); + background-position: center; + background-color: rgba(0,43,51,0.85); + background-repeat: no-repeat; + background-size: 18px 18px; + padding: 5px 8px; + margin: 5px 3px; + min-width: 20px; + min-height: 20px; +} +#tray, +#mode, +#custom-power, +#custom-menu, +#idle_inhibitor { + padding: 5px 15px; + background-color: rgba(0,43,51,0.85); + border-radius: 20px; + margin: 5px 3px; +} +#mode { + color: #cc3436; + font-weight: bold; +} +#custom-power { + background-color: rgba(255, 0, 0, 0.993); + border-radius: 100px; + margin: 6px 4px 5px 3px; + padding: 5px; + padding-left: 10px; +} +/*-----Indicators----*/ +#idle_inhibitor.activated { + color: #2dcc36; +} +#pulseaudio.muted { + color: #cc3436; +} +#battery.charging { + color: #2dcc36; +} +#battery.warning:not(.charging) { + color: #e6e600; +} +#battery.critical:not(.charging) { + color: #cc3436; +} +#temperature.critical { + color: #cc3436; +} +/*-----Colors----*/ +/* + *rgba(0,85,102,1),#005566 --> Indigo(dye) + *rgba(0,43,51,1),#002B33 --> Dark Green + *rgba(0,153,153,1),#009999 --> Persian Green + * + */