Update
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
[main]
|
[main]
|
||||||
font=monospace:size=16
|
font=JetBrains Mono:size=16
|
||||||
|
|
||||||
[bell]
|
[bell]
|
||||||
urgent=no
|
urgent=no
|
||||||
|
|||||||
@@ -17,9 +17,21 @@ set $right l
|
|||||||
set $term foot
|
set $term foot
|
||||||
# Your preferred application launcher
|
# Your preferred application launcher
|
||||||
set $menu wmenu-run -l 10
|
set $menu wmenu-run -l 10
|
||||||
|
set $fontsize 10
|
||||||
|
|
||||||
|
# UI font
|
||||||
|
font pango:JetBrains Mono $fontsize
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
include /etc/sway/config-vars.d/*
|
include /etc/sway/config-vars.d/*
|
||||||
|
|
||||||
|
default_border pixel 2
|
||||||
|
default_floating_border pixel 1
|
||||||
|
hide_edge_borders smart
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Output configuration
|
### Output configuration
|
||||||
#
|
#
|
||||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
# 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
|
bindsym $mod+v splitv
|
||||||
|
|
||||||
# Switch the current container between different layout styles
|
# Switch the current container between different layout styles
|
||||||
bindsym $mod+s layout stacking
|
bindsym $mod+Ctrl+3 layout stacking
|
||||||
bindsym $mod+w layout tabbed
|
bindsym $mod+Ctrl+2 layout tabbed
|
||||||
bindsym $mod+e layout toggle split
|
bindsym $mod+Ctrl+1 layout toggle split
|
||||||
|
|
||||||
# Make the current focus fullscreen
|
# Make the current focus fullscreen
|
||||||
bindsym $mod+f fullscreen
|
bindsym $mod+f fullscreen
|
||||||
|
|
||||||
# Toggle the current focus between tiling and floating mode
|
# 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
|
# Swap focus between the tiling area and the floating area
|
||||||
bindsym $mod+space focus mode_toggle
|
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.
|
# Read `man j sway-bar` for more information about this section.
|
||||||
bar {
|
bar {
|
||||||
position top
|
position top
|
||||||
|
font pango:JetBrains Mono $fontsize
|
||||||
|
|
||||||
# Show volume, brightness, and date/time.
|
# Show volume, brightness, and date/time.
|
||||||
status_command ~/.config/sway/status.sh
|
status_command ~/.config/sway/status.sh
|
||||||
|
|||||||
1
.vimrc
1
.vimrc
@@ -3,6 +3,7 @@ set tabstop=4
|
|||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set softtabstop=4
|
set softtabstop=4
|
||||||
set expandtab
|
set expandtab
|
||||||
|
set number
|
||||||
|
|
||||||
" Copy yanked text to the Wayland system clipboard using wl-copy.
|
" Copy yanked text to the Wayland system clipboard using wl-copy.
|
||||||
if executable('wl-copy')
|
if executable('wl-copy')
|
||||||
|
|||||||
2
bin/hibernate
Executable file
2
bin/hibernate
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
sudo systemctl hibernate
|
||||||
49
bin/install_the_dotfiles.sh
Normal file
49
bin/install_the_dotfiles.sh
Normal 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
2
bin/reboot
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
sudo systemctl reboot
|
||||||
16
bin/sway-bindings
Executable file
16
bin/sway-bindings
Executable 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
|
||||||
Reference in New Issue
Block a user