mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Delete postrun
This commit is contained in:
parent
d320fde941
commit
5479405d00
@ -1,28 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
source "${HOME}/.cache/wal/colors.sh"
|
|
||||||
|
|
||||||
mkdir -p "${HOME}/.config/dunst"
|
|
||||||
mkdir -p "${HOME}/.config/zathura"
|
|
||||||
ln -sf "${HOME}/.cache/wal/dunstrc" "${HOME}/.config/dunst/dunstrc"
|
|
||||||
ln -sf "${HOME}/.cache/wal/zathurarc" "${HOME}/.config/zathura/zathurarc"
|
|
||||||
|
|
||||||
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 <"${HOME}/.cache/wal/sequences"
|
|
||||||
|
|
||||||
pkill dunst
|
|
||||||
dunst &
|
|
||||||
Loading…
x
Reference in New Issue
Block a user