mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
bin: refactor and reformat
This commit is contained in:
parent
efb4418451
commit
5d78ad3d43
7 changed files with 16 additions and 16 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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) | ."
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue