From 9ffcbde6d2cd04a24e1a4f742be975b62c451d4f Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Wed, 12 Nov 2025 18:23:14 +0300 Subject: [PATCH] arch: upd --- .config/metapac/groups/system.toml | 1 + Arch.org | 3 ++- Desktop.org | 40 ++++++++++++++++++++---------- bin/polybar.sh | 4 +++ 4 files changed, 34 insertions(+), 14 deletions(-) diff --git a/.config/metapac/groups/system.toml b/.config/metapac/groups/system.toml index ba053a0..53bb320 100644 --- a/.config/metapac/groups/system.toml +++ b/.config/metapac/groups/system.toml @@ -24,6 +24,7 @@ arch = [ "openssh", "metapac", "nano", +"inetutils", "linux-firmware", "linux", "lightdm-gtk-greeter", diff --git a/Arch.org b/Arch.org index 369385c..3e956bd 100644 --- a/Arch.org +++ b/Arch.org @@ -71,12 +71,12 @@ yadm clone git@github.com:SqrtMinusOne/dotfiles.git Checkout the changed files. Clone the org-mode repo: - #+begin_src bash git clone git@github.com:SqrtMinusOne/dotfiles.git "/home/pavel/30-39 Life/32 org-mode" #+end_src Install wakatime: + #+begin_src bash cd ~/00-Scratch/ git clone https://github.com/wakatime/wakatime-cli.git @@ -165,6 +165,7 @@ Some necessary Arch packages: | lightdm-gtk-greeter | | linux | | linux-firmware | +| inetutils | | nano | | metapac | | openssh | diff --git a/Desktop.org b/Desktop.org index 26f82e2..7937fd5 100644 --- a/Desktop.org +++ b/Desktop.org @@ -30,8 +30,8 @@ Removed features: I used to define color codes here (see [[https://github.com/SqrtMinusOne/dotfiles/commit/2dbf1cdd008ec0061456782cca3ebd76e603b31e][previous version of the file]]), now I just get colors from the current Emacs theme. To use them, let's define a noweb block: -#+NAME: get-color +#+NAME: get-color #+begin_src emacs-lisp :var name="black" quote=0 (let ((color (or (my/color-value name)))) (if (> quote 0) @@ -1966,17 +1966,19 @@ As we want to interweave polybar modules with these glyphs in the right order an Also excluding some modules from certain monitors, which for now is about excluding =battery= from the monitors of my desktop PC: #+NAME: polybar_modules_exclude -| Monitor | Exclude | -|----------+---------| -| DVI-D-0 | battery | -| HDMI-A-0 | battery | -| HDMI-0 | battery | -| DP-1 | battery | -| eDP | nvidia | -| eDP-1 | nvidia | -| DVI-D-0 | nvidia | -| HDMI-A-0 | nvidia | -| HDMI-1 | nvidia | +| Monitor | Exclude | +|-----------+---------| +| DVI-D-0 | battery | +| HDMI-A-0 | battery | +| HDMI-0 | battery | +| DP-1 | battery | +| Virtual-1 | battery | +| eDP | nvidia | +| eDP-1 | nvidia | +| DVI-D-0 | nvidia | +| HDMI-A-0 | nvidia | +| HDMI-1 | nvidia | +| Virtual-1 | nvidia | Another thing we need to do is to set the color of modules in accordance with the =polybar_modules= table. The background can be determined from the =Color= column with the following code block: #+NAME: get-polybar-bg @@ -2242,6 +2244,7 @@ declare -A FONT_SIZES=( ["HDMI-1"]="13" ["HDMI-0"]="13" ["DP-1"]="13" + ["Virtual-1"]="13" ) declare -A EMOJI_SCALE=( ["eDP"]="9" @@ -2251,6 +2254,7 @@ declare -A EMOJI_SCALE=( ["HDMI-1"]="10" ["HDMI-0"]="10" ["DP-1"]="10" + ["Virtual-1"]="13" ) declare -A BAR_HEIGHT=( ["eDP"]="29" @@ -2260,6 +2264,7 @@ declare -A BAR_HEIGHT=( ["HDMI-1"]="29" ["HDMI-0"]="29" ["DP-1"]="29" + ["Virtual-1"]="29" ) declare -A BLOCKS=( ["eDP"]="<>" @@ -2269,6 +2274,7 @@ declare -A BLOCKS=( ["HDMI-1"]="<>" ["HDMI-0"]="<>" ["DP-1"]="<>" + ["Virtual-1"]="<>" ) declare -A TEMP_HWMON_PATHS=( @@ -4372,6 +4378,10 @@ flatpak install -y --user flathub chat.rocket.RocketChat :END: [[https://www.gnu.org/software/shepherd/manual/html_node/index.html][GNU Shepherd]] is a service management system for GNU Guix. I'll probably migrate to systemd since I'm not on Guix anymore. +| Arch dependency | Disabled | +|-----------------+----------| +| shepherd | t | + ** Music | Category | Arch dependency | |----------+-----------------| @@ -4416,6 +4426,10 @@ MPD watcher ** GNU Mcron [[https://www.gnu.org/software/mcron/][GNU Mcron]] is a replacement for cron, written in Scheme. +| Arch dependency | Disabled | +|-----------------+----------| +| mcron | t | + #+begin_src scheme (define mcron (make @@ -4638,7 +4652,7 @@ Run services ;; opensnitch-ui )) #+end_src -* Acch settings +* Arch settings Other desktop programs I use are listed below. | Category | Arch dependency | Description | diff --git a/bin/polybar.sh b/bin/polybar.sh index a558500..fbb2ac4 100755 --- a/bin/polybar.sh +++ b/bin/polybar.sh @@ -25,6 +25,7 @@ declare -A FONT_SIZES=( ["HDMI-1"]="13" ["HDMI-0"]="13" ["DP-1"]="13" + ["Virtual-1"]="13" ) declare -A EMOJI_SCALE=( ["eDP"]="9" @@ -34,6 +35,7 @@ declare -A EMOJI_SCALE=( ["HDMI-1"]="10" ["HDMI-0"]="10" ["DP-1"]="10" + ["Virtual-1"]="13" ) declare -A BAR_HEIGHT=( ["eDP"]="29" @@ -43,6 +45,7 @@ declare -A BAR_HEIGHT=( ["HDMI-1"]="29" ["HDMI-0"]="29" ["DP-1"]="29" + ["Virtual-1"]="29" ) declare -A BLOCKS=( ["eDP"]="glyph-background--light-magenta pulseaudio glyph-light-magenta--magenta mpd glyph-magenta--cyan cpu glyph-cyan--cyan temperature glyph-cyan--cyan battery glyph-cyan--light-green ram-memory glyph-light-green--green swap-memory glyph-green--light-red bandwidth openvpn glyph-light-red--red xkeyboard glyph-red--light-yellow weather glyph-light-yellow--yellow sun glyph-yellow--light-blue aw-afk glyph-light-blue--blue date glyph-blue--background " @@ -52,6 +55,7 @@ declare -A BLOCKS=( ["HDMI-1"]="glyph-background--light-magenta pulseaudio glyph-light-magenta--magenta mpd glyph-magenta--cyan cpu glyph-cyan--cyan temperature glyph-cyan--cyan battery glyph-cyan--light-green ram-memory glyph-light-green--green swap-memory glyph-green--light-red bandwidth openvpn glyph-light-red--red xkeyboard glyph-red--light-yellow weather glyph-light-yellow--yellow sun glyph-yellow--light-blue aw-afk glyph-light-blue--blue date glyph-blue--background " ["HDMI-0"]="glyph-background--light-magenta pulseaudio glyph-light-magenta--magenta mpd glyph-magenta--light-cyan nvidia glyph-light-cyan--cyan cpu glyph-cyan--cyan temperature glyph-cyan--light-green ram-memory glyph-light-green--green swap-memory glyph-green--light-red bandwidth openvpn glyph-light-red--red xkeyboard glyph-red--light-yellow weather glyph-light-yellow--yellow sun glyph-yellow--light-blue aw-afk glyph-light-blue--blue date glyph-blue--background " ["DP-1"]="glyph-background--light-magenta pulseaudio glyph-light-magenta--magenta mpd glyph-magenta--light-cyan nvidia glyph-light-cyan--cyan cpu glyph-cyan--cyan temperature glyph-cyan--light-green ram-memory glyph-light-green--green swap-memory glyph-green--light-red bandwidth openvpn glyph-light-red--red xkeyboard glyph-red--light-yellow weather glyph-light-yellow--yellow sun glyph-yellow--light-blue aw-afk glyph-light-blue--blue date glyph-blue--background " + ["Virtual-1"]="glyph-background--light-magenta pulseaudio glyph-light-magenta--magenta mpd glyph-magenta--cyan cpu glyph-cyan--cyan temperature glyph-cyan--light-green ram-memory glyph-light-green--green swap-memory glyph-green--light-red bandwidth openvpn glyph-light-red--red xkeyboard glyph-red--light-yellow weather glyph-light-yellow--yellow sun glyph-yellow--light-blue aw-afk glyph-light-blue--blue date glyph-blue--background " ) declare -A TEMP_HWMON_PATHS=(