diff --git a/waybar/config.jsonc b/waybar/config.jsonc index dac405b..bcb62eb 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -1,177 +1,177 @@ { - "layer": "bottom", // Waybar at top layer - "position": "bottom", // Waybar position (top|bottom|left|right) - // "height": 30, // Waybar height (to be removed for auto height) - "margin": "5 5 5 5", - // "width": 1280, // Waybar width - // Choose the order of the modules - "modules-left": ["sway/workspaces", "sway/mode"], - "modules-center": ["clock", "idle_inhibitor"], - "modules-right": [ - "custom/pacman", - "custom/recorder", - "privacy", - "pulseaudio", - "backlight", - "battery", - "bluetooth", - "network" - ], + "layer": "bottom", // Waybar at top layer + "position": "bottom", // Waybar position (top|bottom|left|right) + // "height": 30, // Waybar height (to be removed for auto height) + "margin": "5 5 5 5", + // "width": 1280, // Waybar width + // Choose the order of the modules + "modules-left": ["sway/workspaces", "sway/mode"], + "modules-center": ["clock", "idle_inhibitor"], + "modules-right": [ + "custom/pacman", + "custom/recorder", + "privacy", + "pulseaudio", + "backlight", + "battery", + "bluetooth", + "network" + ], - //*************************** - //* Modules configuration * - //*************************** + //*************************** + //* Modules configuration * + //*************************** - "sway/workspaces": { - "disable-scroll": true, - "format": "{name}" - }, + "sway/workspaces": { + "disable-scroll": true, + "format": "{name}" + }, - "custom/recorder": { - "format": "", - "return-type": "json", - "interval": 1, - "exec": "echo '{\"class\": \"recording\"}'", - "exec-if": "pgrep wf-recorder" - }, + "custom/recorder": { + "format": "", + "return-type": "json", + "interval": 1, + "exec": "echo '{\"class\": \"recording\"}'", + "exec-if": "pgrep wf-recorder" + }, - "custom/pacman": { - "format": "{} ", - "interval": 3600, // every hour - "exec": "checkupdates | wc -l", // # of updates - "exec-if": "[[ $(checkupdates | wc -l) != 0 ]]", // always run; consider advanced run conditions - "on-click": "alacritty -e 'yay; echo Done - Press enter to exit; read'; pkill -SIGRTMIN+8 waybar", // update system - "signal": 8, - "tooltip": false - }, + "custom/pacman": { + "format": "{} ", + "interval": 3600, // every hour + "exec": "checkupdates | wc -l", // # of updates + "exec-if": "[[ $(checkupdates | wc -l) != 0 ]]", // always run; consider advanced run conditions + "on-click": "alacritty -e 'yay; echo Done - Press enter to exit; read'; pkill -SIGRTMIN+8 waybar", // update system + "signal": 8, + "tooltip": false + }, - "privacy": { - "icon-spacing": 4, - "icon-size": 18, - "transition-duration": 250, - "modules": [ - { - "type": "screenshare", - "tooltip": true, - "tooltip-icon-size": 24 - }, - { - "type": "audio-out", - "tooltip": true, - "tooltip-icon-size": 24 - }, - { - "type": "audio-in", - "tooltip": true, - "tooltip-icon-size": 24 - } - ] - }, + "privacy": { + "icon-spacing": 4, + "icon-size": 18, + "transition-duration": 250, + "modules": [ + { + "type": "screenshare", + "tooltip": true, + "tooltip-icon-size": 24 + }, + { + "type": "audio-out", + "tooltip": true, + "tooltip-icon-size": 24 + }, + { + "type": "audio-in", + "tooltip": true, + "tooltip-icon-size": 24 + } + ] + }, - "sway/mode": { - "format": "{}" - }, + "sway/mode": { + "format": "{}" + }, - "clock": { - "timezone": "Europe/Rome", - "format": "{:%H:%M}", - "format-alt": "{:%Y-%m-%d}", - "tooltip-format": "{calendar}", - "calendar": { - "mode": "year", - "mode-mon-col": 3, - "weeks-pos": "right", - "on-scroll": 1, - "on-click-right": "mode", - "format": { - "months": "{}", - "days": "{}", - "weeks": "W{}", - "weekdays": "{}", - "today": "{}" - } - }, - "actions": { - "on-click-right": "mode", - "on-click-forward": "tz_up", - "on-click-backward": "tz_down", - "on-scroll-up": "shift_up", - "on-scroll-down": "shift_down" - } - }, + "clock": { + "timezone": "Europe/Rome", + "format": "{:%H:%M}", + "format-alt": "{:%Y-%m-%d}", + "tooltip-format": "{calendar}", + "calendar": { + "mode": "year", + "mode-mon-col": 3, + "weeks-pos": "right", + "on-scroll": 1, + "on-click-right": "mode", + "format": { + "months": "{}", + "days": "{}", + "weeks": "W{}", + "weekdays": "{}", + "today": "{}" + } + }, + "actions": { + "on-click-right": "mode", + "on-click-forward": "tz_up", + "on-click-backward": "tz_down", + "on-scroll-up": "shift_up", + "on-scroll-down": "shift_down" + } + }, - "idle_inhibitor": { - "format": "{icon}", - "format-icons": { - "activated": "", - "deactivated": "" - } - }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, - "pulseaudio": { - // "scroll-step": 1, // %, can be a float - "reverse-scrolling": 1, - "format": "{volume}% {icon} {format_source}", - "format-bluetooth": "{icon} {volume}% {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", - "min-length": 13 - }, + "pulseaudio": { + // "scroll-step": 1, // %, can be a float + "reverse-scrolling": 1, + "format": "{volume}% {icon} {format_source}", + "format-bluetooth": "{icon} {volume}% {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", + "min-length": 13 + }, - "backlight": { - "device": "intel_backlight", - "format": "{percent}% {icon}", - "format-icons": ["", "", "", "", "", "", ""], - "min-length": 7 - }, + "backlight": { + "device": "intel_backlight", + "format": "{percent}% {icon}", + "format-icons": ["", "", "", "", "", "", ""], + "min-length": 7 + }, - "battery": { - "states": { - "warning": 30, - "critical": 15 - }, - "format": "{capacity}% {icon}", - "format-charging": "{capacity}% ", - "format-plugged": "{capacity}% ", - "format-alt": "{time} {icon}", - "format-icons": ["", "", "", "", "", "", "", "", "", ""], - "on-update": "$HOME/.config/waybar/scripts/check_battery.sh" - }, + "battery": { + "states": { + "warning": 30, + "critical": 15 + }, + "format": "{capacity}% {icon}", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + "format-icons": ["", "", "", "", "", "", "", "", "", ""], + "on-update": "$HOME/.config/waybar/scripts/check_battery.sh" + }, - "bluetooth": { - "format": " {status}", - "format-connected": " {device_alias}", - "format-connected-battery": " {device_alias} {device_battery_percentage}%", - // "format-device-preference": [ "device1", "device2" ], // preference list deciding the displayed device - "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" - }, + "bluetooth": { + "format": " {status}", + "format-connected": " {device_alias}", + "format-connected-battery": " {device_alias} {device_battery_percentage}%", + // "format-device-preference": [ "device1", "device2" ], // preference list deciding the displayed device + "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" + }, - "network": { - "format": "{ifname}", - "format-wifi": "{essid} ", - "format-ethernet": "{ipaddr}/{cidr} 󰊗", - // "format-disconnected": "", //An empty format will hide the module. - "tooltip-format": "{ifname} via {gwaddr} 󰊗", - "tooltip-format-wifi": "{essid} ", - "tooltip-format-ethernet": "{ifname} ", - "tooltip-format-disconnected": "Disconnected", - "max-length": 50, - "on-click": "alacritty -e 'nmtui'" - } + "network": { + "format": "{ifname}", + "format-wifi": "{essid} ", + "format-ethernet": "{ipaddr}/{cidr} 󰊗", + // "format-disconnected": "", //An empty format will hide the module. + "tooltip-format": "{ifname} via {gwaddr} 󰊗", + "tooltip-format-wifi": "{essid} ", + "tooltip-format-ethernet": "{ifname} ", + "tooltip-format-disconnected": "Disconnected", + "max-length": 50, + "on-click": "alacritty -e 'nmtui'" + } } diff --git a/waybar/style.css b/waybar/style.css index 32e137b..b220399 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -1,46 +1,46 @@ * { - border: none; - border-radius: 0; - /* `otf-font-awesome` is required to be installed for icons */ - font-family: Liberation Mono; - min-height: 20px; + border: none; + border-radius: 0; + /* `otf-font-awesome` is required to be installed for icons */ + font-family: Liberation Mono; + min-height: 20px; } window#waybar { - background: transparent; + background: transparent; } window#waybar.hidden { - opacity: 0.2; + opacity: 0.2; } #workspaces { - border-radius: 10px; - transition: none; - background: #383c4a; - margin-right: 8px; + border-radius: 10px; + transition: none; + background: #383c4a; + margin-right: 8px; } #workspaces button { - transition: none; - color: #7c818c; - background: transparent; - padding: 5px; - font-size: 18px; + transition: none; + color: #7c818c; + background: transparent; + padding: 5px; + font-size: 18px; } /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ #workspaces button:hover { - transition: none; - box-shadow: inherit; - text-shadow: inherit; - border-radius: inherit; - color: #383c4a; - background: #7c818c; + transition: none; + box-shadow: inherit; + text-shadow: inherit; + border-radius: inherit; + color: #383c4a; + background: #7c818c; } #workspaces button.focused { - color: white; + color: white; } #custom-pacman, @@ -52,110 +52,114 @@ window#waybar.hidden { #bluetooth, #network, #backlight { - padding-left: 8px; - padding-right: 8px; - border-radius: 10px; - background: #383c4a; + padding-left: 8px; + padding-right: 8px; + border-radius: 10px; + background: #383c4a; } #custom-pacman { - transition: none; - color: #ffffff; + transition: none; + color: #ffffff; } #bluetooth { - margin-right: 8px; + margin-right: 8px; } -#bluetooth.connected, #bluetooth.on { - background-color: #26a65b; +#bluetooth.connected, +#bluetooth.on { + background-color: #26a65b; } -#bluetooth.disabled, #bluetooth.off { - background-color: #f53c3c; +#bluetooth.disabled, +#bluetooth.off { + background-color: #f53c3c; } #mode { - transition: none; - color: #ffffff; + transition: none; + color: #ffffff; } #clock { - transition: none; - color: #ffffff; - margin-right: 8px; + transition: none; + color: #ffffff; + margin-right: 8px; } #idle_inhibitor { - transition: none; - color: #ffffff; + transition: none; + color: #ffffff; } #idle_inhibitor.activated { - background-color: #26a65b; + background-color: #26a65b; } #pulseaudio { - margin-right: 8px; - transition: none; - color: #ffffff; + margin-right: 8px; + transition: none; + color: #ffffff; } #pulseaudio.muted, #pulseaudio.source-muted { - background-color: #90b1b1; - color: #2a5c45; + background-color: #90b1b1; + color: #2a5c45; } #backlight { - margin-right: 8px; - transition: none; - color: #ffffff; + margin-right: 8px; + transition: none; + color: #ffffff; } #battery { - margin-right: 8px; - transition: none; - color: #ffffff; + margin-right: 8px; + transition: none; + color: #ffffff; } #battery.charging { - color: #ffffff; - background-color: #26a65b; + color: #ffffff; + background-color: #26a65b; } #battery.warning:not(.charging) { - background-color: #ffbe61; - color: black; + background-color: #ffbe61; + color: black; } #battery.critical:not(.charging) { - background-color: #f53c3c; - color: #ffffff; - animation-name: blink; - animation-duration: 0.5s; - animation-timing-function: linear; - animation-iteration-count: infinite; - animation-direction: alternate; + background-color: #f53c3c; + color: #ffffff; + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; } #network { - transition: none; - color: #ffffff; - background: #383c4a; + transition: none; + color: #ffffff; + background: #383c4a; } -#network.wifi, #network.ethener { - background-color: #26a65b; +#network.wifi, +#network.ethener { + background-color: #26a65b; } -#network.disabled, #network.disconnected { - background-color: #f53c3c; +#network.disabled, +#network.disconnected { + background-color: #f53c3c; } @keyframes blink { - to { - background-color: #ffffff; - color: #000000; - } + to { + background-color: #ffffff; + color: #000000; + } } diff --git a/wofi/style.css b/wofi/style.css index 82718e2..1f5e3b9 100644 --- a/wofi/style.css +++ b/wofi/style.css @@ -1,17 +1,18 @@ #window { - border-radius: 10px; - background: #383c4a; + border-radius: 10px; + background: #383c4a; } #outer-box { - padding: 5px; + padding: 5px; } -#input, #entry { - border-radius: 10px; - margin-bottom: 5px; +#input, +#entry { + border-radius: 10px; + margin-bottom: 5px; } #img { - padding-right: 10px; -} \ No newline at end of file + padding-right: 10px; +}