Add dynamic nice home functionality to bashrc
This commit is contained in:
parent
52824a0426
commit
9181b631f4
|
@ -7,7 +7,7 @@ export BAR_SIDE_MARGIN=200
|
||||||
|
|
||||||
MONITOR_WIDTH=$(xrandr | grep "$BAR_MONITOR" | grep -Po ' \d+' | head -n 1)
|
MONITOR_WIDTH=$(xrandr | grep "$BAR_MONITOR" | grep -Po ' \d+' | head -n 1)
|
||||||
export BAR_FONT=$(xrdb -query | sed -ne 's/.*font:\s*xft:\([^:]*\)\:.*$/\1/p' | head -n 1)
|
export BAR_FONT=$(xrdb -query | sed -ne 's/.*font:\s*xft:\([^:]*\)\:.*$/\1/p' | head -n 1)
|
||||||
export BAR_ICON_FONT="FontAwesome"
|
export BAR_ICON_FONT="Font Awesome 5 Free"
|
||||||
export BAR_FONT_SIZE=$(xrdb -query | sed -ne 's/.*font:\s*xft:[^-]*\=\([0-9]*\).*$/\1/p' | head -n 1)
|
export BAR_FONT_SIZE=$(xrdb -query | sed -ne 's/.*font:\s*xft:[^-]*\=\([0-9]*\).*$/\1/p' | head -n 1)
|
||||||
export BAR_ICON_FONT_SIZE=$((BAR_FONT_SIZE))
|
export BAR_ICON_FONT_SIZE=$((BAR_FONT_SIZE))
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ format-mounted-prefix-foreground = ${colors.foreground-alt}
|
||||||
ws-icon-0 = dev;
|
ws-icon-0 = dev;
|
||||||
ws-icon-1 = web;
|
ws-icon-1 = web;
|
||||||
ws-icon-2 = gfx;
|
ws-icon-2 = gfx;
|
||||||
ws-icon-3 = env;
|
ws-icon-3 = env;
|
||||||
ws-icon-4 = play;
|
ws-icon-4 = play;
|
||||||
ws-icon-5 = out;
|
ws-icon-5 = out;
|
||||||
ws-icon-6 = misc;
|
ws-icon-6 = misc;
|
||||||
|
@ -178,7 +178,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%%
|
label = %percentage%%
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
# *letterSpace: 0
|
# *letterSpace: 0
|
||||||
|
|
||||||
# Set fonts in "$HOME/.Xresources.env"
|
# Set fonts in "$HOME/.Xresources.env"
|
||||||
*font: xft:xos4 Termines:pixelsize=14,xft:FreeSans:pixelsize=14
|
*font: xft:xos4 Termines:pixelsize=14,xft:Font Awesome 5 Free:pixelsize=14,xft:FreeSans:pixelsize=14
|
||||||
*faceName: xft:xos4 Terminus:pixelsize=14,xft:FreeSans:pixelsize=14
|
*faceName: xft:xos4 Terminus:pixelsize=14,xft:Font Awesome 5 Free:pixelsize=14,xft:FreeSans:pixelsize=14
|
||||||
*boldFont: xft:xos4 Terminus:pixelsize=14,xft:FreeSans:pixelsize=14
|
*boldFont: xft:xos4 Terminus:pixelsize=14,xft:Font Awesome 5 Free:pixelsize=14,xft:FreeSans:pixelsize=14
|
||||||
*letterSpace: 0
|
*letterSpace: 0
|
||||||
|
|
||||||
# rxvt-unicode configuration
|
# rxvt-unicode configuration
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
# making sure they're loaded!
|
# making sure they're loaded!
|
||||||
export XDG_CONFIG_HOME="$HOME/.config"
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
export DOTFILES_PATH="$XDG_CONFIG_HOME/dotfiles"
|
export DOTFILES_PATH="$XDG_CONFIG_HOME/dotfiles"
|
||||||
export NICE_HOME="$HOME/.."
|
export NICE_HOME="$HOME"
|
||||||
|
|
||||||
|
[[ $(basename "${HOME}") -eq "usr" ]] && export NICE_HOME="$HOME/.."
|
||||||
|
|
||||||
# TODO: nice home on a per-device basis
|
# TODO: nice home on a per-device basis
|
||||||
|
|
||||||
|
|
Reference in a new issue