commit 99ecca3

chld  ·  2026-10-08 12:32:20 +0000 UTC
parent fb970de
update
11 files changed,  +471, -17
M emacs
+2, -0
1@@ -0,0 +1,2 @@
2+senpai.scfg
3+id*
+1, -1
1@@ -2,7 +2,7 @@
2 # foot.ini pallete generator for kmscon
3 
4 set -x
5-R="${R:-/home/31/bin/hrgb}"
6+R="${R:-$HOME/bin/hrgb}"
7 main(){
8     cat $3 \
9 	| grep -E 'regular|bright' \
+1, -1
1@@ -1,7 +1,7 @@
2 #!/bin/sh
3 
4 main(){
5-    cat ${FILE:-$HOME/.config/foot/foot.ini} \
6+    cat ${FILE:-$HOME/dot/foot.ini} \
7 	|grep -E 'regular|bright' \
8 	|sed 's/=/ /g' \
9 	|awk '{print $2}' \
+9, -13
 1@@ -3,22 +3,18 @@ export GUILE_AUTO_COMPILE=0
 2 
 3 function fish_prompt
 4     #printf "%s%s%s " (set_color -b white black) $(hostname) (set_color --reset)
 5-    printf '$ '
 6+    printf '%% '
 7 end
 8 
 9 set -g fish_greeting ''
10 export DFM_TRASH=rm
11 
12-fish_add_path /sbin
13-fish_add_path /usr/sbin
14-fish_add_path /usr/bin
15-fish_add_path /usr/local/bin
16 fish_add_path $HOME/bin
17 
18-export ENV=$HOME/.profile
19+# export ENV=$HOME/.profile
20 
21-set -l background     222222
22-set -l foreground     c2c2b0
23+#set -l background     222222
24+set -l foreground     222222
25 set -l selection      e4c47a
26 set -l comment        666666
27 set -l red            685742
28@@ -26,7 +22,7 @@ set -l orange         b36d43
29 set -l yellow         c9a554
30 set -l green          5f875f
31 set -l purple         78824b
32-set -l sky            d7c483
33+set -l sky            332222
34 set -l pink           bb7744
35 
36 set -g fish_color_normal         $foreground
37@@ -51,8 +47,8 @@ set -g fish_pager_color_description         $comment
38 set -g fish_pager_color_selected_background --background=$selection
39 
40 [ -z $DISPLAY ] && [ $(tty) = "/dev/tty1" ] && {
41-for i in sway awww-daemon aws
42-    killall $i 2>/dev/null || :;
43-end
44-exec sway 2>/dev/null
45+#for i in sway awww-daemon aws
46+#    killall $i 2>/dev/null || :;
47+#end
48+#exec sway 2>/dev/null
49 }
+98, -0
 1@@ -0,0 +1,98 @@
 2+(define (wantkmscon) #t)
 3+
 4+;; This is an operating system configuration generated
 5+;; by the graphical installer.
 6+;;
 7+;; Once installation is complete, you can learn and modify
 8+;; this file to tweak the system configuration, and pass it
 9+;; to the 'guix system reconfigure' command to effect your
10+;; changes.
11+
12+
13+;; Indicate which modules to import to access the variables
14+;; used in this configuration.
15+(use-modules (gnu)
16+	     (gnu packages)
17+	     (gnu packages shells)
18+	     (gnu packages terminals)
19+	     (guix gexp)
20+	     )
21+(use-service-modules cups desktop networking ssh xorg)
22+
23+(define kmscon-with-config
24+  (file-union "kmscon-with-config"
25+	      `(("bin/kmscon"
26+		 ,(program-file "kmscon-with-config"
27+				#~(apply execl #$(file-append kmscon "/bin/kmscon")
28+					 "kmscon" "--configdir=/etc/kmscon"
29+					 (cdr (command-line))))))))
30+
31+(operating-system
32+ (locale "en_US.utf8")
33+ (timezone "America/Chicago")
34+ (keyboard-layout (keyboard-layout "us"))
35+ (host-name "scm")
36+ (kernel-arguments '("i8042.reset" "i8042.nomux"))
37+
38+ (packages (append
39+	    (specifications->packages (list
40+				       "emacs"
41+				       "kmscon"
42+				       "fontconfig"
43+				       "freetype"
44+				       )) %base-packages))
45+
46+ ;; The list of user accounts ('root' is implicit).
47+ (users (cons* (user-account
48+		(name "chld")
49+		(comment "Chld")
50+		(group "users")
51+		(home-directory "/usr/chld")
52+		(shell (file-append fish "/bin/fish"))
53+		(supplementary-groups '("wheel" "netdev" "audio" "video" "input" "seat")))
54+               %base-user-accounts))
55+
56+ ;; Below is the list of system services.  To search for available
57+ ;; services, run 'guix system search KEYWORD' in a terminal.
58+ (services
59+  
60+  (append (list
61+           ;; To configure OpenSSH, pass an 'openssh-configuration'
62+           ;; record as a second argument to 'service' below.
63+           (service openssh-service-type)
64+	   (service seatd-service-type)
65+           (service network-manager-service-type)
66+           (service wpa-supplicant-service-type)
67+           (service ntp-service-type))
68+	  
69+	    (map (lambda (n)		   (service kmscon-service-type			    (kmscon-configuration (kmscon kmscon-with-config)			     (hardware-acceleration? #t)			     (font-engine "freetype")			     (font-size 16)			     (virtual-terminal (format #f "tty~a" n)))))		 (iota 6 1)		 )
70+
71+	    (list (simple-service 'kmscon-config etc-service-type `(("kmscon/kmscon.conf" ,(local-file "/usr/chld/dot/kmscon.conf")))))
72+
73+	  ;; This is the default list of services we
74+	  ;; are appending to.
75+	  (if (wantkmscon)
76+	      (modify-services %base-services
77+			       (delete mingetty-service-type)
78+			       )
79+	      %base-services
80+	      )
81+	  ))
82+
83+ (bootloader (bootloader-configuration
84+              (bootloader grub-bootloader)
85+              (targets (list "/dev/sda"))
86+              (keyboard-layout keyboard-layout)))
87+ (swap-devices (list (swap-space
88+                      (target (uuid
89+                               "249b00e0-c93a-480f-9aea-516941a327f7")))))
90+
91+ ;; The list of file systems that get "mounted".  The unique
92+ ;; file system identifiers there ("UUIDs") can be obtained
93+ ;; by running 'blkid' in a terminal.
94+ (file-systems (cons* (file-system
95+                       (mount-point "/")
96+                       (device (uuid
97+				"86458d6e-960b-4f4b-8a0a-5bc604d6def4"
98+				'ext4))
99+                       (type "ext4")) %base-file-systems)))
M emacs
+1, -1
1@@ -114,7 +114,7 @@
2 ;; alas,
3 ;;(load-theme 'miasma :no-confirm)
4 (add-to-list 'custom-theme-load-path (concat user-emacs-directory "/nonpackaged/"))
5-(load-theme 'miasman :no-confirm)
6+(load-theme 'solarized-gruvbox-dark :no-confirm)
7 (set-face-attribute 'default nil
8                     :background "#d7c483"
9                     :foreground "#222222")
+1, -1
1@@ -25,7 +25,7 @@ term=foot
2 pad=16x32 center
3 initial-window-size-pixels=400x300
4 resize-by-cells=yes
5-font=Misc Fixed:size=9
6+font=PxPlus IBM VGA 8x16:size=12
7 
8 [colors-dark]
9 alpha=1
+66, -0
 1@@ -0,0 +1,66 @@
 2+;; This is a sample Guix Home configuration which can help setup your
 3+;; home directory in the same declarative manner as Guix System.
 4+;; For more information, see the Home Configuration section of the manual.
 5+(define-module (guix-home-config)
 6+  #:use-module (gnu home)
 7+  #:use-module (gnu packages)
 8+  #:use-module (gnu home services)
 9+  #:use-module (gnu home services shells)
10+  #:use-module (gnu services)
11+  #:use-module (gnu system shadow)
12+  #:use-module (guix gexp)
13+  )
14+(use-modules
15+ (ice-9 popen)
16+ (ice-9 rdelim)
17+ (srfi srfi-1))
18+
19+(define (home-file path)
20+  (local-file (string-append (getenv "HOME") path))
21+  )
22+
23+(define home-config
24+
25+  (home-environment
26+   (packages (specifications->packages (list
27+					"git"
28+					"unzip"
29+					"libinput"
30+					"senpai"
31+					"font-google-noto-emoji"
32+					"chafa" "tmux"
33+					"emacs-guix"
34+					"links" "w3m" "curl" "librewolf" "netsurf" "dillo" "ungoogled-chromium-wayland"
35+					"ffmpeg"
36+					"foot" "labwc" "swaybg" "seatd" "wl-clipboard"
37+					)))
38+   (services
39+    (append
40+     (list
41+      ;; Uncomment the shell you wish to use for your user:
42+      (service home-fish-service-type
43+	       (home-fish-configuration
44+		(config
45+		 (list (home-file "/dot/config.fish")))))
46+
47+
48+      (service home-files-service-type
49+               `((".guile" ,%default-dotguile)
50+		 (".tmux.conf" ,(home-file "/dot/tmux.conf"))
51+		 (".emacs" ,(home-file "/dot/emacs"))
52+		 ))
53+      
54+
55+      (service home-xdg-configuration-files-service-type
56+               `(("gdb/gdbinit" ,%default-gdbinit)
57+		 ;;("fish/config.fish" ,(home-file "/dot/config.fish"))
58+		 ("senpai/senpai.scfg" ,(home-file "/dot/senpai.scfg"))
59+		 ("foot/foot.ini" ,(home-file "/dot/foot.ini"))
60+		 ("labwc/rc.xml" ,(home-file "/dot/labwc.rc.xml"))
61+		 ("labwc/menu.xml" ,(home-file "/dot/labwc.menu.xml"))
62+		 ("labwc/autostart" ,(home-file "/dot/labwc.autostart"))
63+		 ("nano/nanorc" ,%default-nanorc))))
64+
65+     %base-home-services))))
66+
67+home-config
+144, -0
  1@@ -0,0 +1,144 @@
  2+## All this options are overriden by the command line.
  3+## So check your ksmcon launch script if an option has no visible effect
  4+##
  5+## For boolean options (like hwaccel), you can disable
  6+## them by adding a "no-" prefix, like no-hwaccel or no-mouse
  7+
  8+### General Options
  9+#verbose
 10+#debug
 11+
 12+### Seat options (Usually setup in command line)
 13+#vt=1
 14+#switchvt
 15+#libseat
 16+
 17+### Session Options
 18+#session-max=6
 19+#session-control
 20+
 21+### Graphics options
 22+## Use drm driver (enabled by default)
 23+drm
 24+
 25+## GPU to use, [all, primary, aux]
 26+gpus=all
 27+
 28+## Enable 3d rendering, using gltex with drm3d instead of bbulk with drm2d
 29+hwaccel
 30+
 31+## Use original mode (enabled by default)
 32+#use-original-mode
 33+
 34+## Force a specific mode for all monitors, widthxheight
 35+#mode=1024x768
 36+
 37+## Multi monitor configuration [clone, largest, scaled], default is scaled.
 38+#multi-monitor=scaled
 39+
 40+## Screen rotation, can be [normal, left, upside-down, right]
 41+#rotate=left
 42+
 43+## Fonts
 44+## font-engine, can be [freetype, pango, psf, unifont, 8x16], by default kmscon tries in this order.
 45+#font-engine=freetype
 46+## The font size is the height of the font in pixels. For psf, unifont and 8x16, only integer scaling is supported.
 47+## The default value is 0, which will auto-detect the font size based on the monitor resolution.
 48+#font-size=18
 49+## font-name is only for freetype/pango. For psf, it's the path of the psf or psf.gz file. Unifont and 8x16 uses their own bitmap.
 50+font-name=PxPlus IBM VGA 8x16
 51+
 52+### Input Options ###
 53+## Keyboard
 54+#xkb-model=pc102
 55+#xkb-layout=de
 56+#xkb-variant=
 57+#xkb-options=
 58+#xkb-keymap=path/to/keymap.map
 59+#xkb-compose-file=path/to/compose
 60+#xkb-repeat-delay=200
 61+#xkb-repeat-rate=65
 62+
 63+## Keyboard Shortcuts
 64+## Control keys are not case insensitive. Ex: <Ctrl>, <ctrl>, <CTRL>
 65+## Other keys are case sensitive, and follow the keysym_names[] of the
 66+## xkbcommon library.
 67+## https://github.com/xkbcommon/libxkbcommon/blob/master/src/keysym-names.h
 68+#grab-scroll-up=<Shift>Up
 69+#grab-scroll-down=<Shift>Down
 70+#grab-page-up=<Shift>Prior
 71+#grab-page-down=<Shift>Next
 72+#grab-zoom-in=<Ctrl>plus
 73+#grab-zoom-out=<Ctrl>minus
 74+#grab-session-next=<Ctrl><Logo>Right
 75+#grab-session-prev=<Ctrl><Logo>Left
 76+#grab-session-close=<Ctrl><Logo>BackSpace
 77+#grab-terminal-new=<Ctrl><Logo>Return
 78+#grab-rotate-cw=<Logo>plus
 79+#grab-rotate-ccw=<Logo>minus
 80+## Reboot system (disabled by default)
 81+## Reboot behavior follows /proc/sys/kernel/ctrl-alt-del:
 82+##   0 (default): graceful reboot (sends SIGINT to init)
 83+##   >0: immediate hard reboot after syncing disk buffers
 84+#grab-reboot=<Ctrl><Alt>Delete
 85+
 86+## Enable mouse
 87+mouse
 88+## Force software cursor
 89+#soft-cursor
 90+
 91+## Power Management
 92+## Screen timeout in seconds (0 = disabled)
 93+## The screen will be turned off (DPMS OFF) after this period of inactivity
 94+## Any keyboard or mouse input will turn the screen back on
 95+#dpms-timeout=600
 96+
 97+## Terminal options
 98+## Play an asciicast animation after opening the terminal session.
 99+## The animation stops on keyboard input.
100+#asciicast=/usr/share/kmscon/login.cast
101+
102+## Loop the asciicast animation.
103+#asciicast-loop
104+
105+## value of the $TERM variable
106+term=xterm-256color
107+
108+## Reset environment [on]
109+reset-env
110+
111+## Send delete when backspace is pressed [on]
112+#backspace-delete
113+
114+## Scrollback buffer size, in lines
115+#sb-size=10000
116+
117+## Forward BEL (0x07) to the VT (default off)
118+#bell
119+
120+## Blinking cursor and text with blink attribute (enabled by default)
121+#blink
122+
123+## Colors palette, one of [solarized, solarized-black, solarized-white,
124+## soft-black, base16-dark, base16-light, vga, legacy, custom]
125+palette=custom
126+
127+## If you selected palette=custom, you can customize each color with:
128+palette-black=34, 34, 34
129+palette-red=104, 87, 66
130+palette-green=95, 135, 95
131+palette-yellow=179, 109, 67
132+palette-blue=120, 130, 75
133+palette-magenta=187, 119, 68
134+palette-cyan=153, 149, 52
135+palette-light-grey=34, 34, 34
136+palette-dark-grey=102, 102, 102
137+palette-light-red=104, 87, 66
138+palette-light-green=95, 135, 95
139+palette-light-yellow=179, 109, 67
140+palette-light-blue=120, 130, 75
141+palette-light-magenta=187, 119, 68
142+palette-light-cyan=169, 133, 52
143+palette-white=34, 34, 34
144+palette-foreground=34, 34, 34
145+palette-background=215, 196, 131
+144, -0
  1@@ -0,0 +1,144 @@
  2+## All this options are overriden by the command line.
  3+## So check your ksmcon launch script if an option has no visible effect
  4+##
  5+## For boolean options (like hwaccel), you can disable
  6+## them by adding a "no-" prefix, like no-hwaccel or no-mouse
  7+
  8+### General Options
  9+#verbose
 10+#debug
 11+
 12+### Seat options (Usually setup in command line)
 13+#vt=1
 14+#switchvt
 15+#libseat
 16+
 17+### Session Options
 18+#session-max=6
 19+#session-control
 20+
 21+### Graphics options
 22+## Use drm driver (enabled by default)
 23+drm
 24+
 25+## GPU to use, [all, primary, aux]
 26+gpus=all
 27+
 28+## Enable 3d rendering, using gltex with drm3d instead of bbulk with drm2d
 29+hwaccel
 30+
 31+## Use original mode (enabled by default)
 32+#use-original-mode
 33+
 34+## Force a specific mode for all monitors, widthxheight
 35+#mode=1024x768
 36+
 37+## Multi monitor configuration [clone, largest, scaled], default is scaled.
 38+#multi-monitor=scaled
 39+
 40+## Screen rotation, can be [normal, left, upside-down, right]
 41+#rotate=left
 42+
 43+## Fonts
 44+## font-engine, can be [freetype, pango, psf, unifont, 8x16], by default kmscon tries in this order.
 45+#font-engine=freetype
 46+## The font size is the height of the font in pixels. For psf, unifont and 8x16, only integer scaling is supported.
 47+## The default value is 0, which will auto-detect the font size based on the monitor resolution.
 48+#font-size=18
 49+## font-name is only for freetype/pango. For psf, it's the path of the psf or psf.gz file. Unifont and 8x16 uses their own bitmap.
 50+#font-name=Hack Nerd Font
 51+
 52+### Input Options ###
 53+## Keyboard
 54+#xkb-model=pc102
 55+#xkb-layout=de
 56+#xkb-variant=
 57+#xkb-options=
 58+#xkb-keymap=path/to/keymap.map
 59+#xkb-compose-file=path/to/compose
 60+#xkb-repeat-delay=200
 61+#xkb-repeat-rate=65
 62+
 63+## Keyboard Shortcuts
 64+## Control keys are not case insensitive. Ex: <Ctrl>, <ctrl>, <CTRL>
 65+## Other keys are case sensitive, and follow the keysym_names[] of the
 66+## xkbcommon library.
 67+## https://github.com/xkbcommon/libxkbcommon/blob/master/src/keysym-names.h
 68+#grab-scroll-up=<Shift>Up
 69+#grab-scroll-down=<Shift>Down
 70+#grab-page-up=<Shift>Prior
 71+#grab-page-down=<Shift>Next
 72+#grab-zoom-in=<Ctrl>plus
 73+#grab-zoom-out=<Ctrl>minus
 74+#grab-session-next=<Ctrl><Logo>Right
 75+#grab-session-prev=<Ctrl><Logo>Left
 76+#grab-session-close=<Ctrl><Logo>BackSpace
 77+#grab-terminal-new=<Ctrl><Logo>Return
 78+#grab-rotate-cw=<Logo>plus
 79+#grab-rotate-ccw=<Logo>minus
 80+## Reboot system (disabled by default)
 81+## Reboot behavior follows /proc/sys/kernel/ctrl-alt-del:
 82+##   0 (default): graceful reboot (sends SIGINT to init)
 83+##   >0: immediate hard reboot after syncing disk buffers
 84+#grab-reboot=<Ctrl><Alt>Delete
 85+
 86+## Enable mouse
 87+mouse
 88+## Force software cursor
 89+#soft-cursor
 90+
 91+## Power Management
 92+## Screen timeout in seconds (0 = disabled)
 93+## The screen will be turned off (DPMS OFF) after this period of inactivity
 94+## Any keyboard or mouse input will turn the screen back on
 95+#dpms-timeout=600
 96+
 97+## Terminal options
 98+## Play an asciicast animation after opening the terminal session.
 99+## The animation stops on keyboard input.
100+#asciicast=/usr/share/kmscon/login.cast
101+
102+## Loop the asciicast animation.
103+#asciicast-loop
104+
105+## value of the $TERM variable
106+term=xterm-256color
107+
108+## Reset environment [on]
109+reset-env
110+
111+## Send delete when backspace is pressed [on]
112+#backspace-delete
113+
114+## Scrollback buffer size, in lines
115+#sb-size=10000
116+
117+## Forward BEL (0x07) to the VT (default off)
118+#bell
119+
120+## Blinking cursor and text with blink attribute (enabled by default)
121+#blink
122+
123+## Colors palette, one of [solarized, solarized-black, solarized-white,
124+## soft-black, base16-dark, base16-light, vga, legacy, custom]
125+#palette=solarized
126+
127+## If you selected palette=custom, you can customize each color with:
128+palette-black={color0.strip}
129+palette-red={color1.strip}
130+palette-green={color2.strip}
131+palette-yellow={color3.strip}
132+palette-blue={color4.strip}
133+palette-magenta={color5.strip}
134+palette-cyan={color6.strip}
135+palette-light-grey={color7.strip}
136+palette-dark-grey={color8.strip}
137+palette-light-red={color9.strip}
138+palette-light-green={color10.strip}
139+palette-light-yellow={color11.strip}
140+palette-light-blue={color12.strip}
141+palette-light-magenta={color13.strip}
142+palette-light-cyan={color14.strip}
143+palette-white={color15.strip}
144+palette-foreground={colorfg.strip}
145+palette-background={colorbg.strip}
+4, -0
1@@ -0,0 +1,4 @@
2+set -g status off
3+set -as terminal-features ",xterm-256color:RGB:Sixel"
4+set -g default-terminal "tmux-256color"
5+set -g mouse