mirror of
https://git.sr.ht/~coasteen/dotfiles
synced 2025-11-04 14:47:38 +01:00
updates
This commit is contained in:
parent
fb48ebd50e
commit
94499eb1e0
4 changed files with 17 additions and 14 deletions
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
(defwindow calendar
|
(defwindow calendar
|
||||||
:monitor 'HDMI-A-1'
|
:monitor 'HDMI-A-1'
|
||||||
:stacking "bg"
|
:stacking "fg"
|
||||||
:geometry (geometry :x "1600" :y "830" :width "320" :height "250" :anchor "top left")
|
:geometry (geometry :x "1600" :y "810" :width "320" :height "250" :anchor "top left")
|
||||||
(calendar))
|
(calendar))
|
||||||
(defwindow year
|
(defwindow year
|
||||||
:monitor 'HDMI-A-1'
|
:monitor 'HDMI-A-1'
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
day_of_month=$(date +"%d")
|
day_of_month=$(date +"%d")
|
||||||
day_of_month=$(echo $day_of_month | sed 's/^0*//')
|
day_of_month=$(echo $day_of_month | sed 's/^0*//')
|
||||||
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
|
||||||
case $((day_of_month % 10)) in
|
case $((day_of_month % 10)) in
|
||||||
1) suffix="ST" ;;
|
1) suffix="ST" ;;
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ subprocess.run("/home/coast/.local/src/local/bin/start_qtile.sh")
|
||||||
|
|
||||||
mod = "mod4"
|
mod = "mod4"
|
||||||
terminal = "footclient"
|
terminal = "footclient"
|
||||||
|
browser = "firefox-bin"
|
||||||
|
|
||||||
keys = [
|
keys = [
|
||||||
Key([mod], "h", lazy.layout.left(), desc="Move focus to left"),
|
Key([mod], "h", lazy.layout.left(), desc="Move focus to left"),
|
||||||
|
|
@ -47,9 +48,8 @@ keys = [
|
||||||
Key([mod, "shift"], "Up", lazy.window.resize_floating(0, -20)),
|
Key([mod, "shift"], "Up", lazy.window.resize_floating(0, -20)),
|
||||||
Key([mod, "shift"], "Down", lazy.window.resize_floating(0, 20)),
|
Key([mod, "shift"], "Down", lazy.window.resize_floating(0, 20)),
|
||||||
Key([mod, "shift"], "i", lazy.spawn("pcmanfm")),
|
Key([mod, "shift"], "i", lazy.spawn("pcmanfm")),
|
||||||
Key([mod, "shift"], "b", lazy.spawn("firefox-bin")),
|
Key([mod, "shift"], "b", lazy.spawn(browser)),
|
||||||
Key([mod, "shift"], "v", lazy.spawn("vesktop-bin")),
|
Key([mod, "shift"], "v", lazy.spawn("vesktop-bin --ozone-platform=wayland"))]
|
||||||
]
|
|
||||||
|
|
||||||
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}"))
|
||||||
|
|
@ -80,8 +80,8 @@ layouts = [
|
||||||
# layout.Stack(num_stacks=2),
|
# layout.Stack(num_stacks=2),
|
||||||
# layout.Bsp(),
|
# layout.Bsp(),
|
||||||
# layout.Matrix(),
|
# layout.Matrix(),
|
||||||
#layout.MonadWide(font = "Maple Mono", margin = 8, border_focus=["#454545"], border_width=4, border_normal=["#1c1c1c"]),
|
# layout.MonadWide(),
|
||||||
#layout.RatioTile(font = "Maple Mono", margin = 8, border_focus=["#454545"], border_width=4, border_normal=["#1c1c1c"]),
|
# layout.RatioTile(),
|
||||||
# layout.Tile(),
|
# layout.Tile(),
|
||||||
# layout.TreeTab(),
|
# layout.TreeTab(),
|
||||||
# layout.VerticalTile(),
|
# layout.VerticalTile(),
|
||||||
|
|
@ -105,7 +105,7 @@ screens = [
|
||||||
Screen(
|
Screen(
|
||||||
bottom=bar.Bar
|
bottom=bar.Bar
|
||||||
([widget.Spacer(length=3),
|
([widget.Spacer(length=3),
|
||||||
widget.TextBox(text="", fontsize=16),
|
widget.TextBox(text="", fontsize=16, mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(terminal), 'Button3': lambda: qtile.cmd_spawn(browser)}),
|
||||||
widget.Spacer(length=3),
|
widget.Spacer(length=3),
|
||||||
widget.GroupBox(font='MapleMono', borderwidth=1, padding=6, rounded=False, highlight_method='block', this_current_screen_border='#3a3a3a', foreground='#ffffff', active='#ffffff', inactive='#ffffff', hide_unused=True, fontsize=16),
|
widget.GroupBox(font='MapleMono', borderwidth=1, padding=6, rounded=False, highlight_method='block', this_current_screen_border='#3a3a3a', foreground='#ffffff', active='#ffffff', inactive='#ffffff', hide_unused=True, fontsize=16),
|
||||||
widget.TextBox(text='[', font="Maple Mono", padding=1, foreground=["#1e1e1e"], fontsize=16),
|
widget.TextBox(text='[', font="Maple Mono", padding=1, foreground=["#1e1e1e"], fontsize=16),
|
||||||
|
|
@ -118,13 +118,14 @@ screens = [
|
||||||
widget.CPU(font="MapleMono", fontsize=16, foreground="#ffffff", padding=1, mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(terminal + ' -e htop')}, format = ' {load_percent}%'),
|
widget.CPU(font="MapleMono", fontsize=16, foreground="#ffffff", padding=1, mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(terminal + ' -e htop')}, format = ' {load_percent}%'),
|
||||||
widget.TextBox(text=']', font="Maple Mono", padding=1, foreground=["#1e1e1e"], fontsize=16),
|
widget.TextBox(text=']', font="Maple Mono", padding=1, foreground=["#1e1e1e"], fontsize=16),
|
||||||
widget.TextBox(text='[', font="Maple Mono", padding=1, foreground=["#1e1e1e"], fontsize=16),
|
widget.TextBox(text='[', font="Maple Mono", padding=1, foreground=["#1e1e1e"], fontsize=16),
|
||||||
widget.Clock(format=" %I:%M %p", font="Maple Mono", padding=1, foreground=["#ffffff"], fontsize=16, mouse_callbacks={'Button1': lambda: qtile.cmd_spawn('eww open calendar'), 'Button3': lambda: qtile.cmd_spawn('eww close calendar')}),
|
widget.Clock(format=" %I:%M %p", font="Maple Mono", padding=1, foreground=["#ffffff"], fontsize=16, mouse_callbacks={'Button3': lambda: qtile.cmd_spawn('eww open calendar'), 'Button1': lambda: qtile.cmd_spawn('eww close calendar')}),
|
||||||
widget.TextBox(text=']', font="Maple Mono", padding=1, foreground=["#1e1e1e"], fontsize=16)],
|
widget.TextBox(text=']', font="Maple Mono", padding=1, foreground=["#1e1e1e"], fontsize=16)],
|
||||||
24))]
|
24))]
|
||||||
|
|
||||||
mouse = [
|
mouse=[
|
||||||
Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()),
|
Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()),
|
||||||
Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size())]
|
Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size())]
|
||||||
|
|
||||||
dgroups_key_binder = None
|
dgroups_key_binder = None
|
||||||
dgroups_app_rules = []
|
dgroups_app_rules = []
|
||||||
follow_mouse_focus = True
|
follow_mouse_focus = True
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ wlr-randr --output eDP-1 --off &
|
||||||
|
|
||||||
(
|
(
|
||||||
if ! pgrep -x swaybg >/dev/null; then
|
if ! pgrep -x swaybg >/dev/null; then
|
||||||
swaybg -i "/home/coast/.local/src/wall/art/517525ldsdl.jpg" &
|
swaybg -i "/home/coast/.local/src/wall/landscapes/1685466762541384.jpg" &
|
||||||
fi
|
fi
|
||||||
) &
|
) &
|
||||||
|
|
||||||
|
|
@ -29,9 +29,11 @@ wlr-randr --output eDP-1 --off &
|
||||||
|
|
||||||
(
|
(
|
||||||
if ! pgrep -x eww >/dev/null; then
|
if ! pgrep -x eww >/dev/null; then
|
||||||
pkill eww &
|
|
||||||
eww daemon &
|
eww daemon &
|
||||||
while ! eww ping >/dev/null 2>&1; do sleep 0.1; done &
|
eww open-many year month day &
|
||||||
|
else
|
||||||
|
pkill eww
|
||||||
|
eww daemon &
|
||||||
eww open-many year month day &
|
eww open-many year month day &
|
||||||
fi
|
fi
|
||||||
) &
|
) &
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue