mirror of
https://github.com/adi1090x/rofi.git
synced 2024-11-23 14:48:22 -05:00
add pywal.sh
running this script makes changes to $HOME/.config/rofi/colors/pywal.rasi.
This commit is contained in:
parent
f4d09c2ade
commit
cb5376452c
14
files/scripts/pywal.sh
Normal file
14
files/scripts/pywal.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
background=$(sed -n 's/^ *background: *\(#\([0-9a-fA-F]\{6\}\)\);.*$/\1/p' ~/.cache/wal/colors-rofi-dark.rasi)
|
||||||
|
foreground=$(sed -n 's/^ *foreground: *\(#\([0-9a-fA-F]\{6\}\)\);.*$/\1/p' ~/.cache/wal/colors-rofi-dark.rasi)
|
||||||
|
selected_normal_background=$(sed -n 's/^ *selected-normal-background: *\(#\([0-9a-fA-F]\{6\}\)\);.*$/\1/p' ~/.cache/wal/colors-rofi-dark.rasi)
|
||||||
|
selected_active_background=$(sed -n 's/^ *selected-active-background: *\(#\([0-9a-fA-F]\{6\}\)\);.*$/\1/p' ~/.cache/wal/colors-rofi-dark.rasi)
|
||||||
|
selected_urgent_background=$(sed -n 's/^ *selected-urgent-background: *\(#\([0-9a-fA-F]\{6\}\)\);.*$/\1/p' ~/.cache/wal/colors-rofi-dark.rasi)
|
||||||
|
|
||||||
|
sed -i "s/background: .*/background: $background;/" ~/.config/rofi/colors/pywal.rasi
|
||||||
|
sed -i "s/background-alt: .*/background-alt: $background;/" ~/.config/rofi/colors/pywal.rasi
|
||||||
|
sed -i "s/foreground: .*/foreground: $foreground;/" ~/.config/rofi/colors/pywal.rasi
|
||||||
|
sed -i "s/selected: .*/selected: $selected_normal_background;/" ~/.config/rofi/colors/pywal.rasi
|
||||||
|
sed -i "s/active: .*/active: $selected_active_background;/" ~/.config/rofi/colors/pywal.rasi
|
||||||
|
sed -i "s/urgent: .*/urgent: $selected_urgent_background;/" ~/.config/rofi/colors/pywal.rasi
|
Loading…
Reference in New Issue
Block a user