This commit is contained in:
coast 2025-10-08 07:26:05 +03:30
parent 795585a60b
commit 542591eb33
11 changed files with 41 additions and 63 deletions

View file

@ -12,8 +12,8 @@ window {
background-color: #000000; background-color: #000000;
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
border-color: #ffffff; border-color: #454545;
color: #ffffff; color: #aeaeae;
} }
.label { .label {

View file

@ -1,12 +1,12 @@
(include "eww_widgets.yuck") (include "eww_widgets.yuck")
(defwindow year (defwindow year
:monitor '[0]' :monitor 'HDMI-A-1'
:stacking "bg" :stacking "bg"
:namespace "eww" :namespace "eww"
:geometry (geometry :geometry (geometry
:x "15" :x "15"
:y "15" :y "965"
:width "100" :width "100"
:height "100" :height "100"
:anchor "top left") :anchor "top left")
@ -14,12 +14,12 @@
) )
(defwindow month (defwindow month
:monitor '[0]' :monitor 'HDMI-A-1'
:stacking "bg" :stacking "bg"
:namespace "eww" :namespace "eww"
:geometry (geometry :geometry (geometry
:x "125" :x "125"
:y "15" :y "965"
:width "100" :width "100"
:height "100" :height "100"
:anchor "top left") :anchor "top left")
@ -27,12 +27,12 @@
) )
(defwindow day (defwindow day
:monitor '[0]' :monitor 'HDMI-A-1'
:stacking "bg" :stacking "bg"
:namespace "eww" :namespace "eww"
:geometry (geometry :geometry (geometry
:x "235" :x "235"
:y "15" :y "965"
:width "100" :width "100"
:height "100" :height "100"
:anchor "top left") :anchor "top left")

View file

@ -1,12 +1,6 @@
#!/bin/bash #!/bin/bash
# Get the day of the month.
day_of_month=$(date +"%d") day_of_month=$(date +"%d")
# Remove leading zero from the day of the month
day_of_month=$(echo $day_of_month | sed 's/^0*//') 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 if [[ $day_of_month -ge 11 && $day_of_month -le 13 ]]; then
suffix="th" suffix="th"
else else
@ -17,6 +11,4 @@ else
*) suffix="th" ;; *) suffix="th" ;;
esac esac
fi fi
# Output the formatted day.
echo "${day_of_month}${suffix}" echo "${day_of_month}${suffix}"

View file

@ -1,8 +1,3 @@
#!/bin/bash #!/bin/bash
# Get the month.
month=$(date +"%b") month=$(date +"%b")
# Return the month string.
echo "$month" echo "$month"

View file

@ -4,8 +4,6 @@
eww kill eww kill
eww daemon eww daemon
# Open widgets for monitor 1 eww open year
eww open yearbox eww open month
eww open monthbox eww open day
eww open daybox
eww open userinfo

View file

@ -1,8 +1,3 @@
#!/bin/bash #!/bin/bash
# Get the year.
year=$(date +"%Y") year=$(date +"%Y")
# Output the year.
echo "$year" echo "$year"

View file

@ -3,7 +3,8 @@ pad=8x8
[colors] [colors]
#foreground=ebdbb2 # light foreground (text) #foreground=ebdbb2 # light foreground (text)
background=1c1c1c # dark background alpha=0.9
background=000000 # dark background
# #
### Normal/regular colors (color palette 0-7) ### Normal/regular colors (color palette 0-7)
#regular0=1d2021 # black #regular0=1d2021 # black

View file

@ -1,15 +1,15 @@
background-color=#1c1c1c background-color=#000000
text-color=#e5e5e5 text-color=#aeaeae
border-color=#1c1c1c border-color=#1c1c1c
default-timeout=5000 default-timeout=5000
ignore-timeout=1 ignore-timeout=1
[urgency=low] [urgency=low]
border-color=#555555 border-color=#aeaeae
[urgency=normal] [urgency=normal]
border-color=#bbbbbb border-color=#aeaeae
[urgency=high] [urgency=high]
border-color=#ffffff border-color=#383383

@ -1 +1 @@
Subproject commit be06c952810226f372149ea1af68b628c662c65a Subproject commit 04ef607075184e7b8481245a40a9010368511e98

View file

@ -33,7 +33,7 @@ keys = [
Key([mod], "space", lazy.window.toggle_floating(), desc="Toggle floating on the focused window"), 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, "control"], "r", lazy.reload_config(), desc="Reload the config"),
Key([mod, "shift"], "q", lazy.shutdown(), desc="Shutdown Qtile"), 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], "Print", lazy.spawn("/home/coast/.local/src/local/bin/screenie-wlr")),
Key([mod, "shift"], "Print", lazy.spawn("/usr/bin/grim")), Key([mod, "shift"], "Print", lazy.spawn("/usr/bin/grim")),
Key([mod], "Left", lazy.window.move_floating(-20, 0)), Key([mod], "Left", lazy.window.move_floating(-20, 0)),
@ -52,11 +52,6 @@ keys = [
for vt in range(1, 8): 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}")) 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"] groups = [Group(i) for i in "123456789"]
for i in groups: for i in groups:
@ -96,25 +91,25 @@ extension_defaults = widget_defaults.copy()
screens = [ screens = [
Screen( Screen(
bottom=bar.Bar( top=bar.Bar(
[ [
widget.Prompt(), widget.Prompt(),
widget.GroupBox(fontsize = 14.5, font = "Ubuntu Mono Nerd Font", borderwidth = 4, rounded = False, highlight_method = "line", inactive = ["#ffffff"], ), 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,), widget.TextBox(text = '|', font = "Ubuntu Mono Nerd Font", padding = 2, foreground=["#1e1e1e"], fontsize=16),
widget.CurrentLayout(font = "Ubuntu Mono Nerd Font", ), widget.CurrentLayout(font = "Ubuntu Mono Nerd Font", foreground=["#aeaeae"], fontsize=16),
widget.TextBox(text = '|', font = "Ubuntu Mono Nerd Font", padding = 2,), widget.TextBox(text = '|', font = "Ubuntu Mono Nerd Font", padding = 2, foreground=["#1e1e1e"], fontsize=16),
widget.WindowName(font = "Ubuntu Mono Nerd Font", ), widget.WindowName(font = "Ubuntu Mono Nerd Font", foreground=["#aeaeae"], fontsize=16),
widget.Chord( widget.Chord(
chords_colors={ chords_colors={
"launch": ("#ff0000", "#ffffff"), "launch": ("#ff0000", "#aeaeae"),
}, },
name_transform=lambda name: name.upper()), name_transform=lambda name: name.upper()),
# widget.StatusNotifier(), # widget.StatusNotifier(),
# widget.TextBox(text = '|', font = "Ubuntu Mono Nerd Font", padding = 2,), # widget.TextBox(text = '|', font = "Ubuntu Mono Nerd Font", padding = 2,),
widget.Clock(format="%I:%M %p", font = "Ubuntu Mono Nerd Font", padding = 2), 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, ), widget.QuickExit(font = "Ubuntu Mono Nerd Font", padding = 2, rounded = False, foreground=["#aeaeae"], fontsize=16 ),
], ],
24, 28,
), ),
), ),
] ]

View file

@ -1,12 +1,14 @@
#!/bin/sh #!/bin/sh
wlr-randr --output eDP-1 --off & wlr-randr --output eDP-1 --off &
foot -s &
sleep 1 & swaybg -i "/home/coast/.local/src/wall/landscapes/1685467042941515.jpg" &
#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" &
/usr/libexec/polkit-gnome-authentication-agent-1 & /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
) &