From 2e5f841bb0bfc33041485f4b3b6c19ce457716d0 Mon Sep 17 00:00:00 2001 From: KK Date: Tue, 9 Jun 2026 18:21:38 +0200 Subject: [PATCH] Update --- .config/foot/foot.ini | 2 +- .config/sway/config | 21 +++++++++++++--- .vimrc | 1 + bin/hibernate | 2 ++ bin/install_the_dotfiles.sh | 49 +++++++++++++++++++++++++++++++++++++ bin/reboot | 2 ++ bin/sway-bindings | 16 ++++++++++++ 7 files changed, 88 insertions(+), 5 deletions(-) create mode 100755 bin/hibernate create mode 100644 bin/install_the_dotfiles.sh create mode 100755 bin/reboot create mode 100755 bin/sway-bindings diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini index 77b4eb5..07fefe2 100644 --- a/.config/foot/foot.ini +++ b/.config/foot/foot.ini @@ -1,5 +1,5 @@ [main] -font=monospace:size=16 +font=JetBrains Mono:size=16 [bell] urgent=no diff --git a/.config/sway/config b/.config/sway/config index 733236b..7359fc9 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -17,9 +17,21 @@ set $right l set $term foot # Your preferred application launcher set $menu wmenu-run -l 10 +set $fontsize 10 + +# UI font +font pango:JetBrains Mono $fontsize + + include /etc/sway/config-vars.d/* +default_border pixel 2 +default_floating_border pixel 1 +hide_edge_borders smart + + + ### Output configuration # # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) @@ -168,15 +180,15 @@ exec wl-paste --type image --watch cliphist store bindsym $mod+v splitv # Switch the current container between different layout styles - bindsym $mod+s layout stacking - bindsym $mod+w layout tabbed - bindsym $mod+e layout toggle split + bindsym $mod+Ctrl+3 layout stacking + bindsym $mod+Ctrl+2 layout tabbed + bindsym $mod+Ctrl+1 layout toggle split # Make the current focus fullscreen bindsym $mod+f fullscreen # Toggle the current focus between tiling and floating mode - bindsym $mod+Shift+space floating toggle + bindsym $mod+Shift+f floating toggle # Swap focus between the tiling area and the floating area bindsym $mod+space focus mode_toggle @@ -242,6 +254,7 @@ bindsym $mod+r mode "resize" # Read `man j sway-bar` for more information about this section. bar { position top + font pango:JetBrains Mono $fontsize # Show volume, brightness, and date/time. status_command ~/.config/sway/status.sh diff --git a/.vimrc b/.vimrc index 3fbdaf1..f80f031 100644 --- a/.vimrc +++ b/.vimrc @@ -3,6 +3,7 @@ set tabstop=4 set shiftwidth=4 set softtabstop=4 set expandtab +set number " Copy yanked text to the Wayland system clipboard using wl-copy. if executable('wl-copy') diff --git a/bin/hibernate b/bin/hibernate new file mode 100755 index 0000000..5cb45ca --- /dev/null +++ b/bin/hibernate @@ -0,0 +1,2 @@ +#!/bin/bash +sudo systemctl hibernate diff --git a/bin/install_the_dotfiles.sh b/bin/install_the_dotfiles.sh new file mode 100644 index 0000000..9268cca --- /dev/null +++ b/bin/install_the_dotfiles.sh @@ -0,0 +1,49 @@ +# TODO: +# - [ ] Mount /krk-pc on startup +# - [ ] Add server SSH keys and PC ssh keys +# - [ ] Mount /proton on startup +# +# - [ ] everything relevant wmenu browser (programs and scripts without arguments, bookmarks, files) +# - [ ] plocate + wmenu > xdg-open +# - [ ] applications + bin folder +# +# - [ ] fzf starship zoxide eza bat +# +# Solutions in search for problems: +# - [ ] tmux automation +# + + +# Setup sudo for user +su root +export PATH="$PATH:/usr/sbin" +apt install sudo +usermod -aG sudo kk +exit # exit root +exit # exit user to reload config + +# Basic utilities +sudo apt install binutils tcc vim ripgrep curl git man-db plocate tmux zip unzip fzf +sudo updatedb + +# Standard enviroment setup +sudo apt install xdg-user-dirs +sudo apt install xdg-desktop-portal-wlr xdg-desktop-portal-gtk + +# DE setup +sudo apt install sway swayidle swaybg swaylock foot wmenu brightnessctl + +# Clipboard and history +sudo apt install wl-clipboard cliphist + +# Issue fix +# there were issues because user was not in render group (error messages on start of sway) +sudo usermod -aG render kk + +# Setup audio +sudo apt install pipewire pipewire-pulse wireplumber pavucontrol + +# Setup internet +# sudo apt install w3m surfraw +sudo apt install chromium + diff --git a/bin/reboot b/bin/reboot new file mode 100755 index 0000000..b606780 --- /dev/null +++ b/bin/reboot @@ -0,0 +1,2 @@ +#!/bin/bash +sudo systemctl reboot diff --git a/bin/sway-bindings b/bin/sway-bindings new file mode 100755 index 0000000..37cdecf --- /dev/null +++ b/bin/sway-bindings @@ -0,0 +1,16 @@ +#!/bin/sh + +CONFIG="$HOME/.config/sway/config" + +if [ ! -r "$CONFIG" ]; then + printf 'Cannot read %s\n' "$CONFIG" | wmenu -l 1 + exit 1 +fi + +awk ' + /^[[:space:]]*bindsym[[:space:]]+/ { + line = $0 + sub(/^[[:space:]]*bindsym[[:space:]]+/, "", line) + print line + } +' "$CONFIG" | wmenu -l 20