Compare commits

...

3 commits

Author SHA1 Message Date
04490b619b river: añadir tags 1-10 2021-10-31 22:00:08 -03:00
db32c5e3ac river/colors: usar los colores con los nombres de Selenized 2021-10-31 21:59:43 -03:00
65b46c7981 set-battery-threshold 2021-10-31 21:59:10 -03:00
8 changed files with 74 additions and 18 deletions

View file

@ -19,11 +19,14 @@
# fi
# Selenized Black
export bg=181818
export bg2=252525
export fg=b9b9b9
export fg2=dedede
export hl=368aeb
# https://github.com/jan-warchol/selenized/blob/e93e0d9fb47c7485f18fa16f9bdb70c2ee7fb5db/the-values.md
export bg_0=181818
export bg_1=252525
export bg_2=3b3b3b
export dim_0=777777
export fg_0=b9b9b9
export fg_1=dedede
export fg_accent=368aeb
# solarized light
# export bg=fdf6e3

View file

@ -67,6 +67,16 @@ define_tag $((1 << 4)) Y
define_tag $((1 << 5)) Comma
define_tag $((1 << 6)) Period
define_tag $((1 << 7)) Slash
define_tag $((1 << 11)) 1
define_tag $((1 << 12)) 2
define_tag $((1 << 13)) 3
define_tag $((1 << 14)) 4
define_tag $((1 << 15)) 5
define_tag $((1 << 16)) 6
define_tag $((1 << 17)) 7
define_tag $((1 << 18)) 8
define_tag $((1 << 19)) 9
define_tag $((1 << 20)) 0
all_tags=$(((1 << 32) - 1))
riverctl map normal $mod 0 set-focused-tags $all_tags

View file

@ -1,8 +1,8 @@
#!/bin/sh
. ~/.config/river/colors
riverctl background-color 0x$bg
riverctl border-color-focused 0x$fg
riverctl border-color-unfocused 0x$bg2
riverctl background-color 0x$bg_0
riverctl border-color-focused 0x$fg_1
riverctl border-color-unfocused 0x$dim_0
riverctl border-width 2
riverctl spawn yambar-run

View file

@ -30,6 +30,16 @@ bar:
6: {string: {text: ","}}
7: {string: {text: "."}}
8: {string: {text: "/"}}
12: {string: {text: "1"}}
13: {string: {text: "2"}}
14: {string: {text: "3"}}
15: {string: {text: "4"}}
16: {string: {text: "5"}}
17: {string: {text: "6"}}
18: {string: {text: "7"}}
19: {string: {text: "8"}}
20: {string: {text: "9"}}
21: {string: {text: "0"}}
content:
map:
tag: state
@ -46,6 +56,16 @@ bar:
6: {string: {text: ",", foreground: *accent}}
7: {string: {text: ".", foreground: *accent}}
8: {string: {text: "/", foreground: *accent}}
12: {string: {text: "1", foreground: *accent}}
13: {string: {text: "2", foreground: *accent}}
14: {string: {text: "3", foreground: *accent}}
15: {string: {text: "4", foreground: *accent}}
16: {string: {text: "5", foreground: *accent}}
17: {string: {text: "6", foreground: *accent}}
18: {string: {text: "7", foreground: *accent}}
19: {string: {text: "8", foreground: *accent}}
20: {string: {text: "9", foreground: *accent}}
21: {string: {text: "0", foreground: *accent}}
deco: {stack: [background: {color: *bg2}]}
unfocused: {map: {<<: *river_base}}
invisible:

View file

@ -5,8 +5,8 @@ exec fuzzel --terminal=footclient --font='Inter:style=Bold:size=11' \
--prompt="➦ " \
--no-icons \
--width=20 \
--background=${bg}ff --text-color=${fg}ff \
--match-color=${hl}ff \
--selection-color=${bg2}ff --selection-text-color=${fg}ff \
--background=${bg_0}ff --text-color=${fg_0}ff \
--match-color=${fg_accent}ff \
--selection-color=${bg_1}ff --selection-text-color=${fg_0}ff \
--horizontal-pad=12 \
--border-width=1 --border-color=${fg}ff --border-radius=2
--border-width=1 --border-color=${fg_0}ff --border-radius=2

View file

@ -1,4 +1,4 @@
#!/bin/sh
. ~/.config/river/colors
setsid -f swaylockd --color "$bg"
setsid -f swaylockd --color "$bg_0"
sleep 1

View file

@ -0,0 +1,23 @@
#!/bin/sh
# https://www.coreboot.org/Board:lenovo/x230
usage () {
echo "usage: $0 start_threshold stop_threshold"
exit 1
}
if expr "$1" : '[0-9][0-9]*$'>/dev/null; then
start_threshold="$(printf '%x' "$1")"
else
usage
fi
if expr "$2" : '[0-9][0-9]*$'>/dev/null; then
stop_threshold="$(printf '%x' "$2")"
else
usage
fi
ectool -w 0xb0 -z "$start_threshold"
ectool -w 0xb1 -z "$stop_threshold"

View file

@ -4,11 +4,11 @@ killall yambar
config="$(mktemp)"
echo "background: &bg ${bg}ff
background2: &bg2 ${bg2}ff
foreground: &fg ${fg}ff
foreground2: &fg2 ${fg2}ff
accent: &accent ${hl}ff
echo "background: &bg ${bg_0}ff
background2: &bg2 ${bg_1}ff
foreground: &fg ${fg_0}ff
foreground2: &fg2 ${fg_1}ff
accent: &accent ${fg_accent}ff
" > "$config"
cat ~/.config/yambar/config.yml >> "$config"