fixed awesome autostart dir. added wallpaper setter script. made no extension be filetype sh in neovim. renamed some scripts.

This commit is contained in:
iceyrazor 2025-06-04 10:16:12 -05:00
parent edf3d20945
commit b69040fda0
14 changed files with 93 additions and 10 deletions

View File

@ -66,7 +66,7 @@ alias vim=nvim
alias notes="cd ~/stuff/notes && vim notes.md && cd ~" alias notes="cd ~/stuff/notes && vim notes.md && cd ~"
alias ts="~/stuff/scripts/system/tmux-sessionizer.sh" alias ts="~/stuff/scripts/system/tmux-sessionizer.sh"
alias fman="bash -c 'compgen -c' | fzf | xargs man" alias fman="bash -c 'compgen -c' | fzf | xargs man"
alias etask="$EDITOR stuff/scripts/system/task.sh" alias etask="$EDITOR ~/stuff/scripts/system/task.sh"
alias music="nohup vlc $YT_PLAYLIST_DIR/title_vids > /dev/null 2> /dev/null < /dev/null & disown && cd $YT_PLAYLIST_DIR/title_vids && lfk" alias music="nohup vlc $YT_PLAYLIST_DIR/title_vids > /dev/null 2> /dev/null < /dev/null & disown && cd $YT_PLAYLIST_DIR/title_vids && lfk"
@ -79,11 +79,6 @@ alias vasm="~/stuff/manual-programs/vasm/vasm6502_oldstyle -Fbin -dotdir "
alias pipes="pipes.sh -t 0 -p 3 -f 30 -r 2000" alias pipes="pipes.sh -t 0 -p 3 -f 30 -r 2000"
alias anim="hyprctl keyword animations:enabled " alias anim="hyprctl keyword animations:enabled "
# alias drkwll="nitrogen --head=0 --set-zoom-fill ~/stuff/media/gallifreyan/linux2.png && nitrogen --head=1 --set-zoom-fill ~/stuff/media/gallifreyan/linux2.png"
# alias drkwll="nitrogen --head=0 --set-zoom-fill ~/stuff/media/wallpapers/dark_leaves.png && nitrogen --head=1 --set-zoom-fill ~/stuff/media/wallpapers/dark_leaves.png"
alias drkwll="[ -z $WAYLAND_DISPLAY ] && nitrogen --head=0 --set-zoom-fill ~/stuff/media/wallpapers/dark_leaves.png && nitrogen --head=1 --set-zoom-fill ~/stuff/media/wallpapers/dark_leaves.png || hyprctl hyprpaper wallpaper 'HDMI-A-1,/home/iceyrazor/stuff/media/wallpapers/dark_leaves.png' && hyprctl hyprpaper wallpaper 'DP-1,/home/iceyrazor/stuff/media/wallpapers/dark_leaves.png'"
alias reswll="hyprctl hyprpaper wallpaper 'HDMI-A-1,/home/iceyrazor/stuff/media/wallpapers/4500025-retrowave-vaporwave-car-typography-purple-blue-chromatic-aberration-initial-d-hachi-roku.jpg' && hyprctl hyprpaper wallpaper 'DP-1,/home/iceyrazor/stuff/media/wallpapers/tumblr_06bbd355f3e355049446dac24f6e7c44_2c486f77_1280 ninesols.jpg'"
# mounting # mounting
alias umsu="fukn umount u" alias umsu="fukn umount u"
alias umsu2="fukn umount u2" alias umsu2="fukn umount u2"

View File

@ -551,4 +551,4 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n
-- autostart applets -- autostart applets
awful.spawn.with_shell("~/.local/bin/start_scripts/autostart.sh") awful.spawn.with_shell("~/.local/bin/system/start_scripts/autostart.sh")

View File

@ -5,7 +5,7 @@
# Which monitor should the notifications be displayed on. # Which monitor should the notifications be displayed on.
# i keep having to change this because hyprland ◔̯◔ # i keep having to change this because hyprland ◔̯◔
monitor = 1 monitor = 0
# Display notification on focused monitor. Possible modes are: # Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer # mouse: follow mouse pointer

View File

@ -48,3 +48,15 @@ vim.filetype.add({
src = "greyscript" src = "greyscript"
} }
}) })
-- make no file extension go to sh type
vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
pattern = "*",
callback = function()
local fname = vim.fn.expand("%:t")
if not fname:find("%.") then -- no dot in filename
vim.bo.filetype = "sh"
end
end
})

69
env/.local/bin/scripts/setwll vendored Executable file
View File

@ -0,0 +1,69 @@
#!/bin/bash
# may be moved to theme setter
cd "$(dirname "$0")"
unload=0
secondary=""
primary=""
all=""
while getopts "up:s:a:" opt; do
case "$opt" in
u) unload=1
;;
p) primary="$OPTARG"
;;
s) secondary="$OPTARG"
;;
a) all="$OPTARG"
;;
esac
done
shift $((OPTIND-1))
[ "${1:-}" = "--" ] && shift
if [ "$all" ]; then
primary="$all"
secondary="$all"
fi
if [ -z "$primary" ]; then
primary="$(./wallpaper_scripts/default-primary)"
else
if [ -f "./wallpaper_scripts/$primary" ]; then
primary="$(./wallpaper_scripts/$primary)"
fi
fi
if [ -z "$secondary" ]; then
secondary="$(./wallpaper_scripts/default-secondary)"
else
if [ -f "./wallpaper_scripts/$secondary" ]; then
secondary="$(./wallpaper_scripts/$secondary)"
fi
fi
if [ "$WAYLAND_DISPLAY" ]; then
current_wal="$(hyprctl hyprpaper listactive | grep HDMI-A-1 | sed 's/HDMI-A-1 = //')"
hyprctl hyprpaper preload $primary
hyprctl hyprpaper wallpaper "HDMI-A-1,$primary"
if [ $unload == 1 ]; then
hyprctl hyprpaper unload "$current_wal"
fi
current_wal="$(hyprctl hyprpaper listactive | grep DP-1 | sed 's/DP-1 = //')"
hyprctl hyprpaper preload $secondary
hyprctl hyprpaper wallpaper "DP-1,$secondary"
if [ $unload == 1 ]; then
hyprctl hyprpaper unload "$current_wal"
fi
else
if [ -z "$1" ]; then
nitrogen --head=0 --set-zoom-fill $primary
nitrogen --head=1 --set-zoom-fill $secondary
fi
fi

View File

@ -0,0 +1 @@
echo "/home/iceyrazor/stuff/media/wallpapers/4500025-retrowave-vaporwave-car-typography-purple-blue-chromatic-aberration-initial-d-hachi-roku.jpg"

View File

@ -0,0 +1 @@
echo "/home/iceyrazor/stuff/media/wallpapers/tumblr_06bbd355f3e355049446dac24f6e7c44_2c486f77_1280 ninesols.jpg"

View File

@ -0,0 +1 @@
echo "/home/iceyrazor/stuff/media/wallpapers/6b06108fa3bc46f5.jpg"

View File

@ -0,0 +1 @@
echo "/home/iceyrazor/stuff/media/wallpapers/dark_leaves.png"

View File

@ -1,2 +1,5 @@
MD013: false MD013: false # max line length
MD007: false MD007: false # ul indendtation
MD025: false # single h1 title
MD012:
maximum: 2 # maximum blank lines