Skip to content

Commit c0b7d92

Browse files
committed
change background path
1 parent 949d544 commit c0b7d92

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

ansible/window-manager.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,3 @@
7777
src: "/etc/X11/xinit/xinitrc"
7878
dest: "{{ home_dir }}/.xinitrc"
7979
when: use_wayland != "Y"
80-
81-
- name: Set X11 Wallpaper
82-
command:
83-
cmd: "nitrogen --set-auto {{ dotfiles_dir }}/images/background.jpg || nitrogen --set-auto {{ dotfiles_dir }}/images/background.png"
84-
when: use_wayland != "Y"

custom/background-picker

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
selection=$(echo $HOME/projects/dotfiles/images/backgrounds/* | tr " " "\n" | xargs -I {} basename {} | fzf)
44

5-
cp $HOME/projects/dotfiles/images/backgrounds/$selection $HOME/.config/background.jpg
5+
cp $HOME/projects/dotfiles/images/backgrounds/$selection $HOME/.config/background
66
wal -c
77
$HOME/projects/dotfiles/custom/wm-style

custom/lock-device

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
if [[ -z $WAYLAND_DISPLAY ]]; then
44
betterlockscreen -l --display 1
55
else
6-
swaylock -i ~/projects/dotfiles/images/background.* \
6+
swaylock -i $HOME/.config/background \
77
--clock \
88
--font "JetBrains Mono" \
99
--indicator-radius 150 \

custom/wm-style

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/sh
22

33
if [[ -z $WAYLAND_DISPLAY ]]; then
4-
nitrogen --set-scaled ~/.config/background.jpg && \
5-
wal -n -i ~/.config/background.jpg && \
4+
nitrogen --set-scaled ~/.config/background && \
5+
wal -n -i ~/.config/background && \
66
killall polybar; ~/projects/dotfiles/custom/start-polybar.sh
77
else
88

99
killall swaybg; \
10-
(swaybg -i ~/.config/background.jpg -m fill &) && \
11-
wal -n -i ~/.config/background.jpg && \
10+
(swaybg -i ~/.config/background -m fill &) && \
11+
wal -n -i ~/.config/background && \
1212
~/projects/dotfiles/custom/gen-waybar-config && \
1313
killall waybar; waybar -c ~/.config/waybar-theme/config &
1414
fi

0 commit comments

Comments
 (0)