diff --git a/.config/sway/config b/.config/sway/config index 8266b15..1c3db28 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -85,9 +85,14 @@ input "1267:12734:ELAN06FA:00_04F3:31BE_Touchpad" { scroll_factor 0.8 } -# Clipboard history -exec wl-paste --type text --watch cliphist store -exec wl-paste --type image --watch cliphist store +# Export important Wayland/Sway session variables to D-Bus and the systemd +# user manager. This lets apps and user services launched outside the shell +# know which Wayland display to use and that the current desktop is Sway. +# Helps with portals, screen sharing, notifications, and D-Bus activated apps. +exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway +exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP + + ### Key bindings # @@ -216,7 +221,7 @@ mode "resize" { bindsym $right resize grow width 10px # Ditto, with arrow keys - bindsym Left kesize shrink width 10px + bindsym Left resize shrink width 10px bindsym Down resize grow height 10px bindsym Up resize shrink height 10px bindsym Right resize grow width 10px diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 233dc7d..81f2943 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -4,10 +4,13 @@ set -g extended-keys on set -g extended-keys-format csi-u -# Index from 1 +# Index windows/tabs and panes from 1 instead of 0. set -g base-index 1 setw -g pane-base-index 1 +# Automatically close gaps in window/tab numbers after a window is closed. +set -g renumber-windows on + # Use 256-colour tmux terminfo and advertise truecolour support to apps. set -g default-terminal "tmux-256color" set -as terminal-features ",*:RGB" diff --git a/.local/share/fonts/JetBrainsMono-Bold.ttf b/.local/share/fonts/JetBrainsMono-Bold.ttf deleted file mode 100644 index 8c93043..0000000 Binary files a/.local/share/fonts/JetBrainsMono-Bold.ttf and /dev/null differ diff --git a/.local/share/fonts/JetBrainsMono-BoldItalic.ttf b/.local/share/fonts/JetBrainsMono-BoldItalic.ttf deleted file mode 100644 index 1ddf216..0000000 Binary files a/.local/share/fonts/JetBrainsMono-BoldItalic.ttf and /dev/null differ diff --git a/.local/share/fonts/JetBrainsMono-Italic.ttf b/.local/share/fonts/JetBrainsMono-Italic.ttf deleted file mode 100644 index ccc9d6a..0000000 Binary files a/.local/share/fonts/JetBrainsMono-Italic.ttf and /dev/null differ diff --git a/.local/share/fonts/JetBrainsMono-Regular.ttf b/.local/share/fonts/JetBrainsMono-Regular.ttf deleted file mode 100644 index dff66cc..0000000 Binary files a/.local/share/fonts/JetBrainsMono-Regular.ttf and /dev/null differ diff --git a/.profile b/.profile index 7aaaef8..d27c809 100644 --- a/.profile +++ b/.profile @@ -33,6 +33,6 @@ fi if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then export WLR_NO_HARDWARE_CURSORS=1 - exec sway --unsupported-gpu + exec tmux new-session -A -s debug sway --unsupported-gpu fi diff --git a/install_the_dotfiles.sh b/install_the_dotfiles.sh index ea5bf1f..2682b4d 100644 --- a/install_the_dotfiles.sh +++ b/install_the_dotfiles.sh @@ -14,6 +14,8 @@ # - [x] applications + bin folder # - [x] bookmarks # +# - [ ] Start sway in tmux session for debugging +# # - [ ] Kakoune setup # - [ ] Ideas for Chinese learning integration # @@ -46,7 +48,7 @@ ## Then do some nvidia configuration (set modeset=1, update ramfs, reboot) # # Standard enviroment setup -# sudo apt install -y xdg-desktop-portal-wlr xdg-desktop-portal-gtk xdg-user-dirs +# sudo apt install -y xdg-desktop-portal-wlr xdg-desktop-portal-gtk xdg-user-dirs fonts-jetbrains-mono # # DE setup # sudo apt install -y sway swayidle swaybg swaylock foot wmenu brightnessctl xwayland wl-clipboard diff --git a/setup.sh b/setup.sh index 61a3303..6b52d8c 100644 --- a/setup.sh +++ b/setup.sh @@ -7,9 +7,6 @@ ln -sf $SRC/.profile $HOME/.profile ln -sf $SRC/.config $HOME/.config ln -sf $SRC/bin $HOME/bin -mkdir -p $HOME/.local/share/fonts -cp $SRC/.local/share/fonts/* $HOME/.local/share/fonts/. - # Install kakoune wget https://github.com/mawww/kakoune/releases/download/v2026.05.21/kakoune-v2026.05.21-linux.tar.bz2 unpack kakoune-v2026.05.21-linux.tar.bz2