This commit is contained in:
KK
2026-06-09 18:21:38 +02:00
parent e49497b566
commit 2e5f841bb0
7 changed files with 88 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
[main]
font=monospace:size=16
font=JetBrains Mono:size=16
[bell]
urgent=no

View File

@@ -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

1
.vimrc
View File

@@ -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')

2
bin/hibernate Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
sudo systemctl hibernate

View File

@@ -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

2
bin/reboot Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
sudo systemctl reboot

16
bin/sway-bindings Executable file
View File

@@ -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