Skip to content

Latest commit

 

History

History
230 lines (191 loc) · 10.5 KB

File metadata and controls

230 lines (191 loc) · 10.5 KB

TODO

Implement screencast as a transient singleton systemd service. The service's main process can run ffmpeg (as a background process?), and on receiving SIGUSR1, finish up.

declarative home directory setup

systemd.tmpfiles.rules = [
    "d ${config.users.users.ivan.home}/Documents 0755 :ivan :users -"
    "d ${config.users.users.ivan.home}/Pictures 0755 :ivan :users -"
    "d ${config.users.users.ivan.home}/Music 0755 :ivan :users -"
  ];
# FIXME: only if value.isNormalUser && value.createHome
systemd.tmpfiles.settings =
  lib.mapAttrs' (name: value:
    let
      home = value.home;
      fields = { mode = "0755"; user = ":${name}"; group = ":users"; age = "-"; };
    in lib.nameValuePair "10-home-${name}-subdirs" {
      "${home}/Documents" = { d = fields; };
      "${home}/Pictures" = { d = fields; };
      "${home}/Music" = { d = fields; };
    };
  ) (lib.filterAttrs (name: value: value.isNormalUser && value.createHome) config.users.users);

https://discourse.nixos.org/t/how-do-i-create-folders-declaratively/36395/4

understand this

╰(ivan@thinkpad9)• l /sys/class/sound/ctl-led/
total 0
drwxr-xr-x 4 root root    0 Sep  9 14:54 mic
drwxr-xr-x 2 root root    0 Sep  9 14:54 power
drwxr-xr-x 4 root root    0 Sep  9 14:54 speaker
lrwxrwxrwx 1 root root    0 Sep  9 14:54 subsystem -> ../../../../class/sound
-rw-r--r-- 1 root root 4.0K Sep  9 14:54 uevent

╭~ 0 Tue Sep 09 14:54:56
╰(ivan@thinkpad9)• l /sys/class/sound/ctl-led/mic/
total 0
-r--r--r-- 1 root root 4.0K Sep  9 14:55 brightness
drwxr-xr-x 3 root root    0 Sep  9 14:55 card0
-rw-r--r-- 1 root root 4.0K Sep  9 14:55 mode
drwxr-xr-x 2 root root    0 Sep  9 14:55 power
-rw-r--r-- 1 root root 4.0K Sep  9 14:55 uevent

╭~ 0 Tue Sep 09 14:55:04
╰(ivan@thinkpad9)• cat /sys/class/sound/ctl-led/mic/mode
follow-mute

caps2esc timeout

  • how does interception-k2k implement timeout?

fix chrome emacs keybindings https://github.com/fultonj/awesome/blob/master/autokey/README.md

xmobar

https://codeberg.org/xmobar/xmobar/issues/566

kmonad

https://github.com/kmonad/kmonad/blob/master/doc/installation.md#nixos

Probably remove, in favor of interception-utils.

sleep battery drain

https://forums.lenovo.com/t5/Other-Linux-Discussions/X1C-gen9-fan-starts-in-sleep-mode-drains-battery-in-a-few-hours/m-p/5132432 https://bbs.archlinux.org/viewtopic.php?id=274292

Fontconfig error

journalctl -e --user -t xmonad
Sep 03 16:48:23 thinkpad9 xmonad[2482]: xmonad: X11 error: BadAtom (invalid Atom parameter), request code=18, error code=5
Sep 03 16:48:23 thinkpad9 xmonad[2482]: Bad _NET_WM_DESKTOP with data=[-1,0,0,0,0]
Sep 03 16:48:23 thinkpad9 xmonad[2482]: Bad _NET_WM_DESKTOP with data=[-1,0,0,0,0]
Sep 03 16:48:23 thinkpad9 xmonad[2482]: Bad _NET_WM_DESKTOP with data=[-1,0,0,0,0]
Sep 03 16:52:36 thinkpad9 xmonad[3855]: [3855:3855:0903/165236.227540:ERROR:chrome_browser_cloud_management_controller.cc(163)] Cloud management controller initialization aborted as CBCM is not enabled.
Sep 03 16:52:36 thinkpad9 xmonad[3855]: [3855:3855:0903/165236.434453:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files
Sep 03 16:52:43 thinkpad9 xmonad[4795]: Fontconfig error: Cannot load default config file: No such file: (null)
Sep 03 16:52:55 thinkpad9 xmonad[4972]: Fontconfig error: Cannot load default config file: No such file: (null)
Sep 03 16:52:57 thinkpad9 xmonad[5008]: Fontconfig error: Cannot load default config file: No such file: (null)
Sep 03 16:53:01 thinkpad9 xmonad[5108]: Warning: disabling flag --expose_wasm due to conflicting flags
Sep 03 16:53:04 thinkpad9 xmonad[4998]: Fontconfig error: Cannot load default config file: No such file: (null)
Sep 03 16:53:10 thinkpad9 xmonad[5179]: libpng warning: iCCP: known incorrect sRGB profile
Sep 03 16:53:10 thinkpad9 xmonad[5179]: libpng warning: iCCP: known incorrect sRGB profile
Sep 03 16:53:13 thinkpad9 xmonad[5179]: libpng warning: iCCP: known incorrect sRGB profile
Sep 03 20:47:49 thinkpad9 xmonad[29435]: Fontconfig error: Cannot load default config file: No such file: (null)
Sep 03 21:36:35 thinkpad9 xmonad[41897]: Fontconfig error: Cannot load default config file: No such file: (null)
Sep 03 21:36:42 thinkpad9 xmonad[41932]: Fontconfig error: Cannot load default config file: No such file: (null)
Sep 03 21:40:19 thinkpad9 xmonad[42135]: Fontconfig error: Cannot load default config file: No such file: (null)
Sep 03 21:41:07 thinkpad9 xmonad[42167]: Fontconfig error: Cannot load default config file: No such file: (null)
Sep 03 22:04:02 thinkpad9 xmonad[43410]: Fontconfig error: Cannot load default config file: No such file: (null)

stop job

"a stop job is running for"

  • journalctl --boot=-1 --reverse (search for "timed out")
  • journalctl --user --reverse -u emacs

document management

declarative configuration

nix

vim

function! JumpToPreviousBufferInJumplist()
    let initial_bufnr = bufnr('%')
    while winrestcmd('wincmd p') && bufnr('%') == initial_bufnr
        execute "normal! \<C-O>"
    endwhile
endfunction

function! JumpToNextBufferInJumplist()
    let initial_bufnr = bufnr('%')
    while winrestcmd('wincmd p') && bufnr('%') == initial_bufnr
        execute "normal! \<C-I>"
    endwhile
endfunction

nnoremap <silent> <C-S-O> :call JumpToPreviousBufferInJumplist()<CR>
nnoremap <silent> <C-S-I> :call JumpToNextBufferInJumplist()<CR>

emacs

warning:

GLib-GIO-CRITICAL **: 09:51:04.250: g_settings_schema_source_lookup: assertion 'source != NULL' failed
  • treesitter

xmonad

  • look into xmonad/xmonad-contrib#878 (comment)
  • look into xmonad-contrib/XMonad/Actions/CopyWindow.hs
  • look into X.A.TopicSpace and X.H.WorkspaceHistory
  • workspace metadata :: [ScopeName]
    • a tmux-like session is a Scope, and the workspaces available to that Scope are determined by the workspaces' metadata
    • workspace prompt to associate a specified workspace with the current scope and position it within the current scope's workspace sort order according to a given function
      • this could be composed with additional behavior to swap the specified workspace in at the position of the currently active workspace, and dissassociate the current workspace from the current scope
  • dynamic workspaces (to behave like tmux sessions)?
  • prompt for directory and session-name to launch alacritty with diss running nvim
  • key to grab the 2nd line from a pass entry

window managers

zellij

remote install/desktop/management

misc