diff --git a/README.md b/README.md index e6b117f..9681a8d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # zero -My personal repository for storing and sharing my **manifests** and **declarative configuration files** for my **GNU Guix** operating systems and home environments. +My personal repository for storing and sharing **manifests** and **declarative configuration files** of my **GNU Guix** operating systems and home environments. ![radio's home environment](home-environments/radio/screenshots/awesome-1.png) ![radio's home environment](home-environments/radio/screenshots/awesome-2.png) diff --git a/home-environments/radio.scm b/home-environments/radio.scm index 79c73d4..6d1b907 100644 --- a/home-environments/radio.scm +++ b/home-environments/radio.scm @@ -149,7 +149,7 @@ #|llvm |# clang-15 #|math |# libqalculate #|ssh |# openssh - #|text-editors |# kakoune #;kak-lsp #;parinfer-rust + #|text-editors |# kakoune kak-lsp parinfer-rust #|vesion-control|# git)) (define packages:documentation @@ -175,7 +175,7 @@ font-juliamono font-liberation font-meslo-lg-dz font-misc-misc font-un font-wqy-zenhei)) -#;(define packages:games +(define packages:games (list #|games|# minetest supertuxkart xonotic)) (define packages:image @@ -207,7 +207,7 @@ (list #|chromium |# ungoogled-chromium/wayland #|browser-extensions|# darkreader/chromium)) -#;(define packages:writing +(define packages:writing (list #|tex|# texlive-collection-basic texlive-collection-fontsextra texlive-collection-fontsrecommended texlive-collection-latex texlive-collection-latexextra texlive-collection-latexrecommended @@ -224,14 +224,14 @@ #|D|# packages:databases packages:desktop packages:development packages:documentation packages:downloads #|F|# packages:file-managing packages:fonts - #|G|# #;packages:games + #|G|# packages:games #|I|# packages:image #|M|# packages:messaging #|P|# packages:password #|R|# packages:reading #|S|# packages:scheme packages:sound #|V|# packages:video - #|W|# packages:web #;packages:writing)) + #|W|# packages:web packages:writing)) (services (list #|XDG services|# diff --git a/home-environments/radio/files/.config/lf/lfrc b/home-environments/radio/files/.config/lf/lfrc index b555baa..cab8bb0 100644 --- a/home-environments/radio/files/.config/lf/lfrc +++ b/home-environments/radio/files/.config/lf/lfrc @@ -29,7 +29,10 @@ set info time # Custom Functions cmd open ${{ - setsid -f xdg-open "$f" >/dev/null 2>&1 & + case $(file -bL --mime-type "$1") in + text/*) setsid -f "$TERMINAL -e xdg-open $f" >/dev/null 2>&1 &;; + *) setsid -f xdg-open "$f" >/dev/null 2>&1 &;; + esac }} cmd __cd :cd "$1" diff --git a/home-environments/radio/files/.config/river/init b/home-environments/radio/files/.config/river/init index 6780f85..e4a23fa 100755 --- a/home-environments/radio/files/.config/river/init +++ b/home-environments/radio/files/.config/river/init @@ -124,10 +124,11 @@ riverctl map normal Super b spawn $BROWSER riverctl map normal Super Semicolon spawn fuzzel # webcam (TODO: fix) -riverctl map normal XF86WebCam spawn cam +riverctl map normal None XF86WebCam spawn "cam" +riverctl map normal None XF86Sleep spawn "doas zzz" # rss reader (TODO: fix) -riverctl map normal XF86Launch1 spawn newsraft +riverctl map normal None XF86Launch1 spawn "$TERMINAL -e newsraft" # keepassxc riverctl map normal Super c spawn keepassxc @@ -188,13 +189,13 @@ riverctl map normal Super P \ ## Audio related keybindings __________________________________________________ for mode in normal locked do - riverctl map -repeat $mode None XF86AudioRaiseVolume \ + riverctl map -repeat $mode None XF86AudioRaiseVolume \ spawn 'wpctl set-volume -l 2.0 @DEFAULT_AUDIO_SINK@ 1%+' riverctl map -repeat $mode None XF86AudioLowerVolume \ spawn 'wpctl set-volume -l 2.0 @DEFAULT_AUDIO_SINK@ 1%-' - riverctl map -repeat $mode None XF86AudioMute \ + riverctl map -repeat $mode None XF86AudioMute \ spawn 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle' - riverctl map -repeat $mode None XF86AudioMicMute \ + riverctl map -repeat $mode None XF86AudioMicMute \ spawn 'wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle' # control mpv playlist listening on socket /tmp/mpv-socket @@ -250,7 +251,7 @@ riverctl map passthrough Super F11 enter-mode normal # Autostart applications ______________________________________________________ dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river -~/.guix-home/profile/libexec/xdg-desktop-portal-wlr & +~/.guix-home/profile/libexec/xdg-desktop-portal-wlr -r & ~/.guix-home/profile/libexec/xdg-desktop-portal -r & # status bar