diff options
author | 2024-03-25 16:43:09 +0530 | |
---|---|---|
committer | 2024-03-25 16:43:09 +0530 | |
commit | a62114c91f2070c8c8453d117f3d81dc113e41ff (patch) | |
tree | f266e87af29a08c01f82bc32dd7d463d8ec4441a /wal/postrun | |
parent | af120ab348f2e1a5a39dec035ed9dcf84189a64e (diff) | |
download | dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.gz dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.bz2 dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.zip |
dotfile update
Diffstat (limited to 'wal/postrun')
-rwxr-xr-x | wal/postrun | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/wal/postrun b/wal/postrun deleted file mode 100755 index 61d8a41..0000000 --- a/wal/postrun +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -dunstconf="${XDG_CONFIG_HOME:-$HOME/.config}/dunst/dunstrc" -zathuraconf="${XDG_CONFIG_HOME:-$HOME/.config}/zathura/zathurarc" - -source "${XDG_CACHE_HOME:-$HOME/.cache}/wal/colors.sh" - -mkdir -p "${dunstconf%/*}" "${zathuraconf%/*}" - -mv -n "$dunstconf" "$dunstconf.bak" -mv -n "$zathuraconf" "$zathuraconf.bak" - -ln -sf "${XDG_CACHE_HOME:-$HOME/.cache}/wal/dunstrc" "$dunstconf" -ln -sf "${XDG_CACHE_HOME:-$HOME/.cache}/wal/zathurarc" "$zathuraconf" - -fix_sequences() { - e=$'\e' - sequences=$(cat) - foreground_color="$(echo -e "${sequences}\c" | grep --color=never -Eo "${e}]10[^${e}\\\\]*?${e}\\\\" | grep --color=never -Eo "#[0-9A-Fa-f]{6}")" - background_color="$(echo -e "${sequences}\c" | grep --color=never -Eo "${e}]11[^${e}\\\\]*?${e}\\\\" | grep --color=never -Eo "#[0-9A-Fa-f]{6}")" - cursor_color="$(echo -e "${sequences}\c" | grep --color=never -Eo "${e}]12[^${e}\\\\]*?${e}\\\\" | grep --color=never -Eo "#[0-9A-Fa-f]{6}")" - - for term in /dev/pts/{0..9}*; do - echo -e "\e]4;256;${cursor_color}\a\c" > "${term}" 2>/dev/null - echo -e "\e]4;258;${background_color}\a\c" > "${term}" 2>/dev/null - echo -e "\e]4;259;${foreground_color}\a\c" > "${term}" 2>/dev/null - done -} - -fix_sequences <"${XDG_CACHE_HOME:-$HOME/.cache}/wal/sequences" - -pkill dunst; setsid -f dunst |