curve: fix fonts on rofi menus

This commit is contained in:
Anish Lakhwara 2023-08-16 23:35:52 -07:00
parent 7e2f8c52c5
commit fd4b357537
4 changed files with 29 additions and 27 deletions

View file

@ -5,9 +5,9 @@ rofi_command="rofi -theme theme/powermenu.rasi"
### Options ###
power_off="\tShutdown"
reboot="\tReboot"
lock="\tLock"
suspend="\tSleep"
log_out="\tLogout"
lock="\tLock"
suspend="󰤄\tSleep"
log_out="󰍃\tLogout"
# Variable passed to rofi
options="$power_off\n$reboot\n$lock\n$suspend\n$log_out"
@ -18,14 +18,14 @@ case "$(echo -e "$options" | $rofi_command -dmenu)" in
" Reboot")
systemctl reboot
;;
" Lock")
" Lock")
dm-tool lock
;;
" Sleep")
"󰤄 Sleep")
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause
systemctl suspend
;;
" Logout")
"󰍃 Logout")
bspc quit
;;
esac

View file

@ -3,11 +3,11 @@
timer=5
# Options
select=""
window=""
screen=""
delay=""
cancel=""
select="󰩭 "
window=" "
screen=""
delay="󱑃 "
cancel="󰜺 "
# Variable passed to rofi
options="$select\n$window\n$screen\n$delay\n$cancel"

View file

@ -55,10 +55,11 @@ padding-left = 0
module-margin = 0
margin-bottom = 34
font-0 = "Iosevka Nerd Font,Iosevka NF:pixelsize=12;4"
font-1 = "Iosevka Nerd Font,Iosevka NF:pixelsize=6;1"
font-0 = "Iosevka Nerd Font,Iosevka NF:pixelsize=10;1" ; Icon Size
font-1 = "Iosevka Nerd Font,Iosevka NF:pixelsize=12;4" ; Large Text font
font-2 = "FiraCode Nerd Font:pixelsize=12;2"
font-3 = "Siji:pixelsize=8;2"
font-3 = "Siji:pixelsize=10;2"
font-4 = "Iosevka Nerd Font,Iosevka NF:pixelsize=8;1" ; Small Icon Size
; Add module mpd for artist - title info
modules-left = bspwm sps volume
@ -113,11 +114,11 @@ type = internal/bspwm
pin-workspaces = true
enable-click = true
ws-icon-0 = 1;%{T1} %{T-}
ws-icon-1 = 2;%{T1} %{T-}
ws-icon-2 = 3;%{T1}󰵅 %{T-}
ws-icon-3 = 4;%{T1} %{T-}
ws-icon-4 = 5;%{T1} %{T-}
ws-icon-0 = 1;%{T2} %{T-}
ws-icon-1 = 2;%{T2} %{T-}
ws-icon-2 = 3;%{T2}󰺻 %{T-}
ws-icon-3 = 4;%{T2} %{T-}
ws-icon-4 = 5;%{T2} %{T-}
ws-icon-default = 
; fuzzy-match = true
@ -154,14 +155,14 @@ interval = 1.0
; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string
; NOTE: if you want to use syntax tags here you need to use %%{...}
date = %{T1} %{T-}%{T2} %d/%a%{T-}
date = %{T2} %{T-}%{T1} %d/%a%{T-}
; Optional time format
time = %{T2} %H:%M%{T-}
; if `date-alt` or `time-alt` is defined, clicking
; the module will toggle between formats
date-alt = %{T1} %{T-} %{T2} %a, %d %b %y%{T-}
date-alt = %{T2} %{T-} %{T1} %a, %d %b %y%{T-}
time-alt = %{T2} %H:%M:%S%{T-}
label = %date%%time%
@ -177,6 +178,7 @@ label-connected-font = 2
format-connected = <ramp-signal> <label-connected>
label-connected-foreground = #82b414
format-disconnected = <label-disconnected>
label-disconnected = "󰖪"
label-disconnected-foreground = #f92672
@ -196,7 +198,7 @@ type = internal/cpu
; Default: 1
interval = 0.5
label = %{T1} %{T-}%{T2} %percentage:2%%%{T-}
label = %{T2} %{T-}%{T1} %percentage:2%%%{T-}
label-foreground = ${colors.cyan}
@ -226,7 +228,7 @@ format = <label>
; %gb_swap_free%
; %gb_swap_used%
label = %{T1}󰍛 %{T-}%{T2} %gb_used%%{T-}
label = %{T2}󰍛 %{T-}%{T1} %gb_used%%{T-}
label-foreground = ${colors.cyan}
@ -297,13 +299,13 @@ label-muted-foreground = ${colors.mauve}
bar-volume-width = 8
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-indicator-font = 6
bar-volume-indicator-foreground = ${colors.mauve}
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-fill-font = 6
bar-volume-fill-foreground = ${colors.mauve}
bar-volume-empty = ─
bar-volume-empty-font = 2
bar-volume-empty-font = 6
bar-volume-empty-foreground = ${colors.fg-alt}
ramp-volume-0 = "  "

View file

@ -2,7 +2,7 @@
@import "config.rasi"
textbox-icon {
str: " ";
str: "󱎂 ";
}
prompt {