Update configs
Fix call to $EDITOR (and switch sh to bash) in edit Fix waybar mode (remove to fix layer) Add hyprland media keys
This commit is contained in:
parent
717d35f2b0
commit
9344f7ec3b
5 changed files with 12 additions and 13 deletions
14
.bin/edit
14
.bin/edit
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -69,19 +69,13 @@ _prepare_for_edit() {
|
||||||
_pre_checks
|
_pre_checks
|
||||||
|
|
||||||
# Prepare all files for editing and collect the names of the edit files
|
# Prepare all files for editing and collect the names of the edit files
|
||||||
all_edit_files=""
|
all_edit_files=()
|
||||||
for arg in "$@"; do
|
for arg in "$@"; do
|
||||||
edit_file=$(_prepare_for_edit "$arg")
|
edit_file=$(_prepare_for_edit "$arg")
|
||||||
all_edit_files="$all_edit_files $edit_file"
|
all_edit_files+=("$edit_file")
|
||||||
done
|
done
|
||||||
|
|
||||||
# Use a subshell to avoid overwriting $@
|
$EDITOR "${all_edit_files[@]}"
|
||||||
(
|
|
||||||
for file in $all_edit_files; do
|
|
||||||
set -- "$file" "$@"
|
|
||||||
done
|
|
||||||
$EDITOR "$@"
|
|
||||||
)
|
|
||||||
|
|
||||||
# Copy all edit files back
|
# Copy all edit files back
|
||||||
for arg in "$@"; do
|
for arg in "$@"; do
|
||||||
|
|
|
@ -17,7 +17,7 @@ alias clip='xclip -selection clipboard'
|
||||||
alias cp='cp -iv'
|
alias cp='cp -iv'
|
||||||
|
|
||||||
alias dcu='docker compose up -d'
|
alias dcu='docker compose up -d'
|
||||||
alias dcul='docker compose up -d && docker compose logs -tf'
|
alias dcul='docker compose up -d --force-recreate && docker compose logs -tf'
|
||||||
alias dcp='docker compose pull'
|
alias dcp='docker compose pull'
|
||||||
alias df='df -h'
|
alias df='df -h'
|
||||||
alias dns-flush='sudo systemctl restart systemd-resolved.service && sudo systemd-resolve --flush-caches && sudo resolvectl flush-caches'
|
alias dns-flush='sudo systemctl restart systemd-resolved.service && sudo systemd-resolve --flush-caches && sudo resolvectl flush-caches'
|
||||||
|
@ -63,6 +63,7 @@ alias sail='bash vendor/bin/sail'
|
||||||
alias sl='ls'
|
alias sl='ls'
|
||||||
alias sudo='sudo '
|
alias sudo='sudo '
|
||||||
|
|
||||||
|
alias taketemp='take $(mktemp -d)'
|
||||||
alias tokei='tokei --hidden'
|
alias tokei='tokei --hidden'
|
||||||
|
|
||||||
alias watch='watch -c'
|
alias watch='watch -c'
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
bat # cat-alternative
|
bat # cat-alternative
|
||||||
direnv # tool to load custom environments
|
direnv # tool to load custom environments
|
||||||
docker-credential-helpers
|
docker-credential-helpers
|
||||||
dogdns # dns client
|
doggo # dns client
|
||||||
eza # ls-alternative
|
eza # ls-alternative
|
||||||
faas-cli # cli for openfaas
|
faas-cli # cli for openfaas
|
||||||
fzf # fuzzy finder
|
fzf # fuzzy finder
|
||||||
|
|
|
@ -16,6 +16,11 @@ bind = $main_mod CTRL, Print, exec, screenshot --no-upload
|
||||||
|
|
||||||
bind = $main_mod SHIFT, R, exec, autostart-manage run-wayland
|
bind = $main_mod SHIFT, R, exec, autostart-manage run-wayland
|
||||||
|
|
||||||
|
# Binds for Media keys
|
||||||
|
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||||
|
bindl = , XF86AudioPause, exec, playerctl pause
|
||||||
|
bindl = , XF86AudioNext, exec, playerctl next
|
||||||
|
bindl = , XF86AudioPrev, exec, playerctl prev
|
||||||
|
|
||||||
# Move focus with mainMod + hjkl keys
|
# Move focus with mainMod + hjkl keys
|
||||||
bind = $main_mod, h, movefocus, l
|
bind = $main_mod, h, movefocus, l
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
"position": "bottom",
|
"position": "bottom",
|
||||||
"height": 24,
|
"height": 24,
|
||||||
"spacing": 6,
|
"spacing": 6,
|
||||||
"mode": "dock",
|
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"hyprland/workspaces"
|
"hyprland/workspaces"
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue