From a566b1b9ddccc719f3e616165b272ce1fadec293 Mon Sep 17 00:00:00 2001 From: Yuri Zamyatin Date: Sat, 28 Dec 2024 02:12:24 +0000 Subject: [PATCH] wip --- arch-root/install.sh | 4 +- arch-user/config/i3blocks/battery | 14 ++--- arch-user/config/i3blocks/config | 6 ++- arch-user/config/i3blocks/weather | 3 ++ arch-user/config/sway/config.tmpl | 87 ++++++++++++++++++------------- arch-user/config/theme.sh | 4 ++ arch-user/config/xkb/symbols/ru | 4 -- arch-user/config/xkb/symbols/us | 4 -- 8 files changed, 72 insertions(+), 54 deletions(-) create mode 100755 arch-user/config/i3blocks/weather diff --git a/arch-root/install.sh b/arch-root/install.sh index 603c199..4ba3ebb 100644 --- a/arch-root/install.sh +++ b/arch-root/install.sh @@ -4,7 +4,7 @@ set -e PACKAGES=( # system - base apparmor lvm2 greetd sudo # system + linux base linux-firmware lvm2 sudo polkit greetd # basic openssh networkmanager man-db restic htop # admin utils # cli programs @@ -37,7 +37,7 @@ file_has_line() { pacman -Syu pacman -S --needed "${PACKAGES[@]}" -pacman -S --needed brightnessctl sof-firmware intel-media-driver intel-ucode mesa +pacman -S --needed brightnessctl intel-media-driver intel-ucode mesa tlp pacman -S --needed libreoffice-still file_has_line "/etc/profile" "umask 002" diff --git a/arch-user/config/i3blocks/battery b/arch-user/config/i3blocks/battery index 0081394..06fd309 100755 --- a/arch-user/config/i3blocks/battery +++ b/arch-user/config/i3blocks/battery @@ -1,12 +1,14 @@ #!/bin/sh -set -- /sys/class/power_supply/*/capacity; -read cap < "$1" -read st < "/sys/class/power_supply/ACAD/online" || true +read -r stat { [ Control_L ] }; - modifier_map Control { }; replace key { [ Super_L ] }; - modifier_map Mod4 { }; replace key { [ ISO_Level3_Shift ] }; - modifier_map Mod3 { }; replace key { [ Alt_L ] }; - modifier_map Mod1 { }; # layer3 # TODO: migrate to type=ALPHANUMERIC diff --git a/arch-user/config/xkb/symbols/us b/arch-user/config/xkb/symbols/us index 56daf4f..79b4499 100644 --- a/arch-user/config/xkb/symbols/us +++ b/arch-user/config/xkb/symbols/us @@ -10,13 +10,9 @@ xkb_symbols "yz" { # modifiers key.type = "ONE_LEVEL"; replace key { [ Control_L ] }; - modifier_map Control { }; replace key { [ Super_L ] }; - modifier_map Mod4 { }; replace key { [ ISO_Level3_Shift ] }; - modifier_map Mod3 { }; replace key { [ Alt_L ] }; - modifier_map Mod1 { }; # layer3 # TODO: migrate to type=ALPHANUMERIC