mirror of
https://github.com/rileyrg/linux-init.git
synced 2024-09-29 05:37:29 +02:00
i3b tweaks including battery plus
This commit is contained in:
parent
80aa98edcc
commit
1609524dfb
11 changed files with 113 additions and 153 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -64,6 +64,8 @@
|
|||
|
||||
!/directories/bin/sway-*
|
||||
|
||||
!/directories/bin/i3bm-*
|
||||
|
||||
!/directories/bin/acpi-powerstate
|
||||
!/directories/bin/add-user-paths
|
||||
!/directories/bin/battery-warning*
|
||||
|
|
94
README.md
94
README.md
|
@ -70,7 +70,7 @@ If using startx on debian this is taken care of by the system XSession loading e
|
|||
\`-—
|
||||
|
||||
|
||||
<a id="orga1f7396"></a>
|
||||
<a id="orgff747d3"></a>
|
||||
|
||||
## ~/.profile
|
||||
|
||||
|
@ -123,7 +123,7 @@ fi
|
|||
```
|
||||
|
||||
|
||||
<a id="org8f31d52"></a>
|
||||
<a id="org97b4f87"></a>
|
||||
|
||||
## ~/.bash\_profile
|
||||
|
||||
|
@ -650,7 +650,7 @@ exec sway-kanshi
|
|||
exec swaybg -i ~/Pictures/Wallpapers/current
|
||||
exec sway-idle-hook
|
||||
exec nm-applet --indicator
|
||||
exec gpg-cache
|
||||
exec sleep 5 && gpg-cache
|
||||
exec swaymsg workspace 1:edit
|
||||
|
||||
```
|
||||
|
@ -902,7 +902,7 @@ bindsym $mod+Control+q mode "$mode_system"
|
|||
# i3bar
|
||||
bar {
|
||||
status_command i3blocks
|
||||
font pango:JetBrains Sans Mono 10
|
||||
font pango:Source Sans Pro, FontAwesome 8
|
||||
position top
|
||||
#mode hide
|
||||
hidden_state hide
|
||||
|
@ -1065,82 +1065,65 @@ color=#ffd700
|
|||
|
||||
[kernel]
|
||||
command=echo "$(uname -sr)"
|
||||
interval=1
|
||||
interval=once
|
||||
color=#ffffff
|
||||
|
||||
[power_draw]
|
||||
command=echo "Wh:$(awk '{print $1*10^-6 " W"}' /sys/class/power_supply/BAT0/power_now)"
|
||||
interval=1
|
||||
interval=5
|
||||
color=#ffffff
|
||||
|
||||
#[battery]
|
||||
#command=my-i3b-battery-status
|
||||
#color=#ff8300
|
||||
#interval=60
|
||||
|
||||
[bat0]
|
||||
command=echo "Ba:$(/usr/share/i3blocks/battery bat0)"
|
||||
color=#00a000
|
||||
interval=30
|
||||
[battery]
|
||||
markup=pango
|
||||
command=battery-plus
|
||||
interval=60
|
||||
|
||||
[cpu_usage]
|
||||
command= echo "CPU:$(/usr/share/i3blocks/cpu_usage)"
|
||||
color=#00a000
|
||||
markup=pango
|
||||
command=i3bm-cpu
|
||||
interval=1
|
||||
|
||||
[memory]
|
||||
command=echo "Mem:$(/usr/share/i3blocks/memory)"
|
||||
color=#00a000
|
||||
interval=10
|
||||
|
||||
# [disk]
|
||||
# command=echo "D:$(/usr/share/i3blocks/disk)"
|
||||
# color=#00a000
|
||||
# interval=10
|
||||
[temperature]
|
||||
label=T:
|
||||
command=/usr/share/i3blocks/temperature
|
||||
interval=60
|
||||
|
||||
[uptime]
|
||||
command=echo "UT:$(awk '{print int($1/3600)":"int(($1%3600)/60)}' /proc/uptime)"
|
||||
interval=60
|
||||
color=#00a000
|
||||
|
||||
[bluetooth]
|
||||
command=echo "$(my-i3b-bluetooth)"
|
||||
interval=30
|
||||
color=#ffffff
|
||||
interval=60
|
||||
|
||||
[ssid]
|
||||
command=echo "SSID:$(my-iface-active-ssid)"
|
||||
interval=30
|
||||
color=#ffffff
|
||||
|
||||
[ssidQ]
|
||||
command=echo "($(my-iface-active-quality)%)"
|
||||
interval=30
|
||||
color=#008000
|
||||
|
||||
[iface]
|
||||
command=/usr/share/i3blocks/iface
|
||||
color=#00a000
|
||||
[wifi]
|
||||
markup=pango
|
||||
command=i3bm-wifi
|
||||
interval=60
|
||||
|
||||
[weather]
|
||||
command=curl -s 'wttr.in/{Grömitz}?format=%l:+%c+%t'
|
||||
interval=900
|
||||
color=#A4C2F4
|
||||
markup=pango
|
||||
command=i3bm-weather
|
||||
interval=300
|
||||
|
||||
# [weather]
|
||||
# command=curl -s 'wttr.in/{Grömitz}?format=%l:+%c+%t'
|
||||
# interval=900
|
||||
# color=#A4C2F4
|
||||
|
||||
[time]
|
||||
command=date +"%a, %d %b: %H:%M"
|
||||
interval=60
|
||||
|
||||
[brightness]
|
||||
markup=pango
|
||||
command=echo "Br:$(my-i3b-brightness)"
|
||||
color=#FF8300
|
||||
interval=2
|
||||
interval=10
|
||||
|
||||
[volume]
|
||||
command=echo "V:$(/usr/share/i3blocks/volume)"
|
||||
interval=1
|
||||
color=#FF8300
|
||||
markup=pango
|
||||
command=i3bm-volume
|
||||
interval=10
|
||||
|
||||
```
|
||||
|
||||
|
@ -1249,7 +1232,7 @@ color=#FF8300
|
|||
## Sway Related Scripts :sway:wayland:
|
||||
|
||||
|
||||
### ~/bin/sway-lock-utils
|
||||
## ~/bin/sway-lock-utils
|
||||
|
||||
Just a gathering place of locky/suspendy type things…
|
||||
|
||||
|
@ -1268,7 +1251,8 @@ lock_gpg_clear() {
|
|||
|
||||
case "$1" in
|
||||
lock)
|
||||
exec loginctl lock-session
|
||||
lock
|
||||
#exec loginctl lock-session
|
||||
;;
|
||||
lock_gpg_clear)
|
||||
lock_gpg_clear
|
||||
|
@ -1983,7 +1967,7 @@ e dbg.bep=main
|
|||
export PATH="${HOME}/.pyenv/bin":"${PATH}"
|
||||
```
|
||||
|
||||
2. [Eval](#org8f31d52) pyenv init from bash\_profile in order to set python version
|
||||
2. [Eval](#org97b4f87) pyenv init from bash\_profile in order to set python version
|
||||
|
||||
```bash
|
||||
eval "$(pyenv init -)"
|
||||
|
@ -1995,7 +1979,7 @@ e dbg.bep=main
|
|||
eval "$(pyenv virtualenv-init -)"
|
||||
```
|
||||
|
||||
Added to PATH in [~/.profile](#orga1f7396)
|
||||
Added to PATH in [~/.profile](#orgff747d3)
|
||||
|
||||
|
||||
### Debuggers :debuggers:
|
||||
|
@ -2921,7 +2905,7 @@ trans -e google -s en -t de -show-original y -show-original-phonetics y -show-tr
|
|||
## Security/Locking/GPG
|
||||
|
||||
|
||||
### ~/bin/cache-gpg
|
||||
### ~/bin/gpg-cache
|
||||
|
||||
```bash
|
||||
#!/usr/bin/bash
|
||||
|
|
1
directories/bin/i3bm-battery
Symbolic link
1
directories/bin/i3bm-battery
Symbolic link
|
@ -0,0 +1 @@
|
|||
thirdparty/i3blocks-modules/modules/battery
|
1
directories/bin/i3bm-cpu
Symbolic link
1
directories/bin/i3bm-cpu
Symbolic link
|
@ -0,0 +1 @@
|
|||
thirdparty/i3blocks-modules/modules/cpu
|
1
directories/bin/i3bm-cputemp
Symbolic link
1
directories/bin/i3bm-cputemp
Symbolic link
|
@ -0,0 +1 @@
|
|||
thirdparty/i3blocks-modules/modules/cputemp
|
1
directories/bin/i3bm-volume
Symbolic link
1
directories/bin/i3bm-volume
Symbolic link
|
@ -0,0 +1 @@
|
|||
thirdparty/i3blocks-modules/modules/volume
|
1
directories/bin/i3bm-weather
Symbolic link
1
directories/bin/i3bm-weather
Symbolic link
|
@ -0,0 +1 @@
|
|||
thirdparty/i3blocks-modules/modules/weather
|
1
directories/bin/i3bm-wifi
Symbolic link
1
directories/bin/i3bm-wifi
Symbolic link
|
@ -0,0 +1 @@
|
|||
thirdparty/i3blocks-modules/modules/wifi
|
|
@ -12,7 +12,8 @@ lock_gpg_clear() {
|
|||
|
||||
case "$1" in
|
||||
lock)
|
||||
exec loginctl lock-session
|
||||
lock
|
||||
#exec loginctl lock-session
|
||||
;;
|
||||
lock_gpg_clear)
|
||||
lock_gpg_clear
|
||||
|
|
|
@ -5,79 +5,62 @@ color=#ffd700
|
|||
|
||||
[kernel]
|
||||
command=echo "$(uname -sr)"
|
||||
interval=1
|
||||
interval=once
|
||||
color=#ffffff
|
||||
|
||||
[power_draw]
|
||||
command=echo "Wh:$(awk '{print $1*10^-6 " W"}' /sys/class/power_supply/BAT0/power_now)"
|
||||
interval=1
|
||||
interval=5
|
||||
color=#ffffff
|
||||
|
||||
#[battery]
|
||||
#command=my-i3b-battery-status
|
||||
#color=#ff8300
|
||||
#interval=60
|
||||
|
||||
[bat0]
|
||||
command=echo "Ba:$(/usr/share/i3blocks/battery bat0)"
|
||||
color=#00a000
|
||||
interval=30
|
||||
[battery]
|
||||
markup=pango
|
||||
command=battery-plus
|
||||
interval=60
|
||||
|
||||
[cpu_usage]
|
||||
command= echo "CPU:$(/usr/share/i3blocks/cpu_usage)"
|
||||
color=#00a000
|
||||
markup=pango
|
||||
command=i3bm-cpu
|
||||
interval=1
|
||||
|
||||
[memory]
|
||||
command=echo "Mem:$(/usr/share/i3blocks/memory)"
|
||||
color=#00a000
|
||||
interval=10
|
||||
|
||||
# [disk]
|
||||
# command=echo "D:$(/usr/share/i3blocks/disk)"
|
||||
# color=#00a000
|
||||
# interval=10
|
||||
[temperature]
|
||||
label=T:
|
||||
command=/usr/share/i3blocks/temperature
|
||||
interval=60
|
||||
|
||||
[uptime]
|
||||
command=echo "UT:$(awk '{print int($1/3600)":"int(($1%3600)/60)}' /proc/uptime)"
|
||||
interval=60
|
||||
color=#00a000
|
||||
|
||||
[bluetooth]
|
||||
command=echo "$(my-i3b-bluetooth)"
|
||||
interval=30
|
||||
color=#ffffff
|
||||
interval=60
|
||||
|
||||
[ssid]
|
||||
command=echo "SSID:$(my-iface-active-ssid)"
|
||||
interval=30
|
||||
color=#ffffff
|
||||
|
||||
[ssidQ]
|
||||
command=echo "($(my-iface-active-quality)%)"
|
||||
interval=30
|
||||
color=#008000
|
||||
|
||||
[iface]
|
||||
command=/usr/share/i3blocks/iface
|
||||
color=#00a000
|
||||
[wifi]
|
||||
markup=pango
|
||||
command=i3bm-wifi
|
||||
interval=60
|
||||
|
||||
[weather]
|
||||
command=curl -s 'wttr.in/{Grömitz}?format=%l:+%c+%t'
|
||||
interval=900
|
||||
color=#A4C2F4
|
||||
markup=pango
|
||||
command=i3bm-weather
|
||||
interval=300
|
||||
|
||||
# [weather]
|
||||
# command=curl -s 'wttr.in/{Grömitz}?format=%l:+%c+%t'
|
||||
# interval=900
|
||||
# color=#A4C2F4
|
||||
|
||||
[time]
|
||||
command=date +"%a, %d %b: %H:%M"
|
||||
interval=60
|
||||
|
||||
[brightness]
|
||||
markup=pango
|
||||
command=echo "Br:$(my-i3b-brightness)"
|
||||
color=#FF8300
|
||||
interval=2
|
||||
interval=10
|
||||
|
||||
[volume]
|
||||
command=echo "V:$(/usr/share/i3blocks/volume)"
|
||||
interval=1
|
||||
color=#FF8300
|
||||
markup=pango
|
||||
command=i3bm-volume
|
||||
interval=10
|
||||
|
|
|
@ -1207,7 +1207,7 @@ X11 apps still need resource definitions when launched under XWayland.
|
|||
exec swaybg -i ~/Pictures/Wallpapers/current
|
||||
exec sway-idle-hook
|
||||
exec nm-applet --indicator
|
||||
exec gpg-cache
|
||||
exec sleep 5 && gpg-cache
|
||||
exec swaymsg workspace 1:edit
|
||||
|
||||
#+end_src
|
||||
|
@ -1441,7 +1441,7 @@ X11 apps still need resource definitions when launched under XWayland.
|
|||
# i3bar
|
||||
bar {
|
||||
status_command i3blocks
|
||||
font pango:JetBrains Sans Mono 10
|
||||
font pango:Source Sans Pro, FontAwesome 8
|
||||
position top
|
||||
#mode hide
|
||||
hidden_state hide
|
||||
|
@ -1601,82 +1601,65 @@ X11 apps still need resource definitions when launched under XWayland.
|
|||
|
||||
[kernel]
|
||||
command=echo "$(uname -sr)"
|
||||
interval=1
|
||||
interval=once
|
||||
color=#ffffff
|
||||
|
||||
[power_draw]
|
||||
command=echo "Wh:$(awk '{print $1*10^-6 " W"}' /sys/class/power_supply/BAT0/power_now)"
|
||||
interval=1
|
||||
interval=5
|
||||
color=#ffffff
|
||||
|
||||
#[battery]
|
||||
#command=my-i3b-battery-status
|
||||
#color=#ff8300
|
||||
#interval=60
|
||||
|
||||
[bat0]
|
||||
command=echo "Ba:$(/usr/share/i3blocks/battery bat0)"
|
||||
color=#00a000
|
||||
interval=30
|
||||
[battery]
|
||||
markup=pango
|
||||
command=battery-plus
|
||||
interval=60
|
||||
|
||||
[cpu_usage]
|
||||
command= echo "CPU:$(/usr/share/i3blocks/cpu_usage)"
|
||||
color=#00a000
|
||||
markup=pango
|
||||
command=i3bm-cpu
|
||||
interval=1
|
||||
|
||||
[memory]
|
||||
command=echo "Mem:$(/usr/share/i3blocks/memory)"
|
||||
color=#00a000
|
||||
interval=10
|
||||
|
||||
# [disk]
|
||||
# command=echo "D:$(/usr/share/i3blocks/disk)"
|
||||
# color=#00a000
|
||||
# interval=10
|
||||
[temperature]
|
||||
label=T:
|
||||
command=/usr/share/i3blocks/temperature
|
||||
interval=60
|
||||
|
||||
[uptime]
|
||||
command=echo "UT:$(awk '{print int($1/3600)":"int(($1%3600)/60)}' /proc/uptime)"
|
||||
interval=60
|
||||
color=#00a000
|
||||
|
||||
[bluetooth]
|
||||
command=echo "$(my-i3b-bluetooth)"
|
||||
interval=30
|
||||
color=#ffffff
|
||||
interval=60
|
||||
|
||||
[ssid]
|
||||
command=echo "SSID:$(my-iface-active-ssid)"
|
||||
interval=30
|
||||
color=#ffffff
|
||||
|
||||
[ssidQ]
|
||||
command=echo "($(my-iface-active-quality)%)"
|
||||
interval=30
|
||||
color=#008000
|
||||
|
||||
[iface]
|
||||
command=/usr/share/i3blocks/iface
|
||||
color=#00a000
|
||||
[wifi]
|
||||
markup=pango
|
||||
command=i3bm-wifi
|
||||
interval=60
|
||||
|
||||
[weather]
|
||||
command=curl -s 'wttr.in/{Grömitz}?format=%l:+%c+%t'
|
||||
interval=900
|
||||
color=#A4C2F4
|
||||
markup=pango
|
||||
command=i3bm-weather
|
||||
interval=300
|
||||
|
||||
# [weather]
|
||||
# command=curl -s 'wttr.in/{Grömitz}?format=%l:+%c+%t'
|
||||
# interval=900
|
||||
# color=#A4C2F4
|
||||
|
||||
[time]
|
||||
command=date +"%a, %d %b: %H:%M"
|
||||
interval=60
|
||||
|
||||
[brightness]
|
||||
markup=pango
|
||||
command=echo "Br:$(my-i3b-brightness)"
|
||||
color=#FF8300
|
||||
interval=2
|
||||
interval=10
|
||||
|
||||
[volume]
|
||||
command=echo "V:$(/usr/share/i3blocks/volume)"
|
||||
interval=1
|
||||
color=#FF8300
|
||||
markup=pango
|
||||
command=i3bm-volume
|
||||
interval=10
|
||||
|
||||
#+end_src
|
||||
*** i3blocks utilities
|
||||
|
@ -1770,7 +1753,7 @@ X11 apps still need resource definitions when launched under XWayland.
|
|||
#+end_src
|
||||
|
||||
** Sway Related Scripts :sway:wayland:
|
||||
*** ~/bin/sway-lock-utils
|
||||
** ~/bin/sway-lock-utils
|
||||
Just a gathering place of locky/suspendy type things...
|
||||
#+begin_src bash :tangle "~/bin/sway-lock-utils"
|
||||
#!/usr/bin/bash
|
||||
|
@ -1787,7 +1770,8 @@ X11 apps still need resource definitions when launched under XWayland.
|
|||
|
||||
case "$1" in
|
||||
lock)
|
||||
exec loginctl lock-session
|
||||
lock
|
||||
#exec loginctl lock-session
|
||||
;;
|
||||
lock_gpg_clear)
|
||||
lock_gpg_clear
|
||||
|
@ -3226,7 +3210,7 @@ Load a host specific kanshi file if it exists
|
|||
trans -e google -s en -t de -show-original y -show-original-phonetics y -show-translation y -no-ansi -show-translation-phonetics n -show-prompt-message n -show-languages y -show-original-dictionary y -show-dictionary y -show-alternatives y "$@"
|
||||
#+end_src
|
||||
** Security/Locking/GPG
|
||||
*** ~/bin/cache-gpg
|
||||
*** ~/bin/gpg-cache
|
||||
#+begin_src bash :tangle "~/bin/gpg-cache"
|
||||
#!/usr/bin/bash
|
||||
#Maintained in linux-init-files.org
|
||||
|
|
Loading…
Reference in a new issue