discovered xrdb -query ... ugh
This commit is contained in:
parent
76a963b119
commit
a57b8f1b5d
|
@ -9,10 +9,10 @@
|
||||||
|
|
||||||
[colors]
|
[colors]
|
||||||
;background = ${xrdb:color0:#222}
|
;background = ${xrdb:color0:#222}
|
||||||
background = #222
|
background = #111
|
||||||
background-alt = #444
|
background-alt = #{xrdb:color5:#333}
|
||||||
;foreground = ${xrdb:color7:#222}
|
foreground = ${xrdb:color7:#222}
|
||||||
foreground = #dfdfdf
|
; foreground = #dfdfdf
|
||||||
foreground-alt = #555
|
foreground-alt = #555
|
||||||
primary = #ffb52a
|
primary = #ffb52a
|
||||||
secondary = #e60053
|
secondary = #e60053
|
||||||
|
@ -21,7 +21,7 @@ alert = #bd2c40
|
||||||
[bar/lytedev]
|
[bar/lytedev]
|
||||||
;monitor = ${env:MONITOR:HDMI-1}
|
;monitor = ${env:MONITOR:HDMI-1}
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 27
|
height = 24
|
||||||
;offset-x = 1%
|
;offset-x = 1%
|
||||||
;offset-y = 1%
|
;offset-y = 1%
|
||||||
radius = 6.0
|
radius = 6.0
|
||||||
|
@ -42,7 +42,7 @@ padding-right = 2
|
||||||
module-margin-left = 1
|
module-margin-left = 1
|
||||||
module-margin-right = 2
|
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-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
||||||
font-2 = siji:pixelsize=10;1
|
font-2 = siji:pixelsize=10;1
|
||||||
|
|
||||||
|
@ -70,27 +70,27 @@ tray-padding = 2
|
||||||
type = internal/xwindow
|
type = internal/xwindow
|
||||||
label = %title:0:30:...%
|
label = %title:0:30:...%
|
||||||
|
|
||||||
[module/xkeyboard]
|
" [module/xkeyboard]
|
||||||
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 = %layout%
|
||||||
label-layout-underline = ${colors.secondary}
|
" label-layout-underline = ${colors.secondary}
|
||||||
|
"
|
||||||
label-indicator-padding = 2
|
" label-indicator-padding = 2
|
||||||
label-indicator-margin = 1
|
" label-indicator-margin = 1
|
||||||
label-indicator-background = ${colors.secondary}
|
" label-indicator-background = ${colors.secondary}
|
||||||
label-indicator-underline = ${colors.secondary}
|
" label-indicator-underline = ${colors.secondary}
|
||||||
|
"
|
||||||
[module/filesystem]
|
[module/filesystem]
|
||||||
type = internal/fs
|
type = internal/fs
|
||||||
interval = 25
|
interval = 25
|
||||||
|
|
||||||
mount-0 = /
|
mount-0 = /home
|
||||||
|
|
||||||
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||||
label-unmounted = %mountpoint% not mounted
|
label-unmounted = %mountpoint% not mounted
|
||||||
|
@ -187,7 +187,7 @@ card = intel_backlight
|
||||||
[module/cpu]
|
[module/cpu]
|
||||||
type = internal/cpu
|
type = internal/cpu
|
||||||
interval = 2
|
interval = 2
|
||||||
format-prefix = " "
|
format-prefix = "cpu "
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
format-underline = #f90000
|
format-underline = #f90000
|
||||||
label = %percentage%%
|
label = %percentage%%
|
||||||
|
@ -195,7 +195,7 @@ label = %percentage%%
|
||||||
[module/memory]
|
[module/memory]
|
||||||
type = internal/memory
|
type = internal/memory
|
||||||
interval = 2
|
interval = 2
|
||||||
format-prefix = " "
|
format-prefix = "mem "
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
format-underline = #4bffdc
|
format-underline = #4bffdc
|
||||||
label = %percentage_used%%
|
label = %percentage_used%%
|
||||||
|
@ -228,7 +228,7 @@ interface =
|
||||||
interval = 3.0
|
interval = 3.0
|
||||||
|
|
||||||
format-connected-underline = #55aa55
|
format-connected-underline = #55aa55
|
||||||
format-connected-prefix = " "
|
format-connected-prefix = "net "
|
||||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||||
label-connected = %local_ip%
|
label-connected = %local_ip%
|
||||||
|
|
||||||
|
@ -240,15 +240,15 @@ format-disconnected =
|
||||||
|
|
||||||
[module/date]
|
[module/date]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
interval = 5
|
interval = 1
|
||||||
|
|
||||||
date =
|
date =
|
||||||
date-alt = " %Y-%m-%d"
|
date-alt = "%Y-%m-%d"
|
||||||
|
|
||||||
time = %H:%M
|
time = %H:%M
|
||||||
time-alt = %H:%M:%S
|
time-alt = %H:%M:%S
|
||||||
|
|
||||||
format-prefix =
|
format-prefix =
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
format-underline = #0a6cf5
|
format-underline = #0a6cf5
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ format-volume = <label-volume> <bar-volume>
|
||||||
label-volume = VOL
|
label-volume = VOL
|
||||||
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
|
||||||
|
|
||||||
|
@ -294,18 +294,18 @@ format-charging-underline = #ffb52a
|
||||||
format-discharging = <ramp-capacity> <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 = "bat "
|
||||||
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-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-foreground = ${colors.foreground-alt}
|
animation-charging-foreground = ${colors.foreground-alt}
|
||||||
animation-charging-framerate = 750
|
animation-charging-framerate = 750
|
||||||
|
|
||||||
|
@ -314,7 +314,7 @@ type = internal/temperature
|
||||||
thermal-zone = 0
|
thermal-zone = 0
|
||||||
warn-temperature = 60
|
warn-temperature = 60
|
||||||
|
|
||||||
format = <ramp> <label>
|
format = <ramp><label>
|
||||||
format-underline = #f50a4d
|
format-underline = #f50a4d
|
||||||
format-warn = <ramp> <label-warn>
|
format-warn = <ramp> <label-warn>
|
||||||
format-warn-underline = ${self.format-underline}
|
format-warn-underline = ${self.format-underline}
|
||||||
|
@ -323,9 +323,9 @@ label = %temperature%
|
||||||
label-warn = %temperature%
|
label-warn = %temperature%
|
||||||
label-warn-foreground = ${colors.secondary}
|
label-warn-foreground = ${colors.secondary}
|
||||||
|
|
||||||
ramp-0 =
|
ramp-0 =
|
||||||
ramp-1 =
|
ramp-1 =
|
||||||
ramp-2 =
|
ramp-2 =
|
||||||
ramp-foreground = ${colors.foreground-alt}
|
ramp-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
[module/powermenu]
|
[module/powermenu]
|
||||||
|
@ -333,9 +333,9 @@ type = custom/menu
|
||||||
|
|
||||||
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}
|
||||||
label-separator = |
|
label-separator = |
|
||||||
label-separator-foreground = ${colors.foreground-alt}
|
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-a": beginning-of-line
|
||||||
"\C-e": end-of-line
|
"\C-e": end-of-line
|
||||||
"\C-d": delete-char
|
"\C-d": delete-char
|
||||||
|
"\C-D": "\C-c\C-d"
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,19 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
calc() {
|
calc() {
|
||||||
tp="$@"
|
tp="$@"
|
||||||
python -c "print($tp)"
|
python -c "print($tp)"
|
||||||
}
|
}
|
||||||
export -f calc
|
export -f calc
|
||||||
|
|
||||||
stopbar() {
|
stopbar() {
|
||||||
|
:
|
||||||
}
|
}
|
||||||
export -f stopbar
|
export -f stopbar
|
||||||
|
|
||||||
# wm aliases
|
# wm aliases
|
||||||
startbar() {
|
startbar() {
|
||||||
|
:
|
||||||
}
|
}
|
||||||
export -f startbar
|
export -f startbar
|
||||||
|
|
||||||
|
@ -36,7 +38,3 @@ gcwd() {
|
||||||
}
|
}
|
||||||
export -f gcwd
|
export -f gcwd
|
||||||
bind '"\C-g"':"\"gcwd\C-m\""
|
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