From 8c63a2ace7535b562feedc037fe2f5ba8175ee89 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Wed, 12 Mar 2025 20:28:44 +0100 Subject: forgor --- _linux/.tmux.conf | 6 ------ _linux/README.md | 2 +- _linux/i3/config | 4 ++-- _linux/tmux/tmux.conf | 6 ++++++ setup.sh | 24 ++++++++++++++++++++++++ 5 files changed, 33 insertions(+), 9 deletions(-) delete mode 100644 _linux/.tmux.conf create mode 100644 _linux/tmux/tmux.conf create mode 100755 setup.sh diff --git a/_linux/.tmux.conf b/_linux/.tmux.conf deleted file mode 100644 index a7d8084..0000000 --- a/_linux/.tmux.conf +++ /dev/null @@ -1,6 +0,0 @@ -set -sg escape-time 5 -bind '"' split-window -c "#{pane_current_path}" -bind % split-window -h -c "#{pane_current_path}" -bind c new-window -c "#{pane_current_path}" -bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard" -setw -g mouse on diff --git a/_linux/README.md b/_linux/README.md index 57910f6..b337d4d 100644 --- a/_linux/README.md +++ b/_linux/README.md @@ -2,6 +2,6 @@ * `sudo apt install sxhkd` xdd # links -* `~/.tmux.conf` -> `./.tmux.conf` +* `$XDG_CONFIG_HOME/tmux` -> `./tmux` * `$XDG_CONFIG_HOME/i3` -> `./i3` * `$XDG_CONFIG_HOME/i3status` -> `./i3status` diff --git a/_linux/i3/config b/_linux/i3/config index b64c090..4dbf18f 100644 --- a/_linux/i3/config +++ b/_linux/i3/config @@ -13,7 +13,7 @@ set $mod Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. -font pango:monospace 9 +font pango:monospace 10 # Start XDG autostart .desktop files using dex. See also # https://wiki.archlinux.org/index.php/XDG_Autostart @@ -58,7 +58,7 @@ floating_modifier $mod tiling_drag modifier titlebar # start a terminal -bindsym $mod+Return exec alacritty +bindsym $mod+Return exec st -f "Noto Sans Mono:style=Regular:size=12" -e tmux bindsym $mod+w exec firefox # kill focused window diff --git a/_linux/tmux/tmux.conf b/_linux/tmux/tmux.conf new file mode 100644 index 0000000..a7d8084 --- /dev/null +++ b/_linux/tmux/tmux.conf @@ -0,0 +1,6 @@ +set -sg escape-time 5 +bind '"' split-window -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" +bind c new-window -c "#{pane_current_path}" +bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard" +setw -g mouse on diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..46b282e --- /dev/null +++ b/setup.sh @@ -0,0 +1,24 @@ +#!/bin/bash +set -e + +CFG="${XDG_CONFIG_HOME:-$HOME/.config}" +echo $CFG + +link_helper () { + echo "$CFG/$1" + ln -s "$(realpath ./$1)" "$CFG" || true +} + +linux_link_helper () { + echo "$CFG/$1" + ln -s "$(realpath ./_linux/$1)" "$CFG" || true +} + +link_helper "espanso" +link_helper "nvim" +link_helper "kanata" +link_helper "mpv" + +linux_link_helper "tmux" +linux_link_helper "i3" +linux_link_helper "i3status" -- cgit v1.3.1