From 542591eb337ade8a180347d30159967d200f2115 Mon Sep 17 00:00:00 2001 From: coast Date: Wed, 8 Oct 2025 07:26:05 +0330 Subject: [PATCH] updates --- config/eww/eww.scss | 4 ++-- config/eww/eww.yuck | 12 ++++++------ config/eww/scripts/day_format.sh | 8 -------- config/eww/scripts/month_format.sh | 5 ----- config/eww/scripts/start.sh | 8 +++----- config/eww/scripts/year_format.sh | 5 ----- config/foot/foot.ini | 3 ++- config/mako/config | 10 +++++----- config/nvim/pack/graft/start/vim-lsp | 2 +- config/qtile/config.py | 27 +++++++++++---------------- local/bin/start_qtile.sh | 20 +++++++++++--------- 11 files changed, 41 insertions(+), 63 deletions(-) diff --git a/config/eww/eww.scss b/config/eww/eww.scss index 1e2cb42..7bdbddd 100644 --- a/config/eww/eww.scss +++ b/config/eww/eww.scss @@ -12,8 +12,8 @@ window { background-color: #000000; border-width: 1px; border-style: solid; - border-color: #ffffff; - color: #ffffff; + border-color: #454545; + color: #aeaeae; } .label { diff --git a/config/eww/eww.yuck b/config/eww/eww.yuck index aadab1b..e23e6ac 100644 --- a/config/eww/eww.yuck +++ b/config/eww/eww.yuck @@ -1,12 +1,12 @@ (include "eww_widgets.yuck") (defwindow year - :monitor '[0]' + :monitor 'HDMI-A-1' :stacking "bg" :namespace "eww" :geometry (geometry :x "15" - :y "15" + :y "965" :width "100" :height "100" :anchor "top left") @@ -14,12 +14,12 @@ ) (defwindow month - :monitor '[0]' + :monitor 'HDMI-A-1' :stacking "bg" :namespace "eww" :geometry (geometry :x "125" - :y "15" + :y "965" :width "100" :height "100" :anchor "top left") @@ -27,12 +27,12 @@ ) (defwindow day - :monitor '[0]' + :monitor 'HDMI-A-1' :stacking "bg" :namespace "eww" :geometry (geometry :x "235" - :y "15" + :y "965" :width "100" :height "100" :anchor "top left") diff --git a/config/eww/scripts/day_format.sh b/config/eww/scripts/day_format.sh index 9474f7f..5d9ac8f 100755 --- a/config/eww/scripts/day_format.sh +++ b/config/eww/scripts/day_format.sh @@ -1,12 +1,6 @@ #!/bin/bash - -# Get the day of the month. day_of_month=$(date +"%d") - -# Remove leading zero from the day of the month day_of_month=$(echo $day_of_month | sed 's/^0*//') - -# Deduce the correct suffix. if [[ $day_of_month -ge 11 && $day_of_month -le 13 ]]; then suffix="th" else @@ -17,6 +11,4 @@ else *) suffix="th" ;; esac fi - -# Output the formatted day. echo "${day_of_month}${suffix}" diff --git a/config/eww/scripts/month_format.sh b/config/eww/scripts/month_format.sh index 4b40a26..917c509 100755 --- a/config/eww/scripts/month_format.sh +++ b/config/eww/scripts/month_format.sh @@ -1,8 +1,3 @@ #!/bin/bash - - -# Get the month. month=$(date +"%b") - -# Return the month string. echo "$month" diff --git a/config/eww/scripts/start.sh b/config/eww/scripts/start.sh index b3a8f6d..7967132 100755 --- a/config/eww/scripts/start.sh +++ b/config/eww/scripts/start.sh @@ -4,8 +4,6 @@ eww kill eww daemon -# Open widgets for monitor 1 -eww open yearbox -eww open monthbox -eww open daybox -eww open userinfo +eww open year +eww open month +eww open day diff --git a/config/eww/scripts/year_format.sh b/config/eww/scripts/year_format.sh index 9e5bc7a..25b6cdd 100755 --- a/config/eww/scripts/year_format.sh +++ b/config/eww/scripts/year_format.sh @@ -1,8 +1,3 @@ #!/bin/bash - - -# Get the year. year=$(date +"%Y") - -# Output the year. echo "$year" diff --git a/config/foot/foot.ini b/config/foot/foot.ini index 8b1ebe5..34c2c31 100644 --- a/config/foot/foot.ini +++ b/config/foot/foot.ini @@ -3,7 +3,8 @@ pad=8x8 [colors] #foreground=ebdbb2 # light foreground (text) -background=1c1c1c # dark background +alpha=0.9 +background=000000 # dark background # ### Normal/regular colors (color palette 0-7) #regular0=1d2021 # black diff --git a/config/mako/config b/config/mako/config index 9bb6fdb..46a3a80 100644 --- a/config/mako/config +++ b/config/mako/config @@ -1,15 +1,15 @@ -background-color=#1c1c1c -text-color=#e5e5e5 +background-color=#000000 +text-color=#aeaeae border-color=#1c1c1c default-timeout=5000 ignore-timeout=1 [urgency=low] -border-color=#555555 +border-color=#aeaeae [urgency=normal] -border-color=#bbbbbb +border-color=#aeaeae [urgency=high] -border-color=#ffffff +border-color=#383383 diff --git a/config/nvim/pack/graft/start/vim-lsp b/config/nvim/pack/graft/start/vim-lsp index be06c95..04ef607 160000 --- a/config/nvim/pack/graft/start/vim-lsp +++ b/config/nvim/pack/graft/start/vim-lsp @@ -1 +1 @@ -Subproject commit be06c952810226f372149ea1af68b628c662c65a +Subproject commit 04ef607075184e7b8481245a40a9010368511e98 diff --git a/config/qtile/config.py b/config/qtile/config.py index ca53759..9b8403f 100644 --- a/config/qtile/config.py +++ b/config/qtile/config.py @@ -33,7 +33,7 @@ keys = [ Key([mod], "space", lazy.window.toggle_floating(), desc="Toggle floating on the focused window"), Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"), Key([mod, "shift"], "q", lazy.shutdown(), desc="Shutdown Qtile"), - Key([mod], "r", lazy.spawn("wmenu-run -f \"Ubuntu Mono Nerd Font 14\" -N #000000 "), desc="Spawn a command using wmenu"), + Key([mod], "r", lazy.spawn("wmenu-run -f \"Ubuntu Mono Nerd Font 14\" -N #000000 -n #aeaeae -M #aeaeae -S #aeaeae -s #000000"), desc="Spawn a command using wmenu"), Key([mod], "Print", lazy.spawn("/home/coast/.local/src/local/bin/screenie-wlr")), Key([mod, "shift"], "Print", lazy.spawn("/usr/bin/grim")), Key([mod], "Left", lazy.window.move_floating(-20, 0)), @@ -52,11 +52,6 @@ keys = [ for vt in range(1, 8): keys.append(Key(["control", "mod1"], f"f{vt}", lazy.core.change_vt(vt).when(func=lambda: qtile.core.name == "wayland"), desc=f"Switch to VT{vt}")) -@hook.subscribe.client_new -def set_opacity(window): - if window.match(Match(wm_class=[ "footclient", "foot"] )): - window.opacity = 0.9 - groups = [Group(i) for i in "123456789"] for i in groups: @@ -96,25 +91,25 @@ extension_defaults = widget_defaults.copy() screens = [ Screen( - bottom=bar.Bar( + top=bar.Bar( [ widget.Prompt(), - widget.GroupBox(fontsize = 14.5, font = "Ubuntu Mono Nerd Font", borderwidth = 4, rounded = False, highlight_method = "line", inactive = ["#ffffff"], ), - widget.TextBox(text = '|', font = "Ubuntu Mono Nerd Font", padding = 2,), - widget.CurrentLayout(font = "Ubuntu Mono Nerd Font", ), - widget.TextBox(text = '|', font = "Ubuntu Mono Nerd Font", padding = 2,), - widget.WindowName(font = "Ubuntu Mono Nerd Font", ), + widget.GroupBox(font="Ubuntu Mono Nerd Font", borderwidth=1, padding=6, rounded=False, highlight_method="line", this_current_screen_border="#1e1e1e", foreground=["#aeaeae"], active=["#aeaeae"], inactive=["#454545"], fontsize=16), + widget.TextBox(text = '|', font = "Ubuntu Mono Nerd Font", padding = 2, foreground=["#1e1e1e"], fontsize=16), + widget.CurrentLayout(font = "Ubuntu Mono Nerd Font", foreground=["#aeaeae"], fontsize=16), + widget.TextBox(text = '|', font = "Ubuntu Mono Nerd Font", padding = 2, foreground=["#1e1e1e"], fontsize=16), + widget.WindowName(font = "Ubuntu Mono Nerd Font", foreground=["#aeaeae"], fontsize=16), widget.Chord( chords_colors={ - "launch": ("#ff0000", "#ffffff"), + "launch": ("#ff0000", "#aeaeae"), }, name_transform=lambda name: name.upper()), # widget.StatusNotifier(), # widget.TextBox(text = '|', font = "Ubuntu Mono Nerd Font", padding = 2,), - widget.Clock(format="%I:%M %p", font = "Ubuntu Mono Nerd Font", padding = 2), - widget.QuickExit(font = "Ubuntu Mono Nerd Font", padding = 2, rounded = False, ), + widget.Clock(format="%I:%M %p", font = "Ubuntu Mono Nerd Font", padding = 2, foreground=["#aeaeae"], fontsize=16) , + widget.QuickExit(font = "Ubuntu Mono Nerd Font", padding = 2, rounded = False, foreground=["#aeaeae"], fontsize=16 ), ], - 24, + 28, ), ), ] diff --git a/local/bin/start_qtile.sh b/local/bin/start_qtile.sh index 131564f..9aa1f54 100755 --- a/local/bin/start_qtile.sh +++ b/local/bin/start_qtile.sh @@ -1,12 +1,14 @@ #!/bin/sh + wlr-randr --output eDP-1 --off & -foot -s & -sleep 1 & -#swaybg -i ~/Pictures/nature4.png & -#wbg ~/Pictures/nature3.png & -#swaybg -i /home/coast/.local/src/wall/landscapes/1722895134609554.jpg -sleep 1 & -#swaybg -i "/home/coast/.local/src/wall/art/508334ldsdl.jpg" -m stretch & -#swaybg -i "/home/coast/.local/src/wall/art/1719378313520594.jpg" & -swaybg -i "/home/coast/.local/src/wall/art/View_of_Cotopaxi_by_Frederic_Edwin_Church_1857.jpg" & + +swaybg -i "/home/coast/.local/src/wall/landscapes/1685467042941515.jpg" & + /usr/libexec/polkit-gnome-authentication-agent-1 & + +( + pkill eww + eww daemon & + while ! eww ping >/dev/null 2>&1; do sleep 0.1; done + eww open-many year month day +) &