From c6bd25182a61846010591341c353935f87701807 Mon Sep 17 00:00:00 2001 From: KK Date: Thu, 18 Jun 2026 11:20:01 +0200 Subject: [PATCH] Screenshots, polish layout, filelog --- .config/git/config | 3 +++ .config/kak/kakrc | 2 ++ .config/pavucontrol.ini | 8 ++++++++ .config/sway/config | 7 ++++++- install_the_dotfiles.sh | 2 +- 5 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .config/pavucontrol.ini diff --git a/.config/git/config b/.config/git/config index 6cfae2b..a6366a9 100644 --- a/.config/git/config +++ b/.config/git/config @@ -20,10 +20,13 @@ [tag] sort = version:refname [alias] + s = status --short --branch st = status co = checkout br = branch ci = commit lg = log --graph --pretty=format:'%C(auto)%h%Creset %Cgreen%cr%Creset %C(bold blue)%an%Creset %s%C(auto)%d%Creset' --all branches = for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:relative) %(refname:short)' + filelog = log --follow --graph --decorate --date=relative --pretty=format:'%C(auto)%h%Creset %Cgreen%cr%Creset %C(bold blue)%an%Creset %s' + diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 26e3063..8696044 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -12,3 +12,5 @@ map global insert '' hook global RegisterModified '"' %{ nop %sh{ printf %s "$kak_main_reg_dquote" | wl-copy > /dev/null 2>&1 & }} + +add-highlighter global/ number-lines diff --git a/.config/pavucontrol.ini b/.config/pavucontrol.ini new file mode 100644 index 0000000..d67bbba --- /dev/null +++ b/.config/pavucontrol.ini @@ -0,0 +1,8 @@ +[window] +width=500 +height=400 +sinkInputType=1 +sourceOutputType=1 +sinkType=0 +sourceType=1 +showVolumeMeters=1 diff --git a/.config/sway/config b/.config/sway/config index 1c3db28..a644654 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -69,6 +69,7 @@ exec swayidle -w \ # Read `man 5 sway-input` for more information about this section. input * { + xkb_layout pl repeat_rate 80 repeat_delay 300 } @@ -98,6 +99,8 @@ exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # # Basics: # + + # Start a terminal bindsym $mod+Return exec $term @@ -243,7 +246,9 @@ bindsym $mod+r mode "resize" bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-; pkill -USR1 -f "$HOME/.config/sway/status.sh" bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+; pkill -USR1 -f "$HOME/.config/sway/status.sh" # Special key to take a screenshot with grim - bindsym Print exec grim + bindsym Print exec sh -c 'mkdir -p ~/screenshots; f=~/screenshots/$(date +%F-%H%M%S).png; grim "$f"; wl-copy < "$f"' + bindsym Shift+Print exec sh -c 'mkdir -p ~/screenshots; f=~/screenshots/$(date +%F-%H%M%S).png; grim -g "$(slurp)" "$f"; wl-copy < "$f"' + # Pick an entry from clipboard history and copy it back to the clipboard bindsym $mod+c exec sh -c 'cliphist list | wmenu -l 10 | cliphist decode | wl-copy' diff --git a/install_the_dotfiles.sh b/install_the_dotfiles.sh index 2682b4d..6796313 100644 --- a/install_the_dotfiles.sh +++ b/install_the_dotfiles.sh @@ -51,7 +51,7 @@ # 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 +# sudo apt install -y sway swayidle swaybg swaylock foot wmenu brightnessctl xwayland wl-clipboard grim # # Issue fix # # there were issues because user was not in render group (error messages on start of sway)