Compare commits

...

4 Commits

Author SHA1 Message Date
Mallar Bhattachaya
2c62debea2
Merge cb5376452c into f7bc0216ca 2024-10-07 18:57:04 +02:00
adi1090x
f7bc0216ca Deploying to master from @ adi1090x/rofi@dce10e92b6 🚀 2024-10-05 15:04:35 +00:00
Mallar Bhattachaya
cb5376452c
add pywal.sh
running this script makes changes to $HOME/.config/rofi/colors/pywal.rasi.
2024-08-23 16:49:00 +05:30
Mallar Bhattachaya
f4d09c2ade
Create pywal.rasi 2024-08-23 16:42:21 +05:30
3 changed files with 31 additions and 1 deletions

View File

@ -109,7 +109,7 @@ $ ./setup.sh
</p>
<p align="center">
<!-- sponsors --><a href="https://github.com/davidtoska"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;15263867?u&#x3D;7f45e973d008c1c9fc573554a95efac83751e726&amp;v&#x3D;4" width="60px" alt="David Toska" /></a><a href="https://github.com/kkkutup"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;142684677?v&#x3D;4" width="60px" alt="" /></a><a href="https://github.com/snubbi1954-elementary"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;162145059?u&#x3D;16ee4fee3e95ea7bc1599abdb2ff0ec4a2385ea2&amp;v&#x3D;4" width="60px" alt="Carl Andersen" /></a><!-- sponsors -->
<!-- sponsors --><a href="https://github.com/davidtoska"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;15263867?u&#x3D;7f45e973d008c1c9fc573554a95efac83751e726&amp;v&#x3D;4" width="60px" alt="David Toska" /></a><a href="https://github.com/kkkutup"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;142684677?v&#x3D;4" width="60px" alt="" /></a><a href="https://github.com/snubbi1954-elementary"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;162145059?u&#x3D;16ee4fee3e95ea7bc1599abdb2ff0ec4a2385ea2&amp;v&#x3D;4" width="60px" alt="Carl Andersen" /></a><a href="https://github.com/12c76dc"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;88608064?u&#x3D;856f093e16e6d33996d2548d871884994b3ee627&amp;v&#x3D;4" width="60px" alt="" /></a><!-- sponsors -->
</p>
---

16
files/colors/pywal.rasi Normal file
View File

@ -0,0 +1,16 @@
/**
*
* Author : Mallar Bhattacharya
* Github : @mallar-B
*
* Colors
**/
* {
background: #111213;
background-alt: #111213;
foreground: #ccc4ba;
selected: #6C6658;
active: #4E4F47;
urgent: #897559;
}

14
files/scripts/pywal.sh Normal file
View 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