diff --git a/mango/mango/exec.conf b/mango/mango/exec.conf index 31c2e6e..23e6258 100644 --- a/mango/mango/exec.conf +++ b/mango/mango/exec.conf @@ -1,5 +1,6 @@ -exec-once=~/.config/mango/autostart.sh exec=killall waybar 2>/dev/null || true && waybar & disown +exec-once=~/.config/mango/autostart.sh exec-once=run-wlsunset.sh init exec-once=init-screen-scale exec-once=init-lockscreen +exec-once=udiskie --automount --notify diff --git a/mango/mangoinstall b/mango/mangoinstall index 3f69109..1ba6f54 100644 --- a/mango/mangoinstall +++ b/mango/mangoinstall @@ -1,5 +1,5 @@ # general packages -sudo pacman -S swaybg wl-clipboard wl-clip-persist cliphist slurp grim satty mako neovim firefox ghostty fastfetch xdg-desktop-portal-wlr xdg-desktop-portal-gtk libnotify unzip bat rsync exa ripgrep bash-completion jq otf-font-awesome thunar tumbler less fd mpv btop rofi difftastic +sudo pacman -S swaybg wl-clipboard wl-clip-persist cliphist slurp grim satty mako neovim firefox ghostty fastfetch xdg-desktop-portal-wlr xdg-desktop-portal-gtk libnotify unzip bat rsync exa ripgrep bash-completion jq otf-font-awesome thunar tumbler less fd mpv btop rofi difftastic udiskie # screenrecording yay -S wl-screenrec diff --git a/mango/waybar/waybar/config.jsonc b/mango/waybar/waybar/config.jsonc new file mode 100644 index 0000000..da25ed9 --- /dev/null +++ b/mango/waybar/waybar/config.jsonc @@ -0,0 +1,94 @@ +{ + "layer": "top", + "position": "top", + "width": "auto", + "height": 36, + "modules-left": ["ext/workspaces"], + "modules-center": ["clock"], + "modules-right": ["bluetooth", "wireplumber", "network", "custom/usb", "cpu", "memory", "battery", "custom/power"], + + "custom/power": { + "format-icons": [""], + "format": "{icon}", + "tooltip": false, + "on-click": "~/.local/bin/rofi-power-manager.sh" + }, + "ext/workspaces": { + "disable-scroll": true, + "ignore-hidden": true, + "all-outputs": false, + "on-click": "activate", + "format": "{name}" + }, + "cpu": { + "format-icons": [""], + "format": "{usage}% {icon}", + "tooltip": false + }, + "memory": { + "format-icons": [""], + "format": "{}% {icon}" + }, + "network": { + "max-length": 10, + "format-wifi": "{essid} ", + "format-ethernet": "{ipaddr}/{cidr} ", + "tooltip-format": "{ifname} via {gwaddr} ", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "Disconnected ⚠", + "on-click": "ghostty -e nmtui & disown" + // "format-alt": "{ifname}: {ipaddr}/{cidr}", + }, + "clock": { + "format": "{:%b %d - %H:%M}", + "tooltip-format": "{calendar}", + "calendar": { + "mode": "month", + "mode-mon-col": 4, + "on-scroll" : 1, + "format": { + "today": "{}" + } + }, + "actions": { + "on-click-right": "mode", + "on-scroll-up": "shift_down", + "on-scroll-down": "shift_up" + } + }, + "bluetooth": { + "format": "", + "format-disabled": "󰂲", + "tooltip": false, + "on-click": "blueman-manager" + }, + "wireplumber": { + "format": "{volume}% {icon}", + "format-icons": { + "default": ["", "", ""] + }, + "format-muted": "", + "on-click": "pavucontrol" + }, + "battery": { + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{capacity}% {icon}", + "format-full": "{capacity}% {icon}", + "format-charging": "{capacity}% ", + "format-alt": "{time} {icon}", + "format-icons": ["", "", "", "", ""] + }, + "custom/usb": { + // "format": "{} {icon}", + "format": "{icon}", + "format-icons": ["󰉉"], + // "interval": 15, + // "exec": "lsblk -nlo NAME,MOUNTPOINT | grep '/run/media' | wc -l", + "on-click": "env GDK_BACKEND=x11 thunar /run/media/$USER", + "tooltip": false + } +} diff --git a/mango/waybar/waybar/style.css b/mango/waybar/waybar/style.css new file mode 100644 index 0000000..b2aeed5 --- /dev/null +++ b/mango/waybar/waybar/style.css @@ -0,0 +1,86 @@ +* { + font-family: "Geist", sans-serif; + min-height: 0; +} + +window#waybar { + background: rgba(33, 28, 46, 0.6); + color: rgb(205, 214, 244); +} +window#waybar > box.horizontal:dir(ltr) { + margin-top: 6px; + margin-bottom: 6px; + margin-left: 12px; + margin-right: 16px; +} + +#workspaces button { + font-family: "Octal", monospace; + font-weight: bold; + font-size: 12px; + padding: 0 6px; + margin: 0 3px; + background:rgba(137, 180, 250, 0.15); + color: rgba(208, 181, 210, 0.65); + border: none; +} + +#workspaces button.focused, +#workspaces button.active { + color: rgb(30, 30, 46); + background: rgb(180, 190, 254); + padding: 0 12px; +} +#workspaces button.focused:hover, +#workspaces button.active:hover { + background: rgba(180, 190, 254, 0.75); +} + +#workspaces button:hover { + background: rgba(255, 255, 255, 0.1); +} + +#clock { + padding: 0 15px; + background: rgba(137, 180, 250, 0.15); + border-radius: 10px; +} + +tooltip { + border: 1px solid #d093d1; + background: #3d3555; +} +tooltip label { + padding: 10px; +} + +label#wireplumber, +label#bluetooth, +label#network, +label#battery, +label#cpu, +label#custom-power, +label#custom-usb, +label#memory { + padding: 0 9px; + border-radius: 10px; + margin: 0 3px; +} + +label#custom-power { + margin-right: 0; + padding-right: 0; +} + +label#wireplumber, +label#bluetooth, +label#custom-usb, +label#network { + background:rgba(137, 180, 250, 0.15); +} + +label#battery, +label#cpu, +label#memory { + background: rgba(208, 181, 210, 0.15); +}