mirror of
https://github.com/ksyasuda/rice.git
synced 2024-10-28 09:04:10 -07:00
update colorscheme for new bar
This commit is contained in:
parent
9abd3b77cf
commit
c982c898e0
@ -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+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+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+e exec --no-startup-id ~/SudacodeRice/scripts/emc ~/.config
|
||||
bindsym Control+Shift+h exec --no-startup-id emacsclient -n -c ~/org/help/links.org
|
||||
|
@ -13,24 +13,35 @@
|
||||
|
||||
;; main colors
|
||||
background = #3B4252
|
||||
background-alt = #4C566A
|
||||
; background-alt = #4C566A
|
||||
background-alt = "#464b55"
|
||||
foreground = #ECEFF4
|
||||
foreground-alt = #E5E9F0
|
||||
primary = #A3BE8C
|
||||
; foreground-alt = #E5E9F0
|
||||
foreground-alt = "#abb2bf"
|
||||
primary = "#98be65"
|
||||
|
||||
white = #FFFFFF
|
||||
black = #000000
|
||||
red = #EC7875
|
||||
; white = #FFFFFF
|
||||
white = "#bbc2cf"
|
||||
; black = #000000
|
||||
black = "#464b55"
|
||||
; red = #EC7875
|
||||
red = "#ff6c6b"
|
||||
pink = #EC6798
|
||||
purple = #BE78D1
|
||||
blue = #75A4CD
|
||||
cyan = #00C7DF
|
||||
; purple = #BE78D1
|
||||
purple = "#c678dd"
|
||||
; blue = #75A4CD
|
||||
blue = "#51afef"
|
||||
; cyan = #00C7DF
|
||||
cyan = "#46d9ff"
|
||||
teal = #00B19F
|
||||
green = #61C766
|
||||
; green = #61C766
|
||||
green = "#98be65"
|
||||
lime = #B9C244
|
||||
yellow = #EBD369
|
||||
; yellow = #EBD369
|
||||
yellow = "#ecbe7b"
|
||||
amber = #EDB83F
|
||||
orange = #E57C46
|
||||
; orange = #E57C46
|
||||
orange = #da8548
|
||||
brown = #AC8476
|
||||
gray = #9E9E9E
|
||||
indigo = #6C77BB
|
||||
|
@ -1312,7 +1312,7 @@ label-active-background = ${color.primary}
|
||||
label-occupied = %icon% %name%
|
||||
; label-occupied-foreground = ${color.indigo}
|
||||
label-occupied-foreground = ${color.foreground}
|
||||
label-occupied-background = ${color.gray}
|
||||
label-occupied-background = ${color.black}
|
||||
|
||||
; Available tokens:
|
||||
; %name%
|
||||
|
@ -5,7 +5,7 @@
|
||||
## Github : @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')
|
||||
|
||||
rofi_command="rofi -theme $dir/powermenu.rasi"
|
||||
@ -19,16 +19,13 @@ logout=" Logout"
|
||||
|
||||
# Confirmation
|
||||
confirm_exit() {
|
||||
rofi -dmenu\
|
||||
-i\
|
||||
-no-fixed-num-lines\
|
||||
-p "Are You Sure? : "\
|
||||
-theme $dir/confirm.rasi
|
||||
rofi -dmenu -i -no-fixed-num-lines -p "Are You Sure? : " \
|
||||
-theme $dir/confirm.rasi
|
||||
}
|
||||
|
||||
# Message
|
||||
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
|
||||
@ -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)"
|
||||
case $chosen in
|
||||
$shutdown)
|
||||
ans=$(confirm_exit &)
|
||||
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
||||
systemctl poweroff
|
||||
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
||||
exit 0
|
||||
ans=$(confirm_exit &)
|
||||
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
||||
systemctl poweroff
|
||||
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
||||
exit 0
|
||||
else
|
||||
msg
|
||||
msg
|
||||
fi
|
||||
;;
|
||||
$reboot)
|
||||
ans=$(confirm_exit &)
|
||||
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
||||
systemctl reboot
|
||||
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
||||
exit 0
|
||||
ans=$(confirm_exit &)
|
||||
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
||||
systemctl reboot
|
||||
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
||||
exit 0
|
||||
else
|
||||
msg
|
||||
msg
|
||||
fi
|
||||
;;
|
||||
$lock)
|
||||
if [[ -f /usr/bin/i3lock ]]; then
|
||||
i3lock
|
||||
elif [[ -f /usr/bin/betterlockscreen ]]; then
|
||||
betterlockscreen -l
|
||||
fi
|
||||
if [[ -f /usr/bin/i3lock ]]; then
|
||||
i3lock
|
||||
elif [[ -f /usr/bin/betterlockscreen ]]; then
|
||||
betterlockscreen -l
|
||||
fi
|
||||
;;
|
||||
$suspend)
|
||||
ans=$(confirm_exit &)
|
||||
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
||||
mpc -q pause
|
||||
amixer set Master mute
|
||||
systemctl suspend
|
||||
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
||||
exit 0
|
||||
ans=$(confirm_exit &)
|
||||
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
||||
mpc -q pause
|
||||
amixer set Master mute
|
||||
systemctl suspend
|
||||
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
||||
exit 0
|
||||
else
|
||||
msg
|
||||
msg
|
||||
fi
|
||||
;;
|
||||
$logout)
|
||||
ans=$(confirm_exit &)
|
||||
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
||||
if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then
|
||||
openbox --exit
|
||||
elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then
|
||||
bspc quit
|
||||
elif [[ "$DESKTOP_SESSION" == "i3" ]]; then
|
||||
i3-msg exit
|
||||
fi
|
||||
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
||||
exit 0
|
||||
ans=$(confirm_exit &)
|
||||
if [[ $ans == "yes" || $ans == "YES" || $ans == "y" || $ans == "Y" ]]; then
|
||||
if [[ "$DESKTOP_SESSION" == "Openbox" ]]; then
|
||||
openbox --exit
|
||||
elif [[ "$DESKTOP_SESSION" == "bspwm" ]]; then
|
||||
bspc quit
|
||||
elif [[ "$DESKTOP_SESSION" == "i3" ]]; then
|
||||
i3-msg exit
|
||||
fi
|
||||
elif [[ $ans == "no" || $ans == "NO" || $ans == "n" || $ans == "N" ]]; then
|
||||
exit 0
|
||||
else
|
||||
msg
|
||||
msg
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Color files
|
||||
PFILE="$HOME/.config/polybar/blocks/colors.ini"
|
||||
RFILE="$HOME/.config/polybar/blocks/scripts/rofi/colors.rasi"
|
||||
PFILE="$HOME/SudacodeRice/polybar-themes/sblocks/colors.ini"
|
||||
RFILE="$HOME/SudacodeRice/polybar-themes/sblocks/scripts/rofi/colors.rasi"
|
||||
|
||||
# Change colors
|
||||
change_color() {
|
||||
@ -14,52 +14,52 @@ change_color() {
|
||||
sed -i -e "s/primary = #.*/primary = $AC/g" $PFILE
|
||||
|
||||
# rofi
|
||||
cat > $RFILE <<- EOF
|
||||
/* colors */
|
||||
cat >$RFILE <<-EOF
|
||||
/* colors */
|
||||
|
||||
* {
|
||||
al: #00000000;
|
||||
bg: ${BG}FF;
|
||||
bga: ${BGA}FF;
|
||||
fga: ${FGA}FF;
|
||||
fg: ${FG}FF;
|
||||
ac: ${AC}FF;
|
||||
se: ${AC}40;
|
||||
}
|
||||
* {
|
||||
al: #00000000;
|
||||
bg: ${BG}FF;
|
||||
bga: ${BGA}FF;
|
||||
fga: ${FGA}FF;
|
||||
fg: ${FG}FF;
|
||||
ac: ${AC}FF;
|
||||
se: ${AC}40;
|
||||
}
|
||||
EOF
|
||||
|
||||
polybar-msg cmd restart
|
||||
}
|
||||
|
||||
if [[ $1 = "--default" ]]; then
|
||||
if [[ $1 = "--default" ]]; then
|
||||
BG="#2f343f"
|
||||
BGA="#C4C7C5"
|
||||
FGA="#C4C7C5"
|
||||
FG="#1C1E20"
|
||||
AC="#B4BC67"
|
||||
change_color
|
||||
elif [[ $1 = "--nord" ]]; then
|
||||
elif [[ $1 = "--nord" ]]; then
|
||||
BG="#3B4252"
|
||||
BGA="#4C566A"
|
||||
FGA="#E5E9F0"
|
||||
FG="#ECEFF4"
|
||||
AC="#A3BE8C"
|
||||
change_color
|
||||
elif [[ $1 = "--gruvbox" ]]; then
|
||||
elif [[ $1 = "--gruvbox" ]]; then
|
||||
BG="#282828"
|
||||
BGA="#EBDBB2"
|
||||
FGA="#EBDBB2"
|
||||
FG="#282828"
|
||||
AC="#CC241D"
|
||||
change_color
|
||||
elif [[ $1 = "--adapta" ]]; then
|
||||
elif [[ $1 = "--adapta" ]]; then
|
||||
BG="#243035"
|
||||
BGA="#38444A"
|
||||
FGA="#FDF6E3"
|
||||
FG="#FFFFFF"
|
||||
AC="#4DD0E1"
|
||||
change_color
|
||||
elif [[ $1 = "--cherry" ]]; then
|
||||
elif [[ $1 = "--cherry" ]]; then
|
||||
BG="#1F1626"
|
||||
BGA="#423949"
|
||||
FGA="#FFFFFF"
|
||||
@ -67,8 +67,8 @@ elif [[ $1 = "--cherry" ]]; then
|
||||
AC="#D94085"
|
||||
change_color
|
||||
else
|
||||
cat <<- _EOF_
|
||||
No option specified, Available options:
|
||||
--default --nord --gruvbox --adapta --cherry
|
||||
cat <<-_EOF_
|
||||
No option specified, Available options:
|
||||
--default --nord --gruvbox --adapta --cherry
|
||||
_EOF_
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user