Compare commits

...

2 Commits

Author SHA1 Message Date
Karol Krzosa
5534eee012 Remove fonts, improvements to sway and tmux, open sway in tmux session 2026-06-18 10:40:27 +02:00
Karol Krzosa
0159412aa6 bash improvements 2026-06-18 10:39:57 +02:00
10 changed files with 23 additions and 13 deletions

View File

@@ -16,8 +16,8 @@ HISTCONTROL=ignoreboth
shopt -s histappend shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000 HISTSIZE=100000
HISTFILESIZE=2000 HISTFILESIZE=200000
# check the window size after each command and, if necessary, # check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS. # update the values of LINES and COLUMNS.
@@ -25,7 +25,10 @@ shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will # If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories. # match all files and zero or more directories and subdirectories.
#shopt -s globstar shopt -s globstar
# Type directory names directly, without 'cd' and still move there
shopt -s autocd
# make less more friendly for non-text input files, see lesspipe(1) # make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" #[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

View File

@@ -85,9 +85,14 @@ input "1267:12734:ELAN06FA:00_04F3:31BE_Touchpad" {
scroll_factor 0.8 scroll_factor 0.8
} }
# Clipboard history # Export important Wayland/Sway session variables to D-Bus and the systemd
exec wl-paste --type text --watch cliphist store # user manager. This lets apps and user services launched outside the shell
exec wl-paste --type image --watch cliphist store # 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 ### Key bindings
# #
@@ -216,7 +221,7 @@ mode "resize" {
bindsym $right resize grow width 10px bindsym $right resize grow width 10px
# Ditto, with arrow keys # Ditto, with arrow keys
bindsym Left kesize shrink width 10px bindsym Left resize shrink width 10px
bindsym Down resize grow height 10px bindsym Down resize grow height 10px
bindsym Up resize shrink height 10px bindsym Up resize shrink height 10px
bindsym Right resize grow width 10px bindsym Right resize grow width 10px

View File

@@ -4,10 +4,13 @@
set -g extended-keys on set -g extended-keys on
set -g extended-keys-format csi-u 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 set -g base-index 1
setw -g pane-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. # Use 256-colour tmux terminfo and advertise truecolour support to apps.
set -g default-terminal "tmux-256color" set -g default-terminal "tmux-256color"
set -as terminal-features ",*:RGB" set -as terminal-features ",*:RGB"

View File

@@ -33,6 +33,6 @@ fi
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
export WLR_NO_HARDWARE_CURSORS=1 export WLR_NO_HARDWARE_CURSORS=1
exec sway --unsupported-gpu exec tmux new-session -A -s debug sway --unsupported-gpu
fi fi

View File

@@ -14,6 +14,8 @@
# - [x] applications + bin folder # - [x] applications + bin folder
# - [x] bookmarks # - [x] bookmarks
# #
# - [ ] Start sway in tmux session for debugging
#
# - [ ] Kakoune setup # - [ ] Kakoune setup
# - [ ] Ideas for Chinese learning integration # - [ ] Ideas for Chinese learning integration
# #
@@ -46,7 +48,7 @@
## Then do some nvidia configuration (set modeset=1, update ramfs, reboot) ## Then do some nvidia configuration (set modeset=1, update ramfs, reboot)
# # Standard enviroment setup # # 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 # # DE setup
# sudo apt install -y sway swayidle swaybg swaylock foot wmenu brightnessctl xwayland wl-clipboard # sudo apt install -y sway swayidle swaybg swaylock foot wmenu brightnessctl xwayland wl-clipboard

View File

@@ -7,9 +7,6 @@ ln -sf $SRC/.profile $HOME/.profile
ln -sf $SRC/.config $HOME/.config ln -sf $SRC/.config $HOME/.config
ln -sf $SRC/bin $HOME/bin ln -sf $SRC/bin $HOME/bin
mkdir -p $HOME/.local/share/fonts
cp $SRC/.local/share/fonts/* $HOME/.local/share/fonts/.
# Install kakoune # Install kakoune
wget https://github.com/mawww/kakoune/releases/download/v2026.05.21/kakoune-v2026.05.21-linux.tar.bz2 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 unpack kakoune-v2026.05.21-linux.tar.bz2