mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
updates
This commit is contained in:
parent
e52d4d1e6b
commit
e2ae951ad1
@ -12,35 +12,28 @@
|
|||||||
;; Use pywal.sh in scripts directory to use colors from an image/wallpaper.
|
;; Use pywal.sh in scripts directory to use colors from an image/wallpaper.
|
||||||
|
|
||||||
;; main colors
|
;; main colors
|
||||||
background = #3B4252
|
; background = #3B4252
|
||||||
|
background = #24282f
|
||||||
; background-alt = #4C566A
|
; background-alt = #4C566A
|
||||||
|
; background-alt = "#464b55"
|
||||||
background-alt = "#464b55"
|
background-alt = "#464b55"
|
||||||
foreground = #ECEFF4
|
; foreground = #ECEFF4
|
||||||
|
foreground = #bbc2cf
|
||||||
; foreground-alt = #E5E9F0
|
; foreground-alt = #E5E9F0
|
||||||
foreground-alt = "#abb2bf"
|
foreground-alt = "#abb2bf"
|
||||||
primary = "#98be65"
|
primary = "#98be65"
|
||||||
|
|
||||||
; white = #FFFFFF
|
|
||||||
white = "#bbc2cf"
|
white = "#bbc2cf"
|
||||||
; black = #000000
|
|
||||||
black = "#464b55"
|
black = "#464b55"
|
||||||
; red = #EC7875
|
|
||||||
red = "#ff6c6b"
|
red = "#ff6c6b"
|
||||||
pink = #EC6798
|
pink = #EC6798
|
||||||
; purple = #BE78D1
|
|
||||||
purple = "#c678dd"
|
purple = "#c678dd"
|
||||||
; blue = #75A4CD
|
|
||||||
blue = "#51afef"
|
blue = "#51afef"
|
||||||
; cyan = #00C7DF
|
|
||||||
cyan = "#46d9ff"
|
cyan = "#46d9ff"
|
||||||
teal = #00B19F
|
teal = #00B19F
|
||||||
; green = #61C766
|
|
||||||
green = "#98be65"
|
green = "#98be65"
|
||||||
lime = #B9C244
|
lime = #B9C244
|
||||||
; yellow = #EBD369
|
|
||||||
yellow = "#ecbe7b"
|
yellow = "#ecbe7b"
|
||||||
amber = #EDB83F
|
amber = #EDB83F
|
||||||
; orange = #E57C46
|
|
||||||
orange = #da8548
|
orange = #da8548
|
||||||
brown = #AC8476
|
brown = #AC8476
|
||||||
gray = #9E9E9E
|
gray = #9E9E9E
|
||||||
|
@ -63,14 +63,15 @@ fixed-center = true
|
|||||||
; 50%:-10, this will result in a width or height of 50% minus 10 pixels
|
; 50%:-10, this will result in a width or height of 50% minus 10 pixels
|
||||||
width = 96%
|
width = 96%
|
||||||
; height = 34
|
; height = 34
|
||||||
height = 65
|
; height = 65
|
||||||
|
height = 70
|
||||||
|
|
||||||
; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
|
; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
|
||||||
; the percentage can optionally be extended with a pixel offset like so:
|
; the percentage can optionally be extended with a pixel offset like so:
|
||||||
; 50%:-10, this will result in an offset in the x or y direction
|
; 50%:-10, this will result in an offset in the x or y direction
|
||||||
; of 50% minus 10 pixels
|
; of 50% minus 10 pixels
|
||||||
offset-x = 2%
|
offset-x = 2%
|
||||||
offset-y = 0%
|
offset-y = 0.33%
|
||||||
|
|
||||||
; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
|
; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
|
||||||
background = ${color.background}
|
background = ${color.background}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
dir="$HOME/SudacodeRice/polybar-themes/sblocks/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 $HOME/.config/rofi/config.rasi"
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
shutdown=" Shutdown"
|
shutdown=" Shutdown"
|
||||||
@ -19,13 +19,13 @@ logout=" Logout"
|
|||||||
|
|
||||||
# Confirmation
|
# Confirmation
|
||||||
confirm_exit() {
|
confirm_exit() {
|
||||||
rofi -dmenu -i -no-fixed-num-lines -p "Are You Sure? : " \
|
rofi -dmenu -i -no-fixed-num-lines -p "Are You Sure? : " \
|
||||||
-theme $dir/confirm.rasi
|
-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
|
||||||
@ -33,59 +33,59 @@ 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
|
||||||
|
@ -107,7 +107,7 @@ content-foreground = ${color.foreground}
|
|||||||
content-overline = ${color.background}
|
content-overline = ${color.background}
|
||||||
content-underline = ${color.background}
|
content-underline = ${color.background}
|
||||||
|
|
||||||
click-left = ~/.config/polybar/blocks/scripts/powermenu.sh &
|
click-left = $HOME/SudacodeRice/polybar-themes/sblocks/scripts/powermenu.sh &
|
||||||
|
|
||||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user