This commit is contained in:
ksyasuda 2022-01-23 17:23:22 -08:00
parent e52d4d1e6b
commit e2ae951ad1
4 changed files with 77 additions and 83 deletions

View File

@ -12,35 +12,28 @@
;; Use pywal.sh in scripts directory to use colors from an image/wallpaper.
;; main colors
background = #3B4252
; background = #3B4252
background = #24282f
; background-alt = #4C566A
; background-alt = "#464b55"
background-alt = "#464b55"
foreground = #ECEFF4
; foreground = #ECEFF4
foreground = #bbc2cf
; foreground-alt = #E5E9F0
foreground-alt = "#abb2bf"
primary = "#98be65"
; white = #FFFFFF
white = "#bbc2cf"
; black = #000000
black = "#464b55"
; red = #EC7875
red = "#ff6c6b"
pink = #EC6798
; purple = #BE78D1
purple = "#c678dd"
; blue = #75A4CD
blue = "#51afef"
; cyan = #00C7DF
cyan = "#46d9ff"
teal = #00B19F
; green = #61C766
green = "#98be65"
lime = #B9C244
; yellow = #EBD369
yellow = "#ecbe7b"
amber = #EDB83F
; orange = #E57C46
orange = #da8548
brown = #AC8476
gray = #9E9E9E

View File

@ -63,14 +63,15 @@ fixed-center = true
; 50%:-10, this will result in a width or height of 50% minus 10 pixels
width = 96%
; height = 34
height = 65
; height = 65
height = 70
; 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:
; 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
offset-x = 2%
offset-y = 0%
offset-y = 0.33%
; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
background = ${color.background}
@ -80,10 +81,10 @@ foreground = ${color.foreground}
; Background gradient (vertical steps)
; background-[0-9]+ = #aarrggbb
;;background-0 =
;;background-0 =
; Value used for drawing rounded corners
; Note: This shouldn't be used together with border-size because the border
; Note: This shouldn't be used together with border-size because the border
; doesn't get rounded
; Individual top/bottom values can be defined using:
; radius-{top,bottom}
@ -188,7 +189,7 @@ tray-detached = false
; Tray icon max size
tray-maxsize = 32
; Background color for the tray container
; Background color for the tray container
; ARGB color (e.g. #f00, #ff992a, #ddff1023)
; By default the tray container will use the bar
; background color.
@ -226,8 +227,8 @@ enable-ipc = true
; Fallback click handlers that will be called if
; there's no matching module handler found.
click-left =
click-middle =
click-left =
click-middle =
click-right =
; scroll-up =
; scroll-down =
@ -241,7 +242,7 @@ double-click-right =
; - pointer : Typically in the form of a hand
; - ns-resize : Up and down arrows, can be used to indicate scrolling
cursor-click = pointer
cursor-scroll =
cursor-scroll =
;; WM Workspace Specific
@ -288,8 +289,8 @@ compositing-underline = over
compositing-border = over
; Define fallback values used by all module formats
;format-foreground =
;format-background =
;format-foreground =
;format-background =
;format-underline =
;format-overline =
;format-spacing =

View File

@ -8,7 +8,7 @@
dir="$HOME/SudacodeRice/polybar-themes/sblocks/scripts/rofi"
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
shutdown=" Shutdown"
@ -19,13 +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
@ -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)"
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
else
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
else
msg
fi
;;
$lock)
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
else
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
else
msg
fi
;;
$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
else
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
else
msg
fi
;;
$lock)
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
else
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
else
msg
fi
;;
esac

View File

@ -107,7 +107,7 @@ content-foreground = ${color.foreground}
content-overline = ${color.background}
content-underline = ${color.background}
click-left = ~/.config/polybar/blocks/scripts/powermenu.sh &
click-left = $HOME/SudacodeRice/polybar-themes/sblocks/scripts/powermenu.sh &
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_