dots

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 9f5a4c4a77ed9a019599521631e1c55fcc205f6a
parent 22b6674a29dcc2c7f2950429369982cf0f7cdb48
Author: Gabriel G. de Brito <me@gboncoffee.dev.br>
Date:   Tue, 15 Jul 2025 00:40:35 -0300

sway

Diffstat:
Memacs/init.el | 29+++++++++++++++++++++++++----
Mfonts/local.conf | 5+----
Dniri/config.kdl | 226-------------------------------------------------------------------------------
Asway/audio.sh | 23+++++++++++++++++++++++
Asway/config | 150+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Asway/i3blocks.conf | 21+++++++++++++++++++++
Dwaybar/config.jsonc | 102-------------------------------------------------------------------------------
Dwaybar/style.css | 79-------------------------------------------------------------------------------
8 files changed, 220 insertions(+), 415 deletions(-)

diff --git a/emacs/init.el b/emacs/init.el @@ -16,8 +16,8 @@ (display-line-numbers-mode t) (display-fill-column-indicator-mode t))) -(set-face-attribute 'default nil :font "Bitstream Vera Sans Mono-13") -(set-frame-font "Bitstream Vera Sans Mono-13" nil t) +(set-face-attribute 'default nil :font "Hack-13") +(set-frame-font "Hack-13" nil t) (setq scroll-step 1) (setq scroll-conservatively 100000) @@ -201,6 +201,19 @@ (add-to-list 'auto-mode-alist '("\\.asm\\'" . nasm-mode)) (add-to-list 'auto-mode-alist '("\\.s\\'" . nasm-mode))) +(use-package zig-mode + :ensure t) + +(use-package lean4-mode + :commands lean4-mode + :vc (:url "https://github.com/leanprover-community/lean4-mode.git" + :rev :last-release)) + +(use-package odin-mode + :commands odin-mode + :vc (:url "https://github.com/mattt-b/odin-mode.git" + :rev :last-release)) + (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. @@ -209,6 +222,14 @@ '(inhibit-startup-screen t) '(package-selected-packages '(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))) + ido-vertical-mode lean4-mode lice multiple-cursors nasm-mode odin-mode + rainbow-delimiters rainbow-mode web-mode zig-mode)) + '(package-vc-selected-packages + '((lean4-mode :url "https://github.com/leanprover-community/lean4-mode.git")))) (put 'upcase-region 'disabled nil) +(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. + ) diff --git a/fonts/local.conf b/fonts/local.conf @@ -12,7 +12,6 @@ <alias> <family>serif</family> <prefer> - <family>Bitstream Vera Serif</family> <family>Noto Serif</family> <family>Noto Color Emoji</family> <family>Noto Emoji</family> @@ -21,7 +20,6 @@ <alias> <family>sans-serif</family> <prefer> - <family>Bitstream Vera Sans</family> <family>Noto Sans</family> <family>Noto Color Emoji</family> <family>Noto Emoji</family> @@ -30,7 +28,6 @@ <alias> <family>sans</family> <prefer> - <family>Bitstream Vera Sans</family> <family>Noto Sans</family> <family>Noto Color Emoji</family> <family>Noto Emoji</family> @@ -39,7 +36,7 @@ <alias> <family>monospace</family> <prefer> - <family>Bitstream Vera Sans Mono</family> + <family>Hack</family> <family>Noto Mono</family> <family>Noto Color Emoji</family> <family>Noto Emoji</family> diff --git a/niri/config.kdl b/niri/config.kdl @@ -1,226 +0,0 @@ -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 2000 -} - -layout { - gaps 0 - 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" - } - - background-color "transparent" - - tab-indicator { - gap 0 - width 8 - length total-proportion=1.0 - place-within-column - } -} - -overview { - backdrop-color "#000000" -} - -animations { - workspace-switch { - spring damping-ratio=1.0 stiffness=1000 epsilon=0.0001 - } - horizontal-view-movement { - spring damping-ratio=1.0 stiffness=1000 epsilon=0.0001 - } - window-movement { - spring damping-ratio=1.0 stiffness=1000 epsilon=0.0001 - } - window-resize { - spring damping-ratio=1.0 stiffness=1000 epsilon=0.0001 - } - overview-open-close { - spring damping-ratio=1.0 stiffness=1000 epsilon=0.0001 - } - - window-open { - duration-ms 100 - } - window-close { - duration-ms 100 - } -} - -prefer-no-csd -screenshot-path "~/Screenshot from %Y-%m-%d %H-%M-%S.png" - -window-rule { - 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 -} - -window-rule { - match app-id="thunderbird" - open-on-workspace "chat" - open-maximized true -} - -hotkey-overlay { - skip-at-startup -} - -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" "ghostty" -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 "ghostty"; } - 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-wallpaper.sh"; } - - 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/sway/audio.sh b/sway/audio.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +if [ "$button" = "1" ]; then + wpctl set-mute @DEFAULT_SINK@ toggle > /dev/null + wpctl get-volume @DEFAULT_SINK@ +elif [ "$button" = "4" ]; then + wpctl set-volume @DEFAULT_SINK@ 1%+ > /dev/null + wpctl get-volume @DEFAULT_SINK@ +elif [ "$button" = "5" ]; then + wpctl set-volume @DEFAULT_SINK@ 1%- > /dev/null + wpctl get-volume @DEFAULT_SINK@ +elif [ "$1" = "query" ]; then + wpctl get-volume @DEFAULT_SINK@ +elif [ "$1" = "increase" ]; then + wpctl set-volume @DEFAULT_SINK@ 1%+ + pkill -SIGRTMIN+1 i3blocks +elif [ "$1" = "decrease" ]; then + wpctl set-volume @DEFAULT_SINK@ 1%- + pkill -SIGRTMIN+1 i3blocks +elif [ "$1" = "mute" ]; then + wpctl set-mute @DEFAULT_SINK@ toggle + pkill -SIGRTMIN+1 i3blocks +fi diff --git a/sway/config b/sway/config @@ -0,0 +1,150 @@ +set $mod Mod4 + +set $left left +set $down down +set $up up +set $right right + +set $term ghostty +set $menu fuzzel + +input type:keyboard { + xkb_layout us + xkb_options "compose:ralt" + xkb_numlock enabled +} + +input type:pointer { + accel_profile flat + pointer_accel 1 + middle_emulation enabled +} + +seat * { + hide_cursor when-typing enable +} + +swaybg_command - + +workspace_layout tabbed +xwayland enable + +focus_follows_mouse no + +hide_edge_borders smart + +floating_modifier $mod normal + +for_window [shell="xwayland"] title_format "%title (on %shell)" +assign [app_id="io.github.quodlibet.QuodLibet"] workspace 4:music +assign [app_id="discord"] workspace 3:chat +assign [app_id="thunderbird"] workspace 3:chat + +exec "mako" +exec "swww-daemon" +exec "quodlibet" + +exec gsettings set org.gnome.desktop.interface gtk-theme Kali-Dark +exec gsettings set org.gnome.desktop.interface color-scheme prefer-dark +exec gsettings set org.gnome.desktop.interface icon-theme Tela-circle-dark +exec gsettings set org.cinnamon.desktop.default-applications.terminal exec ghostty +exec gsettings set org.cinnamon.desktop.default-applications.terminal exec-arg -e + +bindsym $mod+Return exec $term +bindsym $mod+f exec nemo +bindsym $mod+b exec firefox +bindsym $mod+w kill + +bindsym $mod+d exec $menu + +bindsym $mod+Shift+c reload + +# Exit sway (logs you out of your Wayland session) +bindsym Ctrl+Alt+Delete exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' + +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right + +bindsym $mod+Shift+$left move left +bindsym $mod+Shift+$down move down +bindsym $mod+Shift+$up move up +bindsym $mod+Shift+$right move right + +bindsym $mod+1 workspace 1:work +bindsym $mod+2 workspace 2:web +bindsym $mod+3 workspace 3:chat +bindsym $mod+4 workspace 4:music +bindsym $mod+5 workspace 5 +bindsym $mod+6 workspace 6 +bindsym $mod+7 workspace 7 +bindsym $mod+8 workspace 8 +bindsym $mod+9 workspace 9 + +bindsym $mod+Shift+1 move container to workspace 1:work +bindsym $mod+Shift+2 move container to workspace 2:web +bindsym $mod+Shift+3 move container to workspace 3:chat +bindsym $mod+Shift+4 move container to workspace 4:music +bindsym $mod+Shift+5 move container to workspace 5 +bindsym $mod+Shift+6 move container to workspace 6 +bindsym $mod+Shift+7 move container to workspace 7 +bindsym $mod+Shift+8 move container to workspace 8 +bindsym $mod+Shift+9 move container to workspace 9 + +bindsym $mod+Tab layout toggle all + +bindsym $mod+Shift+space floating toggle + +bindsym $mod+space focus mode_toggle + +bindsym $mod+a focus parent +bindsym $mod+s focus child + +bindsym $mod+p sticky toggle + +bindsym $mod+Shift+0 move scratchpad +bindsym $mod+0 scratchpad show + +mode "resize" { + bindsym $left resize shrink width 10px + bindsym $down resize grow height 10px + bindsym $up resize shrink height 10px + bindsym $right resize grow width 10px + + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" + +bindsym --locked XF86AudioMute exec ~/.config/sway/audio.sh mute +bindsym --locked XF86AudioLowerVolume exec ~/.config/sway/audio.sh decrease +bindsym --locked XF86AudioRaiseVolume exec ~/.config/sway/audio.sh increase + +bindsym Print exec grim ~/desktop/$(date -Iseconds).png; exec notify-send "Screenshot taken" + +font pango:sans 12 + +client.focused #7aa6da #4271ae #eaeaea +client.focused_inactive #424242 #2a2a2a #eaeaea +client.unfocused #2a2a2a #000000 #eaeaea +client.urgent #d54e53 #d54e53 #eaeaea + +bar { + position bottom + pango_markup enabled + + status_command i3blocks -c ~/.config/sway/i3blocks.conf + + colors { + statusline #eaeaea + background #000000 + focused_workspace #7aa6da #4271ae #eaeaea + active_workspace #424242 #2a2a2a #eaeaea + inactive_workspace #2a2a2a #000000 #eaeaea + urgent_workspace #d54e53 #d54e53 #eaeaea + binding_mode #e6c547 #e6c547 #000000 + } +} + +include /etc/sway/config.d/* diff --git a/sway/i3blocks.conf b/sway/i3blocks.conf @@ -0,0 +1,21 @@ +separator=true +separator_block_width=15 + +[volume] +command=./audio.sh query +signal=1 +interval=10 + +[time] +command=date '+%Y-%m-%d %H:%M' +interval=10 + +[menu] +full_text="menu" +command=fuzzel; echo "$full_text" +color=#e6c547 + +[close] +full_text="kill window" +command=swaymsg kill >/dev/null; echo "$full_text" +color=#d54e53 diff --git a/waybar/config.jsonc b/waybar/config.jsonc @@ -1,102 +0,0 @@ -{ - "reload_style_on_change": true, - "spacing": 6, - "height": 27, - "layer": "top", - - "modules-left": [ - "custom/menu", - "niri/workspaces", - "niri/window" - ], - "modules-center": [ - "mpris" - ], - "modules-right": [ - "privacy", - "wireplumber", - "clock", - "custom/window-size", - "custom/close-window" - ], - - "custom/menu": { - "format": "Menu", - "tooltip": false, - "on-click": "fuzzel" - }, - - "niri/workspaces": { - "format": "{icon}", - "format-icons": { - "work": "🖥", - "browser": "🌎", - "chat": "💬", - "music": "🎵", - - "default": "⋯", - } - }, - - "niri/window": { - "separate-outputs": true, - "icon": true, - }, - - "mpris": { - "ignored-players": [ "firefox", "mpv" ], - "format": "{status_icon} {dynamic}", - "dynamic-order": [ "artist", "title" ], - "status-icons": { - "playing": "🎶", - "paused": "𝄩", - "stopped": "𝄩" - } - }, - - "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, - }, - - "custom/window-size": { - "format": "📏", - "on-click": "niri msg action switch-preset-window-width" - }, - - "custom/close-window": { - "format": "❌", - "on-click": "niri msg action close-window" - } -} diff --git a/waybar/style.css b/waybar/style.css @@ -1,79 +0,0 @@ -* { - border: none; - border-radius: 0; - font-family: Bitstream Vera Sans; - font-size: 12pt; - min-height: 0; - margin: 0; - padding: 0; -} - -window#waybar { - background: #000000; - color: #eaeaea; -} - -.module { - border: none; - margin-left: 2px; - padding-left: 2px; - padding-right: 2px; -} - -tooltip { - background: #000000; -} -tooltip label { - color: #eaeaea; -} - -#custom-menu { - padding-right: 0; -} - -#workspaces { - padding: 0; -} - -#workspaces button { - padding-right: 2px; - padding-left: 2px; -} - -#workspaces button.active { - color: #000000; - background: #7aa6da; -} - -#window { - background: #7aa6da; - color: #000000; -} - -#mpris { - background: #c397d8; - color: #000000; -} - -#privacy-item { - border: none; - background: #000000; - margin-left: 5px; -} - -#wireplumber { - min-width: 65px; - background: #e6c547; - color: #000000; -} - -#custom-window-size { - min-width: 30px; - background: #7aa6da; -} - -#custom-close-window { - min-width: 30px; - background: #7aa6da; - padding-right: 2px; -}