bin: refactor and reformat

This commit is contained in:
Smirnov Oleksandr 2024-12-29 22:28:52 +02:00
parent efb4418451
commit 5d78ad3d43
No known key found for this signature in database
7 changed files with 16 additions and 16 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
sudo pacman -Syyuu --noconfirm sudo pacman -Syyuu --noconfirm
paru -Sua --noconfirm paru -Sua --noconfirm
sudo pacman -Rs $(pacman -Qdtq | sed 's/\n/ /g') --noconfirm sudo pacman -Rs "$(pacman -Qdtq | sed 's/\n/ /g')" --noconfirm

View file

@ -1,3 +1,2 @@
#!/usr/bin/env bash #!/usr/bin/env bash
curl -s ipinfo.io | jq "del(.readme) | del(.loc) | ." curl -s ipinfo.io | jq "del(.readme) | del(.loc) | ."

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ -n "$1" ]; then if [ -n "$1" ]; then
exec gh issue edit "$@" exec gh issue edit "$@"
fi fi
exec gh issue create exec gh issue create

View file

@ -1,2 +1,2 @@
#!/usr/bin/env bash #!/usr/bin/env bash
exec npm i -g yaml-language-server vscode-langservers-extracted typescript-language-server bash-language-server svelte-language-server exec npm i -g yaml-language-server vscode-langservers-extracted typescript-language-server bash-language-server

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
p=$HOME/Documents/Syncthing/logseq/journals p=$HOME/Documents/Obsidian/journal
d=$(date +%Y-%m-%d) d=$(date +%Y-%m-%d)
[ -d "$p" ] && exec nvim "$p/$d.md" [ -d "$p" ] && exec nvim "$p/$d.md"

View file

@ -2,19 +2,19 @@
entries="⏻ poweroff\n⇠ logout\n⏾ suspend\n⭮ reboot" entries="⏻ poweroff\n⇠ logout\n⏾ suspend\n⭮ reboot"
selected=$(echo -e "$entries" | selected=$(echo -e "$entries" |
wofi --dmenu --cache-file /dev/null | wofi --dmenu --cache-file /dev/null |
awk '{print tolower($2)}') awk '{print tolower($2)}')
shall_continue() { shall_continue() {
entries="Yes\nNo" entries="Yes\nNo"
selected=$(echo -e "$entries" | selected=$(echo -e "$entries" |
wofi --dmenu --cache-file /dev/null | wofi --dmenu --cache-file /dev/null |
awk '{print tolower($1)}') awk '{print tolower($1)}')
case $selected in case $selected in
yes) exec "$@" ;; yes) exec "$@" ;;
no) exit 0 ;; no) exit 0 ;;
esac esac
} }
case $selected in case $selected in

View file

@ -165,7 +165,8 @@ windowrulev2 = rounding 0, floating:0, onworkspace:f[1]
bind = $mod, f, fullscreen bind = $mod, f, fullscreen
bind = $mod Ctrl, f, togglefloating bind = $mod Ctrl, f, togglefloating
bind = , Print, exec, grim -g "$(slurp)" - | wl-copy bind = , Print, exec, hyprshot -m region
bind = , SHIFT Print, exec, hyprshot -m output
# programs {{{ # programs {{{
bind = $mod SHIFT, w, exec, brave bind = $mod SHIFT, w, exec, brave