update colorscheme for new bar

This commit is contained in:
ksyasuda 2021-11-15 15:29:58 -08:00
parent 9abd3b77cf
commit c982c898e0
5 changed files with 91 additions and 83 deletions

View File

@ -612,5 +612,5 @@ bindsym $mod+Shift+e exec --no-startup-id emacsclient -n -c ~
bindsym $mod+Shift+v exec --no-startup-id emacsclient -n -c -e '(+vterm/here nil)' bindsym $mod+Shift+v exec --no-startup-id emacsclient -n -c -e '(+vterm/here nil)'
bindsym $mod+Shift+Return exec --no-startup-id emacsclient -n -c -e '(+vterm/here nil)' bindsym $mod+Shift+Return exec --no-startup-id emacsclient -n -c -e '(+vterm/here nil)'
bindsym Control+Shift+a exec --no-startup-id ~/SudacodeRice/scripts/emc ~/Projects/Scripts/aniwrapper bindsym Control+Shift+a exec --no-startup-id ~/SudacodeRice/scripts/emc ~/Projects/Scripts/aniwrapper
bindsym Control+e exec --no-startup-id ~/SudacodeRice/scripts/emc ~/.config bindsym Control+Shift+e exec --no-startup-id ~/SudacodeRice/scripts/emc ~/.config
bindsym Control+h exec --no-startup-id emacsclient -n -c ~/org/help/links.org bindsym Control+Shift+h exec --no-startup-id emacsclient -n -c ~/org/help/links.org

View File

@ -13,24 +13,35 @@
;; main colors ;; main colors
background = #3B4252 background = #3B4252
background-alt = #4C566A ; background-alt = #4C566A
background-alt = "#464b55"
foreground = #ECEFF4 foreground = #ECEFF4
foreground-alt = #E5E9F0 ; foreground-alt = #E5E9F0
primary = #A3BE8C foreground-alt = "#abb2bf"
primary = "#98be65"
white = #FFFFFF ; white = #FFFFFF
black = #000000 white = "#bbc2cf"
red = #EC7875 ; black = #000000
black = "#464b55"
; red = #EC7875
red = "#ff6c6b"
pink = #EC6798 pink = #EC6798
purple = #BE78D1 ; purple = #BE78D1
blue = #75A4CD purple = "#c678dd"
cyan = #00C7DF ; blue = #75A4CD
blue = "#51afef"
; cyan = #00C7DF
cyan = "#46d9ff"
teal = #00B19F teal = #00B19F
green = #61C766 ; green = #61C766
green = "#98be65"
lime = #B9C244 lime = #B9C244
yellow = #EBD369 ; yellow = #EBD369
yellow = "#ecbe7b"
amber = #EDB83F amber = #EDB83F
orange = #E57C46 ; orange = #E57C46
orange = #da8548
brown = #AC8476 brown = #AC8476
gray = #9E9E9E gray = #9E9E9E
indigo = #6C77BB indigo = #6C77BB

View File

@ -1312,7 +1312,7 @@ label-active-background = ${color.primary}
label-occupied = %icon% %name% label-occupied = %icon% %name%
; label-occupied-foreground = ${color.indigo} ; label-occupied-foreground = ${color.indigo}
label-occupied-foreground = ${color.foreground} label-occupied-foreground = ${color.foreground}
label-occupied-background = ${color.gray} label-occupied-background = ${color.black}
; Available tokens: ; Available tokens:
; %name% ; %name%

View File

@ -5,7 +5,7 @@
## Github : @adi1090x ## Github : @adi1090x
## Twitter : @adi1090x ## Twitter : @adi1090x
dir="~/.config/polybar/blocks/scripts/rofi" dir="$HOME/SudacodeRice/polybar-themes/sblocks/scripts/rofi"
uptime=$(uptime -p | sed -e 's/up //g') uptime=$(uptime -p | sed -e 's/up //g')
rofi_command="rofi -theme $dir/powermenu.rasi" rofi_command="rofi -theme $dir/powermenu.rasi"
@ -19,16 +19,13 @@ logout=" Logout"
# Confirmation # Confirmation
confirm_exit() { confirm_exit() {
rofi -dmenu\ rofi -dmenu -i -no-fixed-num-lines -p "Are You Sure? : " \
-i\ -theme $dir/confirm.rasi
-no-fixed-num-lines\
-p "Are You Sure? : "\
-theme $dir/confirm.rasi
} }
# Message # Message
msg() { msg() {
rofi -theme "$dir/message.rasi" -e "Available Options - yes / y / no / n" rofi -theme "$dir/message.rasi" -e "Available Options - yes / y / no / n"
} }
# Variable passed to rofi # Variable passed to rofi
@ -37,58 +34,58 @@ options="$lock\n$suspend\n$logout\n$reboot\n$shutdown"
chosen="$(echo -e "$options" | $rofi_command -p "Uptime: $uptime" -dmenu -selected-row 0)" chosen="$(echo -e "$options" | $rofi_command -p "Uptime: $uptime" -dmenu -selected-row 0)"
case $chosen in case $chosen in
$shutdown) $shutdown)
ans=$(confirm_exit &) ans=$(confirm_exit &)
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
systemctl poweroff systemctl poweroff
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
exit 0 exit 0
else else
msg msg
fi fi
;; ;;
$reboot) $reboot)
ans=$(confirm_exit &) ans=$(confirm_exit &)
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
systemctl reboot systemctl reboot
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
exit 0 exit 0
else else
msg msg
fi fi
;; ;;
$lock) $lock)
if [[ -f /usr/bin/i3lock ]]; then if [[ -f /usr/bin/i3lock ]]; then
i3lock i3lock
elif [[ -f /usr/bin/betterlockscreen ]]; then elif [[ -f /usr/bin/betterlockscreen ]]; then
betterlockscreen -l betterlockscreen -l
fi fi
;; ;;
$suspend) $suspend)
ans=$(confirm_exit &) ans=$(confirm_exit &)
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
mpc -q pause mpc -q pause
amixer set Master mute amixer set Master mute
systemctl suspend systemctl suspend
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
exit 0 exit 0
else else
msg msg
fi fi
;; ;;
$logout) $logout)
ans=$(confirm_exit &) ans=$(confirm_exit &)
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then
openbox --exit openbox --exit
elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then
bspc quit bspc quit
elif [[ "$DESKTOP_SESSION" == "i3" ]]; then elif [[ "$DESKTOP_SESSION" == "i3" ]]; then
i3-msg exit i3-msg exit
fi fi
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
exit 0 exit 0
else else
msg msg
fi fi
;; ;;
esac esac

View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Color files # Color files
PFILE="$HOME/.config/polybar/blocks/colors.ini" PFILE="$HOME/SudacodeRice/polybar-themes/sblocks/colors.ini"
RFILE="$HOME/.config/polybar/blocks/scripts/rofi/colors.rasi" RFILE="$HOME/SudacodeRice/polybar-themes/sblocks/scripts/rofi/colors.rasi"
# Change colors # Change colors
change_color() { change_color() {
@ -12,54 +12,54 @@ change_color() {
sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE sed -i -e "s/foreground = #.*/foreground = $FG/g" $PFILE
sed -i -e "s/foreground-alt = #.*/foreground-alt = $FGA/g" $PFILE sed -i -e "s/foreground-alt = #.*/foreground-alt = $FGA/g" $PFILE
sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE
# rofi
cat > $RFILE <<- EOF
/* colors */
* { # rofi
al: #00000000; cat >$RFILE <<-EOF
bg: ${BG}FF; /* colors */
bga: ${BGA}FF;
fga: ${FGA}FF; * {
fg: ${FG}FF; al: #00000000;
ac: ${AC}FF; bg: ${BG}FF;
se: ${AC}40; bga: ${BGA}FF;
} fga: ${FGA}FF;
fg: ${FG}FF;
ac: ${AC}FF;
se: ${AC}40;
}
EOF EOF
polybar-msg cmd restart polybar-msg cmd restart
} }
if [[ $1 = "--default" ]]; then if [[ $1 = "--default" ]]; then
BG="#2f343f" BG="#2f343f"
BGA="#C4C7C5" BGA="#C4C7C5"
FGA="#C4C7C5" FGA="#C4C7C5"
FG="#1C1E20" FG="#1C1E20"
AC="#B4BC67" AC="#B4BC67"
change_color change_color
elif [[ $1 = "--nord" ]]; then elif [[ $1 = "--nord" ]]; then
BG="#3B4252" BG="#3B4252"
BGA="#4C566A" BGA="#4C566A"
FGA="#E5E9F0" FGA="#E5E9F0"
FG="#ECEFF4" FG="#ECEFF4"
AC="#A3BE8C" AC="#A3BE8C"
change_color change_color
elif [[ $1 = "--gruvbox" ]]; then elif [[ $1 = "--gruvbox" ]]; then
BG="#282828" BG="#282828"
BGA="#EBDBB2" BGA="#EBDBB2"
FGA="#EBDBB2" FGA="#EBDBB2"
FG="#282828" FG="#282828"
AC="#CC241D" AC="#CC241D"
change_color change_color
elif [[ $1 = "--adapta" ]]; then elif [[ $1 = "--adapta" ]]; then
BG="#243035" BG="#243035"
BGA="#38444A" BGA="#38444A"
FGA="#FDF6E3" FGA="#FDF6E3"
FG="#FFFFFF" FG="#FFFFFF"
AC="#4DD0E1" AC="#4DD0E1"
change_color change_color
elif [[ $1 = "--cherry" ]]; then elif [[ $1 = "--cherry" ]]; then
BG="#1F1626" BG="#1F1626"
BGA="#423949" BGA="#423949"
FGA="#FFFFFF" FGA="#FFFFFF"
@ -67,8 +67,8 @@ elif [[ $1 = "--cherry" ]]; then
AC="#D94085" AC="#D94085"
change_color change_color
else else
cat <<- _EOF_ cat <<-_EOF_
No option specified, Available options: No option specified, Available options:
--default --nord --gruvbox --adapta --cherry --default --nord --gruvbox --adapta --cherry
_EOF_ _EOF_
fi fi