From f4d09c2ade25a7061616c79439c1f417077063a4 Mon Sep 17 00:00:00 2001 From: Mallar Bhattachaya <137499848+mallar-B@users.noreply.github.com> Date: Fri, 23 Aug 2024 16:42:21 +0530 Subject: [PATCH 1/2] Create pywal.rasi --- files/colors/pywal.rasi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 files/colors/pywal.rasi diff --git a/files/colors/pywal.rasi b/files/colors/pywal.rasi new file mode 100644 index 0000000..edb6969 --- /dev/null +++ b/files/colors/pywal.rasi @@ -0,0 +1,16 @@ +/** + * + * Author : Mallar Bhattacharya + * Github : @mallar-B + * + * Colors + **/ + +* { + background: #111213; + background-alt: #111213; + foreground: #ccc4ba; + selected: #6C6658; + active: #4E4F47; + urgent: #897559; +} From cb5376452ca8fbdac43eb622ad4c9171bf11e8c8 Mon Sep 17 00:00:00 2001 From: Mallar Bhattachaya <137499848+mallar-B@users.noreply.github.com> Date: Fri, 23 Aug 2024 16:49:00 +0530 Subject: [PATCH 2/2] add pywal.sh running this script makes changes to $HOME/.config/rofi/colors/pywal.rasi. --- files/scripts/pywal.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 files/scripts/pywal.sh diff --git a/files/scripts/pywal.sh b/files/scripts/pywal.sh new file mode 100644 index 0000000..dd2280a --- /dev/null +++ b/files/scripts/pywal.sh @@ -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