This commit is contained in:
Yuri Zamyatin 2025-01-05 20:34:15 +00:00
parent b175df9766
commit 6f7e510745
6 changed files with 15 additions and 2 deletions

View File

@ -5,7 +5,7 @@ read -r cap </sys/class/power_supply/BAT1/capacity
read -r volt </sys/class/power_supply/BAT1/voltage_now
read -r curr </sys/class/power_supply/BAT1/current_now
w=$(($volt*$curr/1000000000000))
w=$((volt*curr/1000000000000))
if [ "$stat" = "1" ]; then
echo "⚡$cap%▴${w}W"
else

View File

@ -8,6 +8,11 @@ interval=3600
command=~/.config/i3blocks/battery
interval=10
[xkb_layout]
command=~/.config/i3blocks/xkb_layout
interval=once
signal=1
[time]
command=date +"%Y-%m-%dT%H:%M:%SZ"
interval=1

View File

@ -0,0 +1,2 @@
#!/bin/sh
swaymsg -t get_inputs | jq '"⌨ "+map(select(has("xkb_active_layout_name")))[0].xkb_active_layout_name'

View File

@ -43,7 +43,7 @@ input "type:keyboard" {
xkb_layout us(yz),us(basic),ru(yz)
repeat_rate 50
}
bindsym --to-code Shift+ISO_Level3_Shift input "type:keyboard" xkb_switch_layout next
bindsym --to-code Shift+ISO_Level3_Shift input "type:keyboard" xkb_switch_layout next; exec pkill -SIGRTMIN+1 i3blocks
input "type:touchpad" {
tap enabled
natural_scroll enabled
@ -114,6 +114,10 @@ bindsym --to-code $mod+v exec wtype -P XF86Paste
# media
bindsym --to-code XF86MonBrightnessDown exec ~/.config/sway/brightness-set-and-notify.sh 5%-
bindsym --to-code XF86MonBrightnessUp exec ~/.config/sway/brightness-set-and-notify.sh 5%+
bindsym --to-code XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle
bindsym --to-code XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5%
bindsym --to-code XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5%
bindsym --to-code XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle
# basic scripts
bindsym --to-code $mod+Escape kill
bindsym --to-code $mod+Return exec footclient

View File

@ -1,6 +1,7 @@
xkb_symbols "yz" {
include "ru(common)"
name[Group1]= "ru-yz";
# functional
key.type = "ONE_LEVEL";

View File

@ -1,6 +1,7 @@
xkb_symbols "yz" {
include "us(colemak_dh)"
name[Group1]= "en-yz";
# functional
key.type = "ONE_LEVEL";