diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/env | 5 | ||||
-rw-r--r-- | .config/lf/lfrc | 7 | ||||
-rwxr-xr-x | .config/wayland/init.sh | 11 | ||||
-rw-r--r-- | .config/x11/xinitrc | 2 |
4 files changed, 16 insertions, 9 deletions
diff --git a/.config/env b/.config/env index afc6d1d..761ef8b 100644 --- a/.config/env +++ b/.config/env @@ -99,7 +99,12 @@ export MPD_HOST="$XDG_DATA_HOME"/mpd/socket export RUSTFLAGS='-L /usr/local/lib' export WWW_HOME='https://start.duckduckgo.com/' export YTFZF_HIST='0' + +# wayland export WLR_DRM_NO_ATOMIC=1 +export XDG_SESSION_TYPE=wayland +export XDG_CURRENT_DESKTOP=dwl +export MOZ_ENABLE_WAYLAND=1 # PATH export PATH="$HOME"/.local/bin:"$HOME"/.local/bin/status:/usr/local/llvm13/bin:"$HOME"/.pyenv/bin:"$PATH" diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 19653c1..b121f04 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -14,11 +14,6 @@ set previewer '~/.config/lf/scope' # cmds/functions cmd open ${{ - if [ -n "$WAYLAND_DISPLAY" ]; then - IMAGER=imv - else - IMAGER="nsxiv -aibo" - fi case $(file --mime-type "$(readlink -f $f)" -b) in application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;; application/vnd.openxmlformats-officedocument.wordprocessingml.document) docx2txt $f | $PAGER ;; @@ -30,7 +25,7 @@ cmd open ${{ image/svg+xml) display -- $f ;; image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|tif\|ico\)\(_large\)*$" | - $IMAGER 2>/dev/null | while read -r file; do + imv 2>/dev/null | while read -r file; do [ -z "$file" ] && continue lf -remote "send select \"$file\"" lf -remote "send toggle" diff --git a/.config/wayland/init.sh b/.config/wayland/init.sh index d9231bc..62d90ed 100755 --- a/.config/wayland/init.sh +++ b/.config/wayland/init.sh @@ -1,5 +1,7 @@ #!/bin/sh +source "$HOME"/.config/env + case $(hostname -s) in mother) icon=" " @@ -10,6 +12,7 @@ case $(hostname -s) in host="mother" doas mkdir /var/run/jozan && doas chown -v jozan: /var/run/jozan wlr-randr --output DP-3 --off + setwp "$HOME"/pics/wp.png ;; po-rbo) icon=" " @@ -19,6 +22,7 @@ case $(hostname -s) in ping="ping -c1 -w1 9.9.9.9 >/dev/null 2>&1" host="po-rbo" doas mkdir /var/run/r_bousset && doas chown -v r_bousset: /var/run/r_bousset + setwp "$HOME"/pics/wp/liminal ;; mars) icon=" " @@ -28,6 +32,7 @@ case $(hostname -s) in ping="ping -c1 -t1 9.9.9.9 >/dev/null 2>&1" host="mars" doas mkdir /var/run/jozan && doas chown -v jozan: /var/run/jozan + setwp "$HOME"/pics/wp ;; esac @@ -37,13 +42,15 @@ startif() { startif ydotoold startif dunst -startif swaybg --image pics/wp.png & pgrep $mpd >/dev/null || $mpd >/dev/null 2>&1 startif pipewire sleep 1 startif pipewire-pulse sleep 1 startif wireplumber +export QT_QPA_PLATFORM=xcb startif copyq -notify-send -u normal 'Welcome' "$icon Welcome back, partner!" +startif nextcloud +startif stalonetray firefox & +notify-send -u normal 'welcome' "$icon welcome back, partner!" diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc index 2b73786..0d3a577 100644 --- a/.config/x11/xinitrc +++ b/.config/x11/xinitrc @@ -103,4 +103,4 @@ xrdb "$HOME"/.config/x11/xresources start_apps & notify-send -u normal 'Welcome' "$icon Welcome back, partner!" -[ $host = "po-rbo" ] && exec dwm +[ $host = "po-rbo" ] && exec dbus-run-session dwm |