diff --git a/bin/rofi-files b/bin/rofi-files deleted file mode 100755 index c9bfe4e..0000000 --- a/bin/rofi-files +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash - -# getting focused pwd -PID=$(xdotool getwindowfocus getwindowpid) -child=$PID -children=() -while [ -n "$child" ] ; do - children+=($child) - child=$(pgrep -P $child) -done - -last_ps=$(ps ${children[-1]} | grep -v PID | awk '{print $5}') - -if [ "$last_ps" == "tmux" ] ; then - current_pane=$(tmux list-panes | grep '(active)' | grep -o '^[0-9]') - cwd=$(tmux display-message -p -t $current_pane -F '#{pane_current_path}') -else - cwd=$(readlink -e /proc/${children[-1]}/cwd) -fi - -# change to the directory -cd $cwd -files=$(find * -type f) - -selection=$(echo "$files" | rofi-dmenu) - -# exit on quit -if [ -z "$selection" ] ; then - exit 0 -fi - -# grab extension -extension=$(echo "$selection" | grep -o '.\([a-zA-Z]\+\)$') - -# get proper opener -case "$extension" in - '.pdf') prg="zathura" ;; - '.md') prg="vim" ;; - '.png') prg="feh" ;; - '.jpg') prg="feh" ;; - '.jpeg') prg="feh" ;; - *) prg="xdg-open" ;; -esac - -if [[ "$1" == '-S' && "$prg" =~ [feh|zathura] ]] ; then - swallow $prg "$selection" -else - $prg "$selection" -fi diff --git a/editors/neovim b/editors/neovim index 0f52a17..1ff3319 160000 --- a/editors/neovim +++ b/editors/neovim @@ -1 +1 @@ -Subproject commit 0f52a172cc2bfc4f5f059f181cf37e8f2f1b69c2 +Subproject commit 1ff331968225f5854d4790de73d2b8e2af545171 diff --git a/gui/rofi b/gui/rofi index dbf546e..7dd2a2e 160000 --- a/gui/rofi +++ b/gui/rofi @@ -1 +1 @@ -Subproject commit dbf546e61c0ca848f2474db55b601dead6d41f7e +Subproject commit 7dd2a2e4a6ad4423a5e8889550b53556711e8ce4 diff --git a/meta/configs/scripts.yaml b/meta/configs/scripts.yaml index de8d9b0..9422c89 100644 --- a/meta/configs/scripts.yaml +++ b/meta/configs/scripts.yaml @@ -8,7 +8,6 @@ - link: ~/.local/bin/ssh_agent_check: bin/ssh_agent_check ~/.local/bin/poly_spotify: bin/poly_spotify - ~/.local/bin/rofi-files: bin/rofi-files ~/.local/bin/i3-scratchpad.sh: bin/i3-scratchpad.sh ~/.local/bin/todo_display.sh: bin/todo_display.sh ~/.local/bin/display_uptime: bin/display_uptime diff --git a/shells/oh-my-zsh/custom/themes/powerlevel10k b/shells/oh-my-zsh/custom/themes/powerlevel10k index 045f006..0af598c 160000 --- a/shells/oh-my-zsh/custom/themes/powerlevel10k +++ b/shells/oh-my-zsh/custom/themes/powerlevel10k @@ -1 +1 @@ -Subproject commit 045f006c50d782a6d3acbd8a07d1595322ff7e43 +Subproject commit 0af598cbed78660066f8a8f4465844501ba5695b diff --git a/src/fzf b/src/fzf index 96670d5..9499910 160000 --- a/src/fzf +++ b/src/fzf @@ -1 +1 @@ -Subproject commit 96670d5f16dcf23d590eb1d83d1de351b2e8fb15 +Subproject commit 94999101e358385f3ca67a6ec9512f549196b802 diff --git a/src/timetracker b/src/timetracker index c5672a5..613dfb9 160000 --- a/src/timetracker +++ b/src/timetracker @@ -1 +1 @@ -Subproject commit c5672a5864bc78a932de438e4f64fefcee5c6ea6 +Subproject commit 613dfb9d259166a40d0781e26b8ecd0f59648a25 diff --git a/src/tmux-mem-cpu-load b/src/tmux-mem-cpu-load index 6d96a8a..a991497 160000 --- a/src/tmux-mem-cpu-load +++ b/src/tmux-mem-cpu-load @@ -1 +1 @@ -Subproject commit 6d96a8a4906e91f44ddf97645d5c3c1980212402 +Subproject commit a991497b9ff7ca59148d00105a0b5fe4eb8e48e3 diff --git a/src/weather b/src/weather index 020bbf7..d27117b 160000 --- a/src/weather +++ b/src/weather @@ -1 +1 @@ -Subproject commit 020bbf7d64cc2f0c5d2a4ab96d45b8014ef54ad2 +Subproject commit d27117b8bc4f600657c7dd94310f60e784371eac