polybar rice

This commit is contained in:
2021-06-29 19:10:06 +02:00
parent 9533767343
commit dea54fe72a
2 changed files with 65 additions and 50 deletions

View File

@@ -4,6 +4,7 @@ export GTK2_RC_FILES="$HOME/.gtkrc-2.0" &
xrdb merge .Xresources & xrdb merge .Xresources &
## Wallpaper. ## Wallpaper.
sh ~/.fehbg & sh ~/.fehbg &
## Composition manager
picom -b & picom -b &
## enable local fonts in .fonts directory ## enable local fonts in .fonts directory
xset +fp /usr/share/fonts/local & xset +fp /usr/share/fonts/local &
@@ -21,15 +22,20 @@ xset -dpms &
eval $(awk -F'=' '/Exec=/ {print $2}' ~/.config/autostart/lxrandr-autostart.desktop) & eval $(awk -F'=' '/Exec=/ {print $2}' ~/.config/autostart/lxrandr-autostart.desktop) &
## Map super key to trigger rofi when used alone ## Map super key to trigger rofi when used alone
xcape -e 'Super_L=Super_L|Shift_L|space' & xcape -e 'Super_L=Super_L|Shift_L|space' &
## Polkit agent ## Polkit agent
#/usr/lib/mate-polkit/polkit-mate-authentication-agent-1 & polkit-dumb-agent &
## Gnome keyring ## Gnome keyring
gnome-keyring-daemon & gnome-keyring-daemon &
thunar --daemon &
dunst & dunst &
xss-lock -v i3lock-fancy-dualmonitor & xss-lock -v i3lock-fancy-dualmonitor &
dockd --daemon & dockd --daemon &
flameshot & flameshot &
$HOME/.config/polybar/launch.sh run_keybase -a &
telegram-desktop -startintray &
sleep 3 &
$HOME/.config/polybar/launch.sh &

View File

@@ -49,18 +49,18 @@ padding-left = 0
padding-right = 2 padding-right = 2
module-margin-left = 1 module-margin-left = 1
module-margin-right = 2 module-margin-right = 1
font-0 = fixed:pixelsize=10;1 font-0 = SauceCodePro Nerd Font Mono:size=10
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = siji:pixelsize=10;1 font-2 = siji:pixelsize=10;1
modules-left = rofi bspwm modules-left = rofi bspwm
modules-center = mpd title modules-center = mpd title
modules-right = xbacklight pulseaudio memory cpu wlan eth battery temperature date powermenu modules-right = xkeyboard xbacklight pulseaudio memory cpu wlan eth battery temperature date powermenu
tray-position = right tray-position = right
tray-padding = 2 tray-padding = 10
;tray-background = #0063ff ;tray-background = #0063ff
wm-restack = bspwm wm-restack = bspwm
@@ -81,11 +81,11 @@ label = %title:0:30:...%
type = internal/xkeyboard type = internal/xkeyboard
blacklist-0 = num lock blacklist-0 = num lock
format-prefix = " " format-prefix =
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary} format-prefix-underline = ${colors.secondary}
label-layout = %layout% label-layout =
label-layout-underline = ${colors.secondary} label-layout-underline = ${colors.secondary}
label-indicator-padding = 2 label-indicator-padding = 2
@@ -106,29 +106,29 @@ label-unmounted-foreground = ${colors.foreground-alt}
[module/bspwm] [module/bspwm]
type = internal/bspwm type = internal/bspwm
label-focused = %index% label-focused = %icon%%name%
label-focused-background = ${colors.background-alt} label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary} label-focused-underline= ${colors.primary}
label-focused-padding = 2 label-focused-padding = 1
label-occupied = %index% label-occupied = %name%
label-occupied-padding = 2 label-occupied-padding = 1
label-urgent = %index%! label-urgent = %name%!
label-urgent-background = ${colors.alert} label-urgent-background = ${colors.alert}
label-urgent-padding = 2 label-urgent-padding = 1
label-empty = %index% label-empty = %name%
label-empty-foreground = ${colors.foreground-alt} label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2 label-empty-padding = 1
; Separator in between workspaces ; Separator in between workspaces
; label-separator = | ; label-separator = |
ws-icon-0 = Web; ws-icon-0 = Web;
ws-icon-1 = Terminals; ws-icon-1 = Terminals;
ws-icon-2 = Info; ws-icon-2 = Info;
ws-icon-3 = Code; ws-icon-3 = Code;
ws-icon-7 = Communication; ws-icon-7 = Communication;
; ws-icon-default = ; ws-icon-default =
[module/mpd] [module/mpd]
@@ -148,7 +148,7 @@ label-song-ellipsis = true
type = internal/xbacklight type = internal/xbacklight
format = <label> <bar> format = <label> <bar>
label = BL label =
bar-width = 10 bar-width = 10
bar-indicator = | bar-indicator = |
@@ -169,7 +169,7 @@ card = intel_backlight
[module/cpu] [module/cpu]
type = internal/cpu type = internal/cpu
interval = 2 interval = 2
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000 format-underline = #f90000
label = %percentage:2%% label = %percentage:2%%
@@ -193,7 +193,7 @@ label-empty =
[module/memory] [module/memory]
type = internal/memory type = internal/memory
interval = 2 interval = 2
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt}
format-underline = #4bffdc format-underline = #4bffdc
label = %percentage_used%% label = %percentage_used%%
@@ -213,20 +213,20 @@ format-disconnected =
;label-disconnected = %ifname% disconnected ;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt} ;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = ramp-signal-0 =
ramp-signal-1 = ramp-signal-1 =
ramp-signal-2 = ramp-signal-2 =
ramp-signal-3 = ramp-signal-3 =
ramp-signal-4 = ramp-signal-4 =
ramp-signal-foreground = ${colors.foreground-alt} ramp-signal-foreground = ${colors.foreground-alt}
[module/eth] [module/eth]
type = internal/network type = internal/network
interface = enp4s0f2 interface = enp0s25
interval = 3.0 interval = 3.0
format-connected-underline = #55aa55 format-connected-underline = #55aa55
format-connected-prefix = " " format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt} format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip% label-connected = %local_ip%
@@ -256,7 +256,7 @@ label = %date% %time%
type = internal/pulseaudio type = internal/pulseaudio
format-volume = <label-volume> <bar-volume> format-volume = <label-volume> <bar-volume>
label-volume = VOL %percentage%% label-volume = %percentage%%
label-volume-foreground = ${root.foreground} label-volume-foreground = ${root.foreground}
label-muted = 🔇 muted label-muted = 🔇 muted
@@ -283,10 +283,10 @@ bar-volume-empty-foreground = ${colors.foreground-alt}
type = internal/alsa type = internal/alsa
format-volume = <label-volume> <bar-volume> format-volume = <label-volume> <bar-volume>
label-volume = VOL label-volume =
label-volume-foreground = ${root.foreground} label-volume-foreground = ${root.foreground}
format-muted-prefix = " " format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt} format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted label-muted = sound muted
@@ -316,21 +316,29 @@ full-at = 98
format-charging = <animation-charging> <label-charging> format-charging = <animation-charging> <label-charging>
format-charging-underline = #ffb52a format-charging-underline = #ffb52a
format-discharging = <animation-discharging> <label-discharging> format-discharging = <ramp-capacity> <label-discharging>
format-discharging-underline = ${self.format-charging-underline} format-discharging-underline = ${self.format-charging-underline}
format-full-prefix = " " format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt} format-full-prefix-foreground = ${colors.foreground-alt}
format-full-underline = ${self.format-charging-underline} format-full-underline = ${self.format-charging-underline}
ramp-capacity-0 = ramp-capacity-0 =
ramp-capacity-1 = ramp-capacity-1 =
ramp-capacity-2 = ramp-capacity-2 =
ramp-capacity-3 = 
ramp-capacity-4 = 
ramp-capacity-5 = 
ramp-capacity-6 = 
ramp-capacity-7 = 
ramp-capacity-8 = 
ramp-capacity-9 = 
ramp-capacity-foreground = ${colors.foreground-alt} ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-0 = animation-charging-0 =
animation-charging-1 = animation-charging-1 =
animation-charging-2 = animation-charging-2 =
animation-charging-3 = 
animation-charging-foreground = ${colors.foreground-alt} animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750 animation-charging-framerate = 750
@@ -343,7 +351,7 @@ animation-discharging-framerate = 750
[module/temperature] [module/temperature]
type = internal/temperature type = internal/temperature
thermal-zone = 0 thermal-zone = 0
warn-temperature = 60 warn-temperature = 80
format = <ramp> <label> format = <ramp> <label>
format-underline = #f50a4d format-underline = #f50a4d
@@ -351,12 +359,13 @@ format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline} format-warn-underline = ${self.format-underline}
label = %temperature-c% label = %temperature-c%
label-warn = %temperature-c% label-warn = %temperature-c%
label-warn-foreground = ${colors.secondary} label-warn-foreground = ${colors.secondary}
ramp-0 = ramp-0 =
ramp-1 = ramp-1 =
ramp-2 = ramp-2 =
ramp-3 = 
ramp-foreground = ${colors.foreground-alt} ramp-foreground = ${colors.foreground-alt}
[module/powermenu] [module/powermenu]
@@ -366,7 +375,7 @@ expand-right = true
format-spacing = 1 format-spacing = 1
label-open = label-open =
label-open-foreground = ${colors.secondary} label-open-foreground = ${colors.secondary}
label-close =  cancel label-close =  cancel
label-close-foreground = ${colors.secondary} label-close-foreground = ${colors.secondary}
@@ -391,7 +400,7 @@ menu-2-1-exec = menu-open-0
[module/rofi] [module/rofi]
type = custom/script type = custom/script
click-left = rofi -modi drun,run,window,calc -show drun click-left = rofi -modi drun,run,window,calc -show drun
label = M label =
[settings] [settings]
screenchange-reload = true screenchange-reload = true