discovered xrdb -query ... ugh
This commit is contained in:
parent
76a963b119
commit
a57b8f1b5d
6 changed files with 48 additions and 79 deletions
|
@ -9,10 +9,10 @@
|
|||
|
||||
[colors]
|
||||
;background = ${xrdb:color0:#222}
|
||||
background = #222
|
||||
background-alt = #444
|
||||
;foreground = ${xrdb:color7:#222}
|
||||
foreground = #dfdfdf
|
||||
background = #111
|
||||
background-alt = #{xrdb:color5:#333}
|
||||
foreground = ${xrdb:color7:#222}
|
||||
; foreground = #dfdfdf
|
||||
foreground-alt = #555
|
||||
primary = #ffb52a
|
||||
secondary = #e60053
|
||||
|
@ -21,7 +21,7 @@ alert = #bd2c40
|
|||
[bar/lytedev]
|
||||
;monitor = ${env:MONITOR:HDMI-1}
|
||||
width = 100%
|
||||
height = 27
|
||||
height = 24
|
||||
;offset-x = 1%
|
||||
;offset-y = 1%
|
||||
radius = 6.0
|
||||
|
@ -42,7 +42,7 @@ padding-right = 2
|
|||
module-margin-left = 1
|
||||
module-margin-right = 2
|
||||
|
||||
font-0 = fixed:pixelsize=10;1
|
||||
font-0 = artwiz lemon:pixelsize=10;1
|
||||
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
||||
font-2 = siji:pixelsize=10;1
|
||||
|
||||
|
@ -70,27 +70,27 @@ tray-padding = 2
|
|||
type = internal/xwindow
|
||||
label = %title:0:30:...%
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
blacklist-0 = num lock
|
||||
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-prefix-underline = ${colors.secondary}
|
||||
|
||||
label-layout = %layout%
|
||||
label-layout-underline = ${colors.secondary}
|
||||
|
||||
label-indicator-padding = 2
|
||||
label-indicator-margin = 1
|
||||
label-indicator-background = ${colors.secondary}
|
||||
label-indicator-underline = ${colors.secondary}
|
||||
|
||||
" [module/xkeyboard]
|
||||
" type = internal/xkeyboard
|
||||
" blacklist-0 = num lock
|
||||
"
|
||||
" format-prefix = ""
|
||||
" format-prefix-foreground = ${colors.foreground-alt}
|
||||
" format-prefix-underline = ${colors.secondary}
|
||||
"
|
||||
" label-layout = %layout%
|
||||
" label-layout-underline = ${colors.secondary}
|
||||
"
|
||||
" label-indicator-padding = 2
|
||||
" label-indicator-margin = 1
|
||||
" label-indicator-background = ${colors.secondary}
|
||||
" label-indicator-underline = ${colors.secondary}
|
||||
"
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
mount-0 = /home
|
||||
|
||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
|
@ -187,7 +187,7 @@ card = intel_backlight
|
|||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix = "cpu "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #f90000
|
||||
label = %percentage%%
|
||||
|
@ -195,7 +195,7 @@ label = %percentage%%
|
|||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix = "mem "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #4bffdc
|
||||
label = %percentage_used%%
|
||||
|
@ -228,7 +228,7 @@ interface =
|
|||
interval = 3.0
|
||||
|
||||
format-connected-underline = #55aa55
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix = "net "
|
||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||
label-connected = %local_ip%
|
||||
|
||||
|
@ -240,15 +240,15 @@ format-disconnected =
|
|||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 5
|
||||
interval = 1
|
||||
|
||||
date =
|
||||
date-alt = " %Y-%m-%d"
|
||||
date-alt = "%Y-%m-%d"
|
||||
|
||||
time = %H:%M
|
||||
time-alt = %H:%M:%S
|
||||
|
||||
format-prefix =
|
||||
format-prefix =
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #0a6cf5
|
||||
|
||||
|
@ -261,7 +261,7 @@ format-volume = <label-volume> <bar-volume>
|
|||
label-volume = VOL
|
||||
label-volume-foreground = ${root.foreground}
|
||||
|
||||
format-muted-prefix = " "
|
||||
format-muted-prefix = ""
|
||||
format-muted-foreground = ${colors.foreground-alt}
|
||||
label-muted = sound muted
|
||||
|
||||
|
@ -294,18 +294,18 @@ format-charging-underline = #ffb52a
|
|||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
format-discharging-underline = ${self.format-charging-underline}
|
||||
|
||||
format-full-prefix = " "
|
||||
format-full-prefix = "bat "
|
||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||
format-full-underline = ${self.format-charging-underline}
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-foreground = ${colors.foreground-alt}
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-foreground = ${colors.foreground-alt}
|
||||
animation-charging-framerate = 750
|
||||
|
||||
|
@ -314,7 +314,7 @@ type = internal/temperature
|
|||
thermal-zone = 0
|
||||
warn-temperature = 60
|
||||
|
||||
format = <ramp> <label>
|
||||
format = <ramp><label>
|
||||
format-underline = #f50a4d
|
||||
format-warn = <ramp> <label-warn>
|
||||
format-warn-underline = ${self.format-underline}
|
||||
|
@ -323,9 +323,9 @@ label = %temperature%
|
|||
label-warn = %temperature%
|
||||
label-warn-foreground = ${colors.secondary}
|
||||
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
ramp-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/powermenu]
|
||||
|
@ -333,9 +333,9 @@ type = custom/menu
|
|||
|
||||
format-spacing = 1
|
||||
|
||||
label-open =
|
||||
label-open =
|
||||
label-open-foreground = ${colors.secondary}
|
||||
label-close = cancel
|
||||
label-close = cancel
|
||||
label-close-foreground = ${colors.secondary}
|
||||
label-separator = |
|
||||
label-separator-foreground = ${colors.foreground-alt}
|
||||
|
|
0
os-specific/arch-linux/scripts/.gitkeep
Normal file
0
os-specific/arch-linux/scripts/.gitkeep
Normal file
|
@ -1,9 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
get_color()
|
||||
{
|
||||
XR_COLOR_DEF=$(grep "#define base$1 #" ~/.Xresources.colors)
|
||||
echo ${XR_COLOR_DEF:16}
|
||||
}
|
||||
export -f get_color
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
XRES_FILE="$HOME/.Xresources"
|
||||
if [ -a "$HOME/.Xresources.env" ]; then
|
||||
XRES_FILE="$HOME/.Xresources.env"
|
||||
fi
|
||||
|
||||
PRIMARY_FONT_XRESOURCES=$(grep "^\*font: xft:" "$XRES_FILE" | grep -v "/\*" | head -n 1)
|
||||
export PRIMARY_FONT_FAMILY_WITH_SIZE=${PRIMARY_FONT_XRESOURCES:11}
|
||||
export PRIMARY_FONT_FAMILY=$(echo $PRIMARY_FONT_FAMILY_WITH_SIZE | sed 's/\-.*//')
|
||||
export PRIMARY_FONT_SIZE=$(echo $PRIMARY_FONT_FAMILY_WITH_SIZE | sed 's/.*\-//')
|
||||
|
||||
SECONDARY_FONT_XRESOURCES=$(grep "^#define secondaryfont xft:" "$XRES_FILE" | grep -v "/\*" | head -n 1)
|
||||
export SECONDARY_FONT_FAMILY_WITH_SIZE=${SECONDARY_FONT_XRESOURCES:26}
|
||||
export SECONDARY_FONT_FAMILY=$(echo $SECONDARY_FONT_FAMILY_WITH_SIZE | sed 's/\-.*//')
|
||||
export SECONDARY_FONT_SIZE=$(echo $SECONDARY_FONT_FAMILY_WITH_SIZE | sed 's/.*\-//')
|
||||
|
||||
ICON_FONT_XRESOURCES=$(grep "^#define iconfont xft:" "$XRES_FILE" | grep -v "/\*" | head -n 1)
|
||||
export ICON_FONT_FAMILY_WITH_SIZE=${ICON_FONT_XRESOURCES:21}
|
||||
export ICON_FONT_FAMILY=$(echo $ICON_FONT_FAMILY_WITH_SIZE | sed 's/\-.*//')
|
||||
export ICON_FONT_SIZE=$(echo $ICON_FONT_FAMILY_WITH_SIZE | sed 's/.*\-//')
|
||||
|
|
@ -5,3 +5,5 @@
|
|||
"\C-a": beginning-of-line
|
||||
"\C-e": end-of-line
|
||||
"\C-d": delete-char
|
||||
"\C-D": "\C-c\C-d"
|
||||
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
calc() {
|
||||
tp="$@"
|
||||
tp="$@"
|
||||
python -c "print($tp)"
|
||||
}
|
||||
export -f calc
|
||||
|
||||
stopbar() {
|
||||
:
|
||||
}
|
||||
export -f stopbar
|
||||
|
||||
# wm aliases
|
||||
startbar() {
|
||||
:
|
||||
}
|
||||
export -f startbar
|
||||
|
||||
|
@ -36,7 +38,3 @@ gcwd() {
|
|||
}
|
||||
export -f gcwd
|
||||
bind '"\C-g"':"\"gcwd\C-m\""
|
||||
|
||||
# close a terminal with Ctrl-Shift-D (in theory)
|
||||
bind '"\C-D"':"\"\C-c\C-d\""
|
||||
|
||||
|
|
Reference in a new issue