commit 34b01655008552d39be25089ccfa28635590eea0
parent c884d766a97c6a221a133f660940972f30c2002c
Author: Gabriel G. de Brito <gabrielgbrito@icloud.com>
Date: Tue, 24 Jun 2025 20:49:49 -0300
niri rice yay!
Diffstat:
10 files changed, 547 insertions(+), 42 deletions(-)
diff --git a/README.md b/README.md
@@ -3,3 +3,79 @@ dealing with this started getting hard again
on Micro I install the following plugins:
- editorconfig
- quoter
+
+Reproducing the setup (the full thing, the riced desktop you can use with much
+less stuff. This is just an annotation so I can remember how to reproduce my
+computer):
+- alacritty
+- edk2-shell
+- engrampa
+- fail2ban
+- ffmpegthumbnailer
+- firefox
+- fuzzel
+- geogebra-6-bin
+- gnome-themes-extra
+- gnu-free-fonts
+- greetd
+- greetd-tuigreet
+- gsmartcontrol
+- gst-libav
+- gst-plugins-good
+- htop
+- imv
+- kali-themes
+- libnotify
+- libreoffice-fresh
+- logisim-evolution-bin
+- mako
+- man-pages
+- mandoc
+- mate-calc
+- moreutils
+- nemo
+- niri
+- noto-fonts*
+- obs-studio
+- otf-font-awesome
+- otf-geist-mono-nerd
+- otf-ipafont
+- otf-latin-modern
+- otf-latin-modern-math
+- papirus-icon-theme
+- pavucontrol
+- pipewire-{alsa,audio,pulse,v4l2}
+- qbittorrent
+- qemu-full
+- qt5-wayland
+- qt6-wayland
+- quodlibet
+- sl
+- smartmontools
+- sudo
+- swaylock
+- swww
+- tela-circle-icon-theme-all
+- tmux
+- ttf-bitstream-vera
+- ttf-dejavu
+- ttf-hack
+- ttf-ibm-plex
+- ttf-liberation
+- ttf-linux-libertine
+- tumbler
+- waybar
+- wget
+- wireplumber
+- wl-clipboard
+- xdg-desktop-portal-gnome
+- xdg-desktop-portal-wlr
+- xdg-utils
+- xorg-xhost
+- xwayland-satellite
+- yay
+- yt-dlp
+
+Other annotations:
+- run `xhost +SI:localuser:root` to use sudo on wayland.
+- use gpg with the `/usr/bin/pinentry-tty` pinentry.
diff --git a/alacritty/alacritty.toml b/alacritty/alacritty.toml
@@ -1,14 +1,17 @@
[window]
-dimensions = { columns = 110, lines = 35 }
-
resize_increments = true
-opacity = 0.95
+opacity = 0.90
+
+decorations = "None"
+
+dynamic_padding = true
+padding = { x = 3, y = 3 }
[font]
-normal.family = "Cascadia Code"
-size = 12
+normal.family = "Bitstream Vera Sans Mono"
+size = 13
[selection]
save_to_clipboard = true
@@ -29,35 +32,31 @@ bindings = [
{ key = "F", mods = "Control|Shift", action = "SearchBackward" },
]
-# Colors (Tomorrow Night)
+# Colors (Tomorrow Night Bright)
# Default colors
[colors.primary]
-background = '#1d1f21'
-foreground = '#c5c8c6'
-
-[colors.cursor]
-text = '#1d1f21'
-cursor = '#ffffff'
+background = '#000000'
+foreground = '#eaeaea'
# Normal colors
[colors.normal]
-black = '#1d1f21'
-red = '#cc6666'
-green = '#b5bd68'
+black = '#000000'
+red = '#d54e53'
+green = '#b9ca4a'
yellow = '#e6c547'
-blue = '#81a2be'
-magenta = '#b294bb'
+blue = '#7aa6da'
+magenta = '#c397d8'
cyan = '#70c0ba'
-white = '#373b41'
+white = '#424242'
# Bright colors
[colors.bright]
black = '#666666'
red = '#ff3334'
green = '#9ec400'
-yellow = '#f0c674'
-blue = '#81a2be'
+yellow = '#e7c547'
+blue = '#7aa6da'
magenta = '#b77ee0'
cyan = '#54ced6'
-white = '#282a2e'
+white = '#2a2a2a'
diff --git a/emacs/init.el b/emacs/init.el
@@ -16,19 +16,16 @@
(display-line-numbers-mode t)
(display-fill-column-indicator-mode t)))
-(set-face-attribute 'default nil :font "Cascadia Code-12")
-(set-frame-font "Cascadia Code-12" nil t)
+(set-face-attribute 'default nil :font "Bitstream Vera Sans Mono-13")
+(set-frame-font "Bitstream Vera Sans Mono-13" nil t)
(setq scroll-step 1)
(setq scroll-conservatively 100000)
-(setq-default show-trailing-whitespace t)
-(use-package doom-themes
+(use-package color-theme-sanityinc-tomorrow
:ensure t
:init
- (setq doom-themes-enable-bold t
- doom-themes-enable-italic t)
- (load-theme 'doom-tomorrow-night t))
+ (load-theme 'sanityinc-tomorrow-bright t))
(use-package rainbow-mode
:ensure t
@@ -209,15 +206,9 @@
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
- '(custom-safe-themes
- '("04aa1c3ccaee1cc2b93b246c6fbcd597f7e6832a97aaeac7e5891e6863236f9f" "b11edd2e0f97a0a7d5e66a9b82091b44431401ac394478beb44389cf54e6db28" "6fc9e40b4375d9d8d0d9521505849ab4d04220ed470db0b78b700230da0a86c1" "76ddb2e196c6ba8f380c23d169cf2c8f561fd2013ad54b987c516d3cabc00216" default))
'(inhibit-startup-screen t)
'(package-selected-packages
- '(doom-themes sublime-themes lice nasm-mode fasm-mode amx diff-hl editorconfig elixir-mode erlang forge go-mode haskell-mode ido-completing-read+ magit markdown-mode web-mode ido-vertical-mode eldoc-box multiple-cursors rainbow-delimiters rainbow-mode)))
-(custom-set-faces
- ;; custom-set-faces was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- '(default ((t (:background nil)))))
+ '(amx color-theme-sanityinc-tomorrow eldoc-box go-mode ido-completing-read+
+ ido-vertical-mode lice markdown-mode multiple-cursors nasm-mode
+ rainbow-delimiters rainbow-mode web-mode)))
(put 'upcase-region 'disabled nil)
diff --git a/fonts/local.conf b/fonts/local.conf
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
+<fontconfig>
+ <match target="font">
+ <edit name="antialias" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>true</bool>
+ </edit>
+ </match>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Noto Serif</family>
+ <family>Noto Color Emoji</family>
+ <family>Noto Emoji</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Noto Sans</family>
+ <family>Noto Color Emoji</family>
+ <family>Noto Emoji</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>sans</family>
+ <prefer>
+ <family>Noto Sans</family>
+ <family>Noto Color Emoji</family>
+ <family>Noto Emoji</family>
+ </prefer>
+ </alias>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>Bitstream Vera Sans Mono</family>
+ <family>Noto Mono</family>
+ <family>Noto Color Emoji</family>
+ <family>Noto Emoji</family>
+ </prefer>
+ </alias>
+</fontconfig>
diff --git a/fuzzel/fuzzel.ini b/fuzzel/fuzzel.ini
@@ -0,0 +1,23 @@
+font=Noto Sans:size=16
+icon-theme=Tela-circle-dark
+terminal=alacritty -e
+
+keyboard-focus=on-demand
+
+lines=20
+width=40
+
+[colors]
+background=000000dd
+text=eaeaeaff
+prompt=eaeaeaff
+input=eaeaeaff
+match=e6c547ff
+selection=eaeaeaff
+selection-text=000000dd
+selection-match=d54e53ff
+border=7aa6daff
+
+[border]
+width=2
+radius=6
diff --git a/mako/config b/mako/config
@@ -0,0 +1,10 @@
+font=Noto Sans 12
+background-color=#000000ff
+text-color=#eaeaeaff
+width=400
+height=200
+border-size=2
+border-color=#7aa6daff
+border-radius=6
+progress-color=#7aa6daff
+default-timeout=10000
diff --git a/micro/settings.json b/micro/settings.json
@@ -23,6 +23,18 @@
"tabsize": 2,
"tabstospaces": true
},
+ "*.json": {
+ "tabsize": 4,
+ "tabstospaces": true
+ },
+ "*.jsonc": {
+ "tabsize": 4,
+ "tabstospaces": true
+ },
+ "*.kdl": {
+ "tabsize": 4,
+ "tabstospaces": true
+ },
"*.lua": {
"tabsize": 2,
"tabstospaces": true
@@ -31,14 +43,14 @@
"tabsize": 4,
"tabstospaces": true
},
- "SConstruct": {
- "tabsize": 4,
- "tabstospaces": true
- },
"*.yaml": {
"tabsize": 2,
"tabstospaces": true
},
+ "SConstruct": {
+ "tabsize": 4,
+ "tabstospaces": true
+ },
"autosu": true,
"colorcolumn": 80,
"colorscheme": "simple",
@@ -48,7 +60,6 @@
"hlsearch": true,
"hltaberrors": true,
"hltrailingws": true,
- "matchbraceleft": true,
"parsecursor": true,
"savecursor": true,
"softwrap": true,
diff --git a/niri/config.kdl b/niri/config.kdl
@@ -0,0 +1,206 @@
+input {
+ keyboard {
+ xkb {
+ layout "us"
+ options "compose:ralt"
+ }
+ numlock
+ repeat-delay 400
+ }
+ mouse {
+ accel-speed 1.0
+ middle-emulation
+ }
+}
+
+cursor {
+ hide-when-typing
+ hide-after-inactive-ms 1000
+}
+
+layout {
+ gaps 5
+
+ default-column-width { proportion 0.5; }
+
+ focus-ring {
+ off
+ }
+
+ preset-column-widths {
+ proportion 0.5
+ proportion 1.0
+ }
+
+ border {
+ width 2
+ active-color "#7aa6da"
+ inactive-color "#666666"
+
+ urgent-color "#d54e53"
+ }
+
+ shadow {
+ on
+ softness 30
+
+ spread 5
+
+ offset x=0 y=5
+
+ color "#0007"
+ }
+
+ background-color "transparent"
+}
+
+overview {
+ backdrop-color "#000000"
+}
+
+prefer-no-csd
+screenshot-path "~/Screenshot from %Y-%m-%d %H-%M-%S.png"
+
+window-rule {
+ geometry-corner-radius 6
+ clip-to-geometry true
+
+ draw-border-with-background false
+}
+
+workspace "work"
+workspace "browser"
+workspace "chat"
+workspace "music"
+
+window-rule {
+ match app-id="firefox"
+}
+
+window-rule {
+ match app-id="io.github.quodlibet.QuodLibet"
+ open-maximized true
+ open-on-workspace "music"
+ open-focused false
+}
+
+window-rule {
+ match app-id="discord"
+ open-on-workspace "chat"
+ open-maximized true
+}
+
+hotkey-overlay {
+ skip-at-startup
+}
+
+layer-rule {
+ match namespace="swww-daemon"
+ place-within-backdrop true
+}
+
+environment {
+ DISPLAY ":0"
+ QT_QPA_PLATFORM "wayland"
+ QT_QPA_PLATFORMTHEME "gtk3"
+}
+
+spawn-at-startup "xwayland-satellite"
+spawn-at-startup "waybar"
+spawn-at-startup "mako"
+spawn-at-startup "swww-daemon"
+spawn-at-startup "quodlibet"
+
+spawn-at-startup "gsettings" "set" "org.gnome.desktop.interface" "gtk-theme" "Kali-Dark"
+spawn-at-startup "gsettings" "set" "org.gnome.desktop.interface" "color-scheme" "prefer-dark"
+spawn-at-startup "gsettings" "set" "org.gnome.desktop.interface" "icon-theme" "Tela-circle-dark"
+spawn-at-startup "gsettings" "set" "org.cinnamon.desktop.default-applications.terminal" "exec" "alacritty"
+spawn-at-startup "gsettings" "set" "org.cinnamon.desktop.default-applications.terminal" "exec-arg" "-e"
+
+binds {
+ Mod+Slash { show-hotkey-overlay; }
+
+ Mod+Return hotkey-overlay-title="Open a Terminal" { spawn "alacritty"; }
+ Mod+F hotkey-overlay-title="Open File Manager" { spawn "nemo"; }
+ Mod+M hotkey-overlay-title="Open Music Control" { focus-workspace "music"; }
+ Mod+A hotkey-overlay-title="Run an Application" { spawn "fuzzel"; }
+ Mod+B hotkey-overlay-title="Open Browser" { spawn "firefox"; }
+
+ Mod+L hotkey-overlay-title="Lock screen" { spawn "swaylock"; }
+
+ XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; }
+ XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; }
+ XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
+ XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
+
+ Mod+O repeat=false { toggle-overview; }
+
+ Mod+W { close-window; }
+
+ Mod+Left { focus-column-left; }
+ Mod+Down { focus-window-down; }
+ Mod+Up { focus-window-up; }
+ Mod+Right { focus-column-right; }
+
+ Mod+Shift+Left { consume-or-expel-window-left; }
+ Mod+Shift+Down { move-window-down; }
+ Mod+Shift+Up { move-window-up; }
+ Mod+Shift+Right { consume-or-expel-window-right; }
+
+ Mod+Ctrl+Up { focus-workspace-up; }
+ Mod+Ctrl+Down { focus-workspace-down; }
+
+ Mod+Page_Down { focus-workspace-down; }
+ Mod+Page_Up { focus-workspace-up; }
+ Mod+Shift+Page_Down { move-window-to-workspace-down; }
+ Mod+Shift+Page_Up { move-window-to-workspace-up; }
+
+ Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
+ Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
+ Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
+ Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
+
+ Mod+Shift+WheelScrollDown { focus-column-right; }
+ Mod+Shift+WheelScrollUp { focus-column-left; }
+ Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
+ Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
+
+ Mod+1 { focus-workspace 1; }
+ Mod+2 { focus-workspace 2; }
+ Mod+3 { focus-workspace 3; }
+ Mod+4 { focus-workspace 4; }
+ Mod+5 { focus-workspace 5; }
+ Mod+6 { focus-workspace 6; }
+ Mod+7 { focus-workspace 7; }
+ Mod+8 { focus-workspace 8; }
+ Mod+9 { focus-workspace 9; }
+ Mod+Shift+1 { move-window-to-workspace 1; }
+ Mod+Shift+2 { move-window-to-workspace 2; }
+ Mod+Shift+3 { move-window-to-workspace 3; }
+ Mod+Shift+4 { move-window-to-workspace 4; }
+ Mod+Shift+5 { move-window-to-workspace 5; }
+ Mod+Shift+6 { move-window-to-workspace 6; }
+ Mod+Shift+7 { move-window-to-workspace 7; }
+ Mod+Shift+8 { move-window-to-workspace 8; }
+ Mod+Shift+9 { move-window-to-workspace 9; }
+
+ Mod+Space { switch-preset-column-width; }
+ Mod+Shift+Space { fullscreen-window; }
+
+ Mod+C { center-column; }
+
+ Mod+Ctrl+C { center-visible-columns; }
+
+ Mod+V { toggle-window-floating; }
+ Mod+Shift+V { switch-focus-between-floating-and-tiling; }
+
+ Mod+Tab { toggle-column-tabbed-display; }
+
+ Print { screenshot; }
+ Ctrl+Print { screenshot-screen; }
+ Alt+Print { screenshot-window; }
+
+ Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
+
+ Ctrl+Alt+Delete { quit; }
+}
diff --git a/waybar/config.jsonc b/waybar/config.jsonc
@@ -0,0 +1,82 @@
+{
+ "reload_style_on_change": true,
+ "spacing": 6,
+ "height": 33,
+ "layer": "top",
+
+ "modules-left": [
+ "niri/workspaces",
+ "niri/window"
+ ],
+ "modules-center": [
+ "mpris"
+ ],
+ "modules-right": [
+ "privacy",
+ "wireplumber",
+ "clock"
+ ],
+
+ "niri/workspaces": {
+ "format": "{icon}",
+ "format-icons": {
+ "work": "🖥",
+ "browser": "🌎",
+ "chat": "💬",
+ "music": "🎵",
+
+ "default": "⋯",
+ }
+ },
+
+ "niri/window": {
+ "separate-outputs": true,
+ "on-click": "fuzzel",
+ "on-click-right": "niri msg action close-window",
+ "on-click-middle": "niri msg action switch-preset-window-width"
+ },
+
+ "mpris": {
+ "player": "quodlibet",
+ "format": "🎵 {dynamic}",
+ "format-paused": "𝄩 {dynamic}",
+ "format-stopped": "𝅀 idle",
+ "dynamic-order": [ "artist", "title" ]
+ },
+
+ "privacy": {
+ "icon-spacing": 6,
+ "icon-size": 18,
+ "modules": [
+ {
+ "type": "screenshare",
+ "tooltip": true,
+ "tooltip-icon-size": 24
+ },
+ {
+ "type": "audio-in",
+ "tooltip": true,
+ "tooltip-icon-size": 24
+ }
+ ],
+ "ignore-monitor": true,
+ "ignore": [
+ {
+ "type": "audio-in",
+ "name": "cava"
+ },
+ ]
+ },
+
+ "wireplumber": {
+ "format": "🔉 {volume}%",
+ "format-muted": "🔇",
+ "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
+ },
+
+ "clock": {
+ "interval": 30,
+ "format": "{:%H:%M %F}",
+ "tooltip": false,
+ }
+}
diff --git a/waybar/style.css b/waybar/style.css
@@ -0,0 +1,62 @@
+* {
+ border: none;
+ border-radius: 6px;
+ font-family: Noto Sans;
+ font-size: 12pt;
+ min-height: 0;
+ margin: 0;
+ padding: 0;
+}
+
+window#waybar {
+ background: transparent;
+ color: #eaeaea;
+}
+
+#window {
+ margin-top: 5px;
+ margin-left: 5px;
+ margin-right: 5px;
+}
+
+.module {
+ border: solid 2px #666666;
+ background: #000000;
+ margin-top: 5px;
+ margin-left: 5px;
+ margin-right: 5px;
+ margin-bottom: 0;
+ padding-right: 2px;
+ padding-left: 2px;
+}
+
+#privacy-item {
+ border: solid 2px #666666;
+ background: #000000;
+ margin-top: 5px;
+ margin-left: 5px;
+ margin-bottom: 0;
+}
+
+tooltip {
+ background: #666666;
+}
+tooltip label {
+ color: #eaeaea;
+}
+
+#workspaces {
+ padding: 0;
+}
+
+#workspaces button {
+ background: transparent;
+ padding-right: 2px;
+ padding-left: 2px;
+}
+
+#workspaces button.active {
+ color: #eaeaea;
+ background: #7aa6da;
+ border-radius: 3;
+}