From 5d65e9de4f00ce396265c72091f93ebf8c108cf1 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Fri, 10 Oct 2025 21:19:25 -0400 Subject: [PATCH] Update hyprland and waybar configs --- bin/emojis | 2 +- config/dunst/dunstrc | 11 +++++------ config/ghostty/config | 2 +- config/hypr/hyprland.conf | 9 +++++++++ config/rofi/aditya_style.rasi | 2 +- config/waybar/config | 30 +++++++++++++++++------------- config/waybar/style.css | 21 +++++++++++++++------ home/.xinitrc | 3 ++- 8 files changed, 51 insertions(+), 29 deletions(-) diff --git a/bin/emojis b/bin/emojis index 008a130..c95be22 100755 --- a/bin/emojis +++ b/bin/emojis @@ -17,7 +17,7 @@ case "$1" in input=$(tee) if [ ! -z "$input" ]; then emoji=${input: -1} - xdotool type "$emoji" + ydotool type "$emoji" fi ;; "") diff --git a/config/dunst/dunstrc b/config/dunst/dunstrc index 93ac8ef..ec03975 100644 --- a/config/dunst/dunstrc +++ b/config/dunst/dunstrc @@ -2,8 +2,7 @@ frame_width = 0 frame_color = "#000000" - font = FiraCode Nerd Font 12 - #font = Iosevka Nerd Font 13 + font = IosevkaTerm Nerd Font 13 # Allow a small subset of html markup: # bold @@ -187,13 +186,13 @@ [urgency_low] # IMPORTANT: colors have to be defined in quotation marks. # Otherwise the "#" and following would be interpreted as a comment. - background = "#8e8e8e" - foreground = "#3d3839" + background = "#3d3839" + foreground = "#8e8e8e" timeout = 5 [urgency_normal] - background = "#BBBBBB" - foreground = "#191919" + background = "#3d3839" + foreground = "#BBBBBB" timeout = 5 [urgency_critical] diff --git a/config/ghostty/config b/config/ghostty/config index 7384a2b..18755a9 100644 --- a/config/ghostty/config +++ b/config/ghostty/config @@ -1,5 +1,5 @@ # --- Basics -font-family = "IosevkaTermSlab Nerd Font Propo" +font-family = "IosevkaTerm Nerd Font Propo" font-style = "Regular" font-size = 11 background-opacity = 1.0 diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index f188f59..72ed7e1 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -27,6 +27,15 @@ $fileManager = dolphin $menu = rofi -show drun +########################### +### Program windowrules ### +########################### + +windowrule = workspace 1, class:Element +windowrule = workspace 2, class:anytype +windowrule = workspace 3, class:thunderbird + + ################# ### AUTOSTART ### ################# diff --git a/config/rofi/aditya_style.rasi b/config/rofi/aditya_style.rasi index 4fea8ce..413c928 100644 --- a/config/rofi/aditya_style.rasi +++ b/config/rofi/aditya_style.rasi @@ -12,7 +12,7 @@ configuration { modi: "drun"; show-icons: true; icon-theme: "Papirus"; - font: "IosevkaTermSlab Nerd Font Propo 14"; + font: "IosevkaTerm Nerd Font Propo 14"; display-drun: ""; //display-run: ""; //display-filebrowser: ""; diff --git a/config/waybar/config b/config/waybar/config index 34bc04a..d2b0dde 100644 --- a/config/waybar/config +++ b/config/waybar/config @@ -1,16 +1,16 @@ { "position": "top", // Waybar position (top|bottom|left|right) "height": 5, // Waybar height (to be removed for auto height) - "modules-left": [], + "modules-left": ["hyprland/workspaces"], "modules-center": ["clock"], - "modules-right": ["pulseaudio", "network", "cpu","memory","battery", "tray"], + "modules-right": ["custom/packages", "pulseaudio", "network", "cpu","memory","battery"], "sway/mode": { "format": "{}" }, "mpd": { - "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ ", - "format-disconnected": "Disconnected ", - "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", + "format": " {title} | {artist} ({elapsedTime:%M:%S}/{totalTime:%M:%S})", + "format-disconnected": "", + "format-stopped": "", "unknown-tag": "N/A", "interval": 2, "consume-icons": { @@ -83,8 +83,8 @@ }, "format": "{icon}", "format-icons": ["", "", "", "", ""], - "format-charging": "{capacity}%", - "format-plugged": "{capacity}%", + "format-charging": "{icon}", + "format-plugged": "{icon}", "format-alt": "{capacity}% | {time}" }, "network": { @@ -105,16 +105,20 @@ "format-muted": "󰝟 ", "on-click": "pavucontrol" }, - "custom/media": { + "custom/packages": { "format": " {}", - "return-type": "json", - "max-length": 40, - "escape": true, - "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder - // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name + "exec": "/home/aselimov/bin/outdated_packages.sh" }, "hyprland/workspaces": { "format": "{icon}", + "format-icons":{ + "1": "", + "2": "󰠮", + "3": "", + "4": "", + "5": "" + }, + "active-only": true, "on-scroll-up": "hyprctl dispatch workspace e+1", "on-scroll-down": "hyprctl dispatch workspace e-1" } diff --git a/config/waybar/style.css b/config/waybar/style.css index 231fbe9..b108d70 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -175,7 +175,7 @@ label:focus { } #tray { - background-color: #2980b9; + background-color: #191919; } #idle_inhibitor { @@ -188,20 +188,20 @@ label:focus { } #mpd { - background-color: #66cc99; - color: #2a5c45; + background-color: #191919; + color: #BBBBBB; } #mpd.disconnected { - background-color: #f53c3c; + background-color: #191919; } #mpd.stopped { - background-color: #90b1b1; + background-color: #191919; } #mpd.paused { - background-color: #51a37a; + background-color: #191919; } #language { @@ -211,3 +211,12 @@ label:focus { margin: 6px 3px; min-width: 16px; } + +#workspaces{ + background: #191919; + +} + +#custom-packages{ + color: #DE6E7c; +} diff --git a/home/.xinitrc b/home/.xinitrc index f1d9d5e..bcc8ffc 100755 --- a/home/.xinitrc +++ b/home/.xinitrc @@ -53,12 +53,13 @@ xinput --set-prop "TPPS/2 IBM TrackPoint" "libinput Accel Profile Enabled" 0 1 exec bato & exec sync_mail.sh & -exec xsettingsd & exec sxhkd & exec mpd & exec picom -b & exec wallpaper_randomizer.sh & exec dwmblocks & wmname LG3D & +exec xsettingsd & +exec swap_monitor.sh & exec dbus-launch --sh-syntax --exit-with-session "dwm"