From 4c65eb0241dadd8d305f41ded98285dd3ba797c4 Mon Sep 17 00:00:00 2001 From: iiogama Date: Mon, 1 Jan 2024 18:12:57 -0800 Subject: [PATCH] Edited tmux and sxhkd configs to match keybindings more closely. Also fixed xrandr in xinit for two horizontal monitors. --- home-manager/all.nix | 14 ++++++-------- home-manager/dots/sxhkd/sxhkdrc | 4 ++-- home-manager/dots/xinitrc | 2 +- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/home-manager/all.nix b/home-manager/all.nix index f16bcd9..1e850b5 100644 --- a/home-manager/all.nix +++ b/home-manager/all.nix @@ -103,17 +103,15 @@ bind r source-file $HOME/.config/tmux/tmux.conf \; display "tmux config reloaded" # Rebind vertical/horizontal splitting - unbind v - unbind c unbind % - unbind '"' + unbind v bind v split-window -h -c "#{pane_current_path}" - bind c split-window -v -c "#{pane_current_path}" + unbind '"' + unbind b + bind b split-window -v -c "#{pane_current_path}" - # unbind a - # bind a new-window - unbind Enter - bind Enter new-window + unbind c + bind c new-window unbind Tab bind Tab last-window diff --git a/home-manager/dots/sxhkd/sxhkdrc b/home-manager/dots/sxhkd/sxhkdrc index 1431cd6..fb62eee 100644 --- a/home-manager/dots/sxhkd/sxhkdrc +++ b/home-manager/dots/sxhkd/sxhkdrc @@ -3,11 +3,11 @@ # program launchers # terminal emulator -super + Return +super + c st # terminal emulator with tmux session menu -super + shift + Return +super + shift + c st -e "iitmux" # program launcher diff --git a/home-manager/dots/xinitrc b/home-manager/dots/xinitrc index 049d1f1..8b4df12 100644 --- a/home-manager/dots/xinitrc +++ b/home-manager/dots/xinitrc @@ -3,7 +3,7 @@ test -z "$DBUS_SESSION_BUS_ADDRESS" && eval $(dbus-launch --exit-with-session -- systemctl --user import-environment DISPLAY XAUTHORITY command -v dbus-update-activation-environment >/dev/null 2>&1 && dbus-update-activation-environment DISPLAY XAUTHORITY xrdb ~/.Xresources & -xrandr --output DP-1 --primary --mode 2560x1440 --pos 0x560 --rotate normal --rate "164.99" --output DP-2 --mode 2560x1440 --pos 2560x0 --rotate left --rate "164.99" --output DP-3 --off --output HDMI-1 --off --output HDMI-1-2 --off & +xrandr --output DP-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --rate "164.99" --output DP-2 --mode 2560x1440 --pos 2560x0 --rotate normal --rate "164.99" --output DP-3 --off --output HDMI-1 --off --output HDMI-1-2 --off & picom & hsetroot -solid "#282a36" & xbanish &