diff options
Diffstat (limited to 'hypr/.config/hypr/waybar-alt-1')
| -rwxr-xr-x | hypr/.config/hypr/waybar-alt-1/CREDITS | 5 | ||||
| -rwxr-xr-x | hypr/.config/hypr/waybar-alt-1/colors.css | 19 | ||||
| -rwxr-xr-x | hypr/.config/hypr/waybar-alt-1/config-background.ini | 264 | ||||
| -rwxr-xr-x | hypr/.config/hypr/waybar-alt-1/config.ini | 264 | ||||
| -rwxr-xr-x | hypr/.config/hypr/waybar-alt-1/machiatto.css | 37 | ||||
| -rwxr-xr-x | hypr/.config/hypr/waybar-alt-1/modules | 293 | ||||
| -rwxr-xr-x | hypr/.config/hypr/waybar-alt-1/scripts/swap.sh | 35 | ||||
| -rwxr-xr-x | hypr/.config/hypr/waybar-alt-1/spotify | 15 | ||||
| -rwxr-xr-x | hypr/.config/hypr/waybar-alt-1/style-background.css | 444 | ||||
| -rwxr-xr-x | hypr/.config/hypr/waybar-alt-1/style.css | 430 | ||||
| -rwxr-xr-x | hypr/.config/hypr/waybar-alt-1/style_origin.css | 306 |
11 files changed, 2112 insertions, 0 deletions
diff --git a/hypr/.config/hypr/waybar-alt-1/CREDITS b/hypr/.config/hypr/waybar-alt-1/CREDITS new file mode 100755 index 0000000..c6468d6 --- /dev/null +++ b/hypr/.config/hypr/waybar-alt-1/CREDITS @@ -0,0 +1,5 @@ +code is coming from + +https://github.com/yurihikari/garuda-sway-config + +waybar-alt-1
\ No newline at end of file diff --git a/hypr/.config/hypr/waybar-alt-1/colors.css b/hypr/.config/hypr/waybar-alt-1/colors.css new file mode 100755 index 0000000..34d90cd --- /dev/null +++ b/hypr/.config/hypr/waybar-alt-1/colors.css @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2020-2023 Aditya Shakya <adi1090x@gmail.com> +*/ + +/** ********** Colors ********** **/ +@define-color background #20262C; +@define-color background-alt1 #343A40; +@define-color background-alt2 #3E444A; +@define-color foreground #f1fcf9; +@define-color black #000000; +@define-color red #DB86BA; +@define-color green #74DD91; +@define-color yellow #E49186; +@define-color blue #75DBE1; +@define-color magenta #B4A1DB; +@define-color cyan #9EE9EA; +@define-color pink #D04E9D; +@define-color orange #DB695B; +@define-color white #FFFFFF; diff --git a/hypr/.config/hypr/waybar-alt-1/config-background.ini b/hypr/.config/hypr/waybar-alt-1/config-background.ini new file mode 100755 index 0000000..b49a19e --- /dev/null +++ b/hypr/.config/hypr/waybar-alt-1/config-background.ini @@ -0,0 +1,264 @@ +// Edited for Garuda Linux by yurihikari +{ + "layer": "top", // Waybar at top layer + "position": "top", // Waybar position (top|bottom|left|right) + "height": 30, + "margin": "0 0 0 0", + //"width": 1350, // Waybar width + // Choose the order of the modules idle_inhibitor + "modules-left": [ + "custom/launcher", + "hyprland/workspaces", + "custom/swap", + "custom/changewaybar", + "tray", + ], + "modules-center": ["clock"], + "modules-right": [ + "backlight", + "pulseaudio", + "hyprland/language", + "temperature", + "memory", + "battery", + "network", + "custom/power" + ], + + // Modules configuration + + "hyprland/workspaces": { + "format": "{icon}", + "on-click": "activate", + "all-outputs": true, + "format-icons": { + "1": "1", + "2": "2", + "3": "3", + "4": "4", + "5": "5", + "6": "6", + "7": "7", + "8": "8", + "9": "9", + "10": "10", + "urgent": "", + "default": "" + }, + "sort-by-number": true + }, + "mpd": { + "tooltip": true, + "tooltip-format": "{artist} - {album} - {title} - Total Time : {totalTime:%M:%S}", + "format": " {elapsedTime:%M:%S}", + "format-disconnected": "⚠ Disconnected", + "format-stopped": " Not Playing", + "on-click": "mpc toggle", + "state-icons": { + "playing": "", + "paused": "" + } + }, + "mpd#2": { + "format": "", + "format-disconnected": "", + "format-paused": "", + "format-stopped": "", + // Commands to execute on events + "on-click": "mpc -q pause && mpc -q prev && mpc -q start" + }, + "mpd#3": { + "interval": 1, + "format": "{stateIcon}", + "format-disconnected": "", + "format-paused": "{stateIcon}", + "format-stopped": "", + "state-icons": { + "paused": "", + "playing": "" + }, + // Commands to execute on events + "on-click": "mpc toggle" + }, + "mpd#4": { + "format": "", + "format-disconnected": "", + "format-paused": "", + "format-stopped": "", + // Commands to execute on events + "on-click": "mpc -q pause && mpc -q next && mpc -q start" + }, + "custom/swap": { + "on-click": "~/.config/hypr/waybar/scripts/swap.sh", + "tooltip": true, + "tooltip-format": "Swap between waybar configs", + "format": "BG" + }, + "custom/mpd": { + "format": " {title} - {artist}", + "interval": 5, + "exec": "mpc current --format='\"title\":\"%title%\",\"artist\":\"%artist%\"'" + }, + "custom/cava-internal": { + "exec": "sh ~/.config/waybar/scripts/Cava.sh", + "format": "{}", + "on-click": "sh ~/.config/hypr/scripts/statusbar &", + "tooltip": false, + "layer": "below", + "output": "all" + }, + "sway/mode": { + "format": "<span style=\"italic\">{}</span>" + }, + "sway/window": { + "format": "~ {app_id}" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + "icon-size": 14, + "spacing": 5 + }, + "clock": { + "interval": 60, + "align": 0, + "rotate": 0, + "tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>", + "format": "{:%d %b, %H:%M}", + "format-alt": " {:%a %b %d, %G}", + "on-click-right": "~/.config/hypr/scripts/changeWallpaper", + }, + "cpu": { + // "interval": 5, + // "format": " {usage}%", + "interval": 1, + "format": "{icon0}{icon1}{icon2}{icon3} {usage:>2}% ", + "format-icons": [ + "▁", + "▂", + "▃", + "▄", + "▅", + "▆", + "▇", + "█" + ], + }, + "cpu": { + "format": " {usage: >3}%", + "on-click": "alacritty -e htop" + }, + "memory": { + "format": " {: >3}%", + "on-click": "alacritty -e htop" + }, + "temperature": { + // "thermal-zone": 2, + "hwmon-path": "/sys/class/hwmon/hwmon1/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-down": "~/.config/hypr/scripts/brightness --dec", + // "on-scroll-up": "brightnessctl -c backlight set +5%" + "on-scroll-up": "~/.config/hypr/scripts/brightness --inc" + }, + "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-ethernet": " Wired", + "format-disconnected": "⚠ Disconnected", + // "on-click": "alacritty -e nmtui" + "on-click": "nm-connection-editor" + }, + "pulseaudio": { + /* "format": "{icon} {volume}% {format_source}", */ + "format": "{icon} {volume}", + "format-muted": " Mute", + "format-bluetooth": " {volume}% {format_source}", + "format-bluetooth-muted": " Mute", + "format-source": " {volume}", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": [ + "", + "", + "" + ] + }, + "scroll-step": 5.0, + "on-click": "pamixer -t", + "on-click-right": "pavucontrol", + "on-scroll-up": "~/.config/hypr/scripts/volume --inc", + "on-scroll-down": "~/.config/hypr/scripts/volume --dec", + "smooth-scrolling-threshold": 1, + }, + "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": "archlinux-logout", + "tooltip": false + }, + "custom/keyboard-layout": { + "exec": "~/.config/hypr/waybar/scripts/getInputLayout.sh", + // Interval set only as a fallback, as the value is updated by signal + "interval": 1, + "format": " {}", // Icon: keyboard + // Signal sent by Sway key binding (~/.config/sway/key-bindings) + "signal": 1, // SIGHUP + "tooltip": false, + "on-click": "~/.config/waybar/scripts/keyhint.sh" + }, + "hyprland/language": { + "format": " {}" + }, + "custom/launcher": { + "format": "", + //"format": " ", + "on-click": "~/.config/hypr/scripts/fullmenu", + "tooltip": false + }, + "custom/changewaybar": { + "on-click": "~/.bin/change-waybar-hyprland", + "tooltip": true, + "tooltip-format": "Swap between waybar configs", + "format": "CW " + }, +} diff --git a/hypr/.config/hypr/waybar-alt-1/config.ini b/hypr/.config/hypr/waybar-alt-1/config.ini new file mode 100755 index 0000000..b49a19e --- /dev/null +++ b/hypr/.config/hypr/waybar-alt-1/config.ini @@ -0,0 +1,264 @@ +// Edited for Garuda Linux by yurihikari +{ + "layer": "top", // Waybar at top layer + "position": "top", // Waybar position (top|bottom|left|right) + "height": 30, + "margin": "0 0 0 0", + //"width": 1350, // Waybar width + // Choose the order of the modules idle_inhibitor + "modules-left": [ + "custom/launcher", + "hyprland/workspaces", + "custom/swap", + "custom/changewaybar", + "tray", + ], + "modules-center": ["clock"], + "modules-right": [ + "backlight", + "pulseaudio", + "hyprland/language", + "temperature", + "memory", + "battery", + "network", + "custom/power" + ], + + // Modules configuration + + "hyprland/workspaces": { + "format": "{icon}", + "on-click": "activate", + "all-outputs": true, + "format-icons": { + "1": "1", + "2": "2", + "3": "3", + "4": "4", + "5": "5", + "6": "6", + "7": "7", + "8": "8", + "9": "9", + "10": "10", + "urgent": "", + "default": "" + }, + "sort-by-number": true + }, + "mpd": { + "tooltip": true, + "tooltip-format": "{artist} - {album} - {title} - Total Time : {totalTime:%M:%S}", + "format": " {elapsedTime:%M:%S}", + "format-disconnected": "⚠ Disconnected", + "format-stopped": " Not Playing", + "on-click": "mpc toggle", + "state-icons": { + "playing": "", + "paused": "" + } + }, + "mpd#2": { + "format": "", + "format-disconnected": "", + "format-paused": "", + "format-stopped": "", + // Commands to execute on events + "on-click": "mpc -q pause && mpc -q prev && mpc -q start" + }, + "mpd#3": { + "interval": 1, + "format": "{stateIcon}", + "format-disconnected": "", + "format-paused": "{stateIcon}", + "format-stopped": "", + "state-icons": { + "paused": "", + "playing": "" + }, + // Commands to execute on events + "on-click": "mpc toggle" + }, + "mpd#4": { + "format": "", + "format-disconnected": "", + "format-paused": "", + "format-stopped": "", + // Commands to execute on events + "on-click": "mpc -q pause && mpc -q next && mpc -q start" + }, + "custom/swap": { + "on-click": "~/.config/hypr/waybar/scripts/swap.sh", + "tooltip": true, + "tooltip-format": "Swap between waybar configs", + "format": "BG" + }, + "custom/mpd": { + "format": " {title} - {artist}", + "interval": 5, + "exec": "mpc current --format='\"title\":\"%title%\",\"artist\":\"%artist%\"'" + }, + "custom/cava-internal": { + "exec": "sh ~/.config/waybar/scripts/Cava.sh", + "format": "{}", + "on-click": "sh ~/.config/hypr/scripts/statusbar &", + "tooltip": false, + "layer": "below", + "output": "all" + }, + "sway/mode": { + "format": "<span style=\"italic\">{}</span>" + }, + "sway/window": { + "format": "~ {app_id}" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + "icon-size": 14, + "spacing": 5 + }, + "clock": { + "interval": 60, + "align": 0, + "rotate": 0, + "tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>", + "format": "{:%d %b, %H:%M}", + "format-alt": " {:%a %b %d, %G}", + "on-click-right": "~/.config/hypr/scripts/changeWallpaper", + }, + "cpu": { + // "interval": 5, + // "format": " {usage}%", + "interval": 1, + "format": "{icon0}{icon1}{icon2}{icon3} {usage:>2}% ", + "format-icons": [ + "▁", + "▂", + "▃", + "▄", + "▅", + "▆", + "▇", + "█" + ], + }, + "cpu": { + "format": " {usage: >3}%", + "on-click": "alacritty -e htop" + }, + "memory": { + "format": " {: >3}%", + "on-click": "alacritty -e htop" + }, + "temperature": { + // "thermal-zone": 2, + "hwmon-path": "/sys/class/hwmon/hwmon1/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-down": "~/.config/hypr/scripts/brightness --dec", + // "on-scroll-up": "brightnessctl -c backlight set +5%" + "on-scroll-up": "~/.config/hypr/scripts/brightness --inc" + }, + "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-ethernet": " Wired", + "format-disconnected": "⚠ Disconnected", + // "on-click": "alacritty -e nmtui" + "on-click": "nm-connection-editor" + }, + "pulseaudio": { + /* "format": "{icon} {volume}% {format_source}", */ + "format": "{icon} {volume}", + "format-muted": " Mute", + "format-bluetooth": " {volume}% {format_source}", + "format-bluetooth-muted": " Mute", + "format-source": " {volume}", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": [ + "", + "", + "" + ] + }, + "scroll-step": 5.0, + "on-click": "pamixer -t", + "on-click-right": "pavucontrol", + "on-scroll-up": "~/.config/hypr/scripts/volume --inc", + "on-scroll-down": "~/.config/hypr/scripts/volume --dec", + "smooth-scrolling-threshold": 1, + }, + "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": "archlinux-logout", + "tooltip": false + }, + "custom/keyboard-layout": { + "exec": "~/.config/hypr/waybar/scripts/getInputLayout.sh", + // Interval set only as a fallback, as the value is updated by signal + "interval": 1, + "format": " {}", // Icon: keyboard + // Signal sent by Sway key binding (~/.config/sway/key-bindings) + "signal": 1, // SIGHUP + "tooltip": false, + "on-click": "~/.config/waybar/scripts/keyhint.sh" + }, + "hyprland/language": { + "format": " {}" + }, + "custom/launcher": { + "format": "", + //"format": " ", + "on-click": "~/.config/hypr/scripts/fullmenu", + "tooltip": false + }, + "custom/changewaybar": { + "on-click": "~/.bin/change-waybar-hyprland", + "tooltip": true, + "tooltip-format": "Swap between waybar configs", + "format": "CW " + }, +} diff --git a/hypr/.config/hypr/waybar-alt-1/machiatto.css b/hypr/.config/hypr/waybar-alt-1/machiatto.css new file mode 100755 index 0000000..6880473 --- /dev/null +++ b/hypr/.config/hypr/waybar-alt-1/machiatto.css @@ -0,0 +1,37 @@ +/* +* +* Catppuccin Macchiato palette +* Maintainer: rubyowo +* +*/ + +@define-color base #24273a; +@define-color mantle #1e2030; +@define-color crust #181926; + +@define-color text #cad3f5; +@define-color subtext0 #a5adcb; +@define-color subtext1 #b8c0e0; + +@define-color surface0 #363a4f; +@define-color surface1 #494d64; +@define-color surface2 #5b6078; + +@define-color overlay0 #6e738d; +@define-color overlay1 #8087a2; +@define-color overlay2 #939ab7; + +@define-color blue #8aadf4; +@define-color lavender #b7bdf8; +@define-color sapphire #7dc4e4; +@define-color sky #91d7e3; +@define-color teal #8bd5ca; +@define-color green #a6da95; +@define-color yellow #eed49f; +@define-color peach #f5a97f; +@define-color maroon #ee99a0; +@define-color red #ed8796; +@define-color mauve #c6a0f6; +@define-color pink #f5bde6; +@define-color flamingo #f0c6c6; +@define-color rosewater #f4dbd6; diff --git a/hypr/.config/hypr/waybar-alt-1/modules b/hypr/.config/hypr/waybar-alt-1/modules new file mode 100755 index 0000000..4ff54e2 --- /dev/null +++ b/hypr/.config/hypr/waybar-alt-1/modules @@ -0,0 +1,293 @@ +// Copyright (C) 2020-2023 Aditya Shakya <adi1090x@gmail.com> +// +// Waybar modules configuration +{ + // waybar-backlight + "backlight": { + "interval": 2, + //"device": "amdgpu_bl0", + "format": "{icon}", + "format-icons": ["", "", "", "", "", "", ""], + // Commands to execute on events + "on-scroll-up": "light -A 5%", + "on-scroll-down": "light -U 5%", + "smooth-scrolling-threshold": 1, + }, + "backlight#2": { + "interval": 2, + //"device": "amdgpu_bl0", + "format": "{percent}%", + // Commands to execute on events + "on-scroll-up": "light -A 5%", + "on-scroll-down": "light -U 5%", + "smooth-scrolling-threshold": 1, + }, + + // waybar-battery + "battery": { + "interval": 60, + //"bat": "BAT1", + //"adapter": "ACAD", + "full-at": 100, + "design-capacity": false, + "states": { + "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{icon}", + "format-charging": "", + "format-plugged": "ﮣ", + "format-full": "", + "format-icons": ["", "", "", "", "", "", "", "", ""], + "format-time": "{H}h {M}min", + "tooltip": true, + }, + "battery#2": { + "interval": 60, + //"bat": "BAT1", + //"adapter": "ACAD", + "full-at": 100, + "design-capacity": false, + "states": { + "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{capacity}%", + "format-charging": "{capacity}%", + "format-plugged": "{capacity}%", + "format-full": "Full", + "format-alt": "{time}", + "format-time": "{H}h {M}min", + "tooltip": true, + }, + + // waybar-clock + "clock": { + "tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>", + "format": "", + }, + "clock#2": { + "interval": 60, + "tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>", + "format": "{:%I:%M %p}", + "format-alt": "{:%a %b %d, %G}" + }, + + // waybar-cpu + "cpu": { + "interval": 5, + "format": "", + }, + "cpu#2": { + "interval": 5, + "format": "{usage}%", + }, + + // waybar-custom + "custom/menu": { + "format": "Arco", + "tooltip": false, + "on-click": "$HOME/.config/hypr/scripts/menu", + // "on-click": "sleep 0.1; $HOME/.config/hypr/scripts/rofi_launcher", + // "on-click-right": "sleep 0.1; $HOME/.config/hypr/scripts/rofi_runner", + }, + + "custom/power": { + "format": "⏻", + "tooltip": false, + "on-click": "archlinux-logout", + //"on-click": "$HOME/.config/hypr/scripts/wlogout", + //"on-click": "$HOME/.config/hypr/scripts/wofi_powermenu", + //"on-click": "sleep 0.1; $HOME/.config/hypr/scripts/rofi_powermenu", + }, + + // waybar-disk + "disk": { + "interval": 30, + "format": "", + }, + "disk#2": { + "interval": 30, + "format": "{free}", + }, + + // waybar-memory + "memory": { + "interval": 10, + "format": "", + }, + "memory#2": { + "interval": 10, + "format": "{used:0.1f}G", + }, + + // waybar-spotify + "custom/spotify": { + "exec": "$HOME/.config/hypr/waybar/spotify", + "interval": 1, + "format": "{}", + "tooltip": true, + "max-length": 40, + "on-click": "playerctl play-pause", + "on-click-middle": "playerctl previous", + "on-click-right": "playerctl next", + "on-scroll-up": "playerctl position 05+", + "on-scroll-down": "playerctl position 05-", + "smooth-scrolling-threshold": 1, + }, + + // waybar-mpd + "mpd": { + "interval": 2, + "unknown-tag": "N/A", + "format": "{artist} - {title} | 祥 {elapsedTime:%M:%S}", + "format-disconnected": "Disconnected", + "format-paused": "{artist} - {title}", + "format-stopped": "Stopped", + "tooltip-format": "MPD (connected)", + "tooltip-format-disconnected": "MPD (disconnected)", + // Commands to execute on events + "on-click": "mpc toggle", + "on-scroll-up": "mpc seek +00:00:01", + "on-scroll-down": "mpc seek -00:00:01", + "smooth-scrolling-threshold": 1, + }, + "mpd#2": { + "format": "玲", + "format-disconnected": "玲", + "format-paused": "玲", + "format-stopped": "玲", + // Commands to execute on events + "on-click": "mpc prev", + }, + "mpd#3": { + "interval": 1, + "format": "{stateIcon}", + "format-disconnected": "", + "format-paused": "{stateIcon}", + "format-stopped": "", + "state-icons": { + "paused": "", + "playing": "" + }, + // Commands to execute on events + "on-click": "mpc toggle", + }, + "mpd#4": { + "format": "怜", + "format-disconnected": "怜", + "format-paused": "怜", + "format-stopped": "怜", + // Commands to execute on events + "on-click": "mpc next", + }, + + // waybar-network + "network": { + "interval": 5, + //"interface": "wlan*", // (Optional) To force the use of this interface, set it for netspeed to work + "format-wifi": "", + "format-ethernet": "", + "format-linked": "", + "format-disconnected": "⚠", + "format-disabled": "⚠", + "tooltip-format": " {ifname} via {gwaddr}", + "on-click": "[[ ! `pidof nm-connection-editor` ]] && nm-connection-editor || pkill nm-connection-e", + }, + "network#2": { + "interval": 5, + //"interface": "wlan*", // (Optional) To force the use of this interface, set it for netspeed to work + "format-wifi": "{essid}", + "format-ethernet": "{ipaddr}/{cidr}", + "format-linked": "{ifname} (No IP)", + "format-disconnected": "Disconnected", + "format-disabled": "Disabled", + "format-alt": " {bandwidthUpBits} | {bandwidthDownBits}", + "tooltip-format": " {ifname} via {gwaddr}", + }, + + // waybar-pulseaudio + "pulseaudio": { + //"format": "{volume}% {icon} {format_source}", + "format": "{icon}", + "format-muted": "", + "format-bluetooth": "", + "format-bluetooth-muted": "", + "format-source": "", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "ﳌ", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "scroll-step": 5.0, + // Commands to execute on events + "on-click": "pulsemixer --toggle-mute", + "on-click-right": "pulsemixer --toggle-mute", + "smooth-scrolling-threshold": 1, + }, + "pulseaudio#2": { + //"format": "{volume}% {icon} {format_source}", + "format": "{volume}%", + "format-muted": "Mute", + "format-bluetooth": "{volume}%", + "format-bluetooth-muted": "Mute", + "format-source": "{volume}%", + "scroll-step": 5.0, + // Commands to execute on events + "on-click": "pulsemixer --toggle-mute", + "on-click-right": "pulsemixer --toggle-mute", + "smooth-scrolling-threshold": 1, + }, + + // waybar-idle-inhibitor + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + }, + "timeout": 30 + }, + + // waybar-wlr-workspaces + "wlr/workspaces": { + "format": "{icon}", + "sort-by-number": true, + "active-only": false, + "format-icons": { + "1": "", + "2": "", + "3": "", + "4": "", + "5": "", + "6": "漣", + "7": "", + "8": "", + "9": "", + "10": "ﳴ", + "urgent": "", + "focused": "", + "default": "" + }, + "on-click": "activate", + }, + + // waybar-tray + "tray": { + "icon-size": 16, + "spacing": 10 + }, + "custom/changewaybar": { + "on-click": "~/.bin/change-waybar-hyprland", + "tooltip": true, + "tooltip-format": "Swap between waybar configs", + "format": "CW " + }, +} diff --git a/hypr/.config/hypr/waybar-alt-1/scripts/swap.sh b/hypr/.config/hypr/waybar-alt-1/scripts/swap.sh new file mode 100755 index 0000000..0645778 --- /dev/null +++ b/hypr/.config/hypr/waybar-alt-1/scripts/swap.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +# Set the path to the config and style files +config_file="${HOME}/.config/hypr/waybar/config" +config_background_file="${HOME}/.config/hypr/waybar/config-background" +style_file="${HOME}/.config/hypr/waybar/style.css" +style_background_file="${HOME}/.config/hypr/waybar/style-background.css" + +# Swap names of config files +mv "${config_file}" "${config_file}.temp" +mv "${config_background_file}" "${config_file}" +mv "${config_file}.temp" "${config_background_file}" + +# Swap names of style files +mv "${style_file}" "${style_file}.temp" +mv "${style_background_file}" "${style_file}" +mv "${style_file}.temp" "${style_background_file}" + +echo "File names swapped successfully!" + +# kill first +if [[ $(pidof waybar) ]]; then + killall -q waybar +fi + +while pgrep -u $UID -x waybar > /dev/null;do sleep 1;done + + +# start up again +CONFIG="$HOME/.config/hypr/waybar/config.ini" +STYLE="$HOME/.config/hypr/waybar/style.css" + +if [[ ! $(pidof waybar) ]]; then + waybar --bar main-bar --log-level error --config ${CONFIG} --style ${STYLE} & +fi diff --git a/hypr/.config/hypr/waybar-alt-1/spotify b/hypr/.config/hypr/waybar-alt-1/spotify new file mode 100755 index 0000000..c279aad --- /dev/null +++ b/hypr/.config/hypr/waybar-alt-1/spotify @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +## Copyright (C) 2020-2023 Aditya Shakya <adi1090x@gmail.com> +## +## Script for spotify for waybar + +player_status=$(playerctl status 2> /dev/null) + +if [ "$player_status" = "Playing" ]; then + echo -e " $(playerctl metadata artist) - $(playerctl metadata title)\nPlaying: $(playerctl metadata artist) - $(playerctl metadata title)\nplaying" +elif [ "$player_status" = "Paused" ]; then + echo -e " $(playerctl metadata artist) - $(playerctl metadata title)\nPaused: $(playerctl metadata artist) - $(playerctl metadata title)\npaused" +else + echo -e " Spotify Offline!\nSpotify Offline.\noffline" +fi diff --git a/hypr/.config/hypr/waybar-alt-1/style-background.css b/hypr/.config/hypr/waybar-alt-1/style-background.css new file mode 100755 index 0000000..a50f5f0 --- /dev/null +++ b/hypr/.config/hypr/waybar-alt-1/style-background.css @@ -0,0 +1,444 @@ +/* ============================================================================= + * + * Waybar configuration + * + * Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration + * + * =========================================================================== */ + +/* ----------------------------------------------------------------------------- + * Keyframes + * -------------------------------------------------------------------------- */ + +@import "machiatto.css"; + +/* + 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: @lavender; + border: 0; + padding: 0 0; + font-family: UbuntuMono; + /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */ + /* font-family: "Hack Nerd Font"; */ + font-size: 18px; + font-weight: bold; + /* padding-bottom:4px; + padding-top: 4px; */ + transition: all 0.5s ease; +} + +window#waybar { + border-bottom: 4px solid shade(@base, 1.1); + /* border-radius: 10px; */ + /* background:#2d2a2e; */ + /* background-color: rgba(36, 39, 58, 0.85); */ + /* background-color: rgba(0, 0, 0, 0); */ + background-color: shade(#1e1e2e, 0.95); +} |
