Compare commits

..

10 Commits

Author SHA1 Message Date
e79bf4a82c Add tmux aliases 2023-10-22 11:35:02 +02:00
6c6b5b4dcc Load python env if inside tmux session automatically
Check if you are in a tmux session and if there is a .env directory. If there is activate the python environment
2023-10-22 11:34:46 +02:00
03d2a54bc9 Setup zoxide, fuck regular cd 2023-10-22 11:33:38 +02:00
f161c7c3e9 Remove unneded startup programs 2023-10-22 11:33:17 +02:00
10b0261ac4 Remove Window navigation module. 2023-10-22 11:32:56 +02:00
3dd68612c4 Don't exit tmux when closing sessions 2023-10-22 11:31:49 +02:00
01700f67d3 Skip kill pane prompt. 2023-10-22 11:31:32 +02:00
9b60b091d6 Add binding for t 2023-10-22 11:31:08 +02:00
bdc41a6a22 Better update speed of tmux. 2023-10-22 11:30:36 +02:00
c20c19ca9f Disable dmps and screensaver. 2023-10-22 10:45:51 +02:00
5 changed files with 25 additions and 6 deletions

View File

@ -5,8 +5,10 @@ sudo ryzenadj-service &
# Enable Tear Free
xrandr --output eDP --set TearFree on
# Set dpms to 0
# Set disable screensaver and set dmps to 0
xset dpms 0 0 0
xset s off
xset s noblank
# Load xresources
xrdb $HOME/.config/X11/xresources

View File

@ -10,6 +10,9 @@ set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# SPEED
set -g escape-time 0
set-option -g status-interval 1
# set prefix key to ctrl + space
unbind C-b
@ -34,6 +37,7 @@ bind-key t run-shell 'tmux-popup zsh'
bind-key g run-shell 'tmux-popup lazygit'
bind-key f run-shell 'tmux-popup nnn'
bind-key h run-shell 'tmux-popup htop'
bind-key g run-shell 'tmux-popup t'
# Vim keybindings for pane movement
setw -g mode-keys vi
@ -42,6 +46,12 @@ bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Skip kill pane %Number% (y/n) prompt
bind-key x kill-pane
# Don't exit from tmux when closing a session
set -g detach-on-destroy off
# Catppuccin settings
set -g @catppuccin_flavour 'frappe'
set -g @catppuccin_window_left_separator "█"

View File

@ -26,7 +26,6 @@ import XMonad.Layout.NoBorders
import XMonad.Layout.SimplestFloat
import XMonad.Layout.LayoutModifier
import XMonad.Layout.ResizableTile
import XMonad.Layout.WindowNavigation
import XMonad.Layout.PerWorkspace
import XMonad.Layout.WindowArranger (windowArrange, WindowArrangerMsg(..))
@ -85,11 +84,9 @@ myStartupHook = do
spawnOnce "gentoo-pipewire-launcher"
spawnOnce "transmission-daemon"
spawnOnce "syncthing"
spawnOnce "lxsession"
spawnOnce "picom"
spawnOnce "clipmenud"
spawnOnce "dunst"
-- spawnOnce "discord --start-minimized"
spawnOnce "keepassxc"
spawnOnce "/usr/libexec/polkit-gnome-authentication-agent-1"
spawn ("sleep 2 && trayer-srg --edge top --align right --widthtype request --padding 6 --iconspacing 7 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x303446 --height 27 -l")
@ -149,13 +146,11 @@ mySpacing' i = spacingRaw True (Border i i i i) True (Border i i i i) True
-- My layouts
tall = renamed [Replace "tall"]
$ withBorder myBorderWidth
$ windowNavigation
$ mySpacing 7
$ ResizableTall 1 (3/100) (1/2) []
monocle = renamed [Replace "monocle"]
$ withBorder myBorderWidth
$ mySpacing 7
$ windowNavigation
$ Full
floats = renamed [Replace "floats"]
$ withBorder myBorderWidth

View File

@ -21,6 +21,9 @@ plug "zdharma-continuum/fast-syntax-highlighting"
plug "zsh-users/zsh-history-substring-search"
plug "MichaelAquilina/zsh-you-should-use"
# Startup zoxide
eval "$(zoxide init zsh)"
# Substring search settings
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=blue,fg=black,bold"
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=red,fg=black,bold'
@ -55,3 +58,8 @@ nnn_cd ()
}
trap nnn_cd EXIT
# Check if in tmux and if a venv directory exists activate the python environment
if [ ! -z "$TMUX" ] && [ -d "./env" ]; then
. ./env/bin/activate
fi

View File

@ -47,3 +47,7 @@ alias sync_done='curl -u ":$(cat .config/ntfy/access_token)" -H "t: System sync"
# cryptography
alias rot13="tr 'A-Za-z' 'N-ZA-Mn-za-m'"
# for tmux
alias td="tmux new -s $(basename $(pwd))"
alias tu="tmux -f ~/.config/tmux/update.conf attach"