From 6684adffb442281a502fc0af0cd77686ee736def Mon Sep 17 00:00:00 2001 From: ItaloBorrelli Date: Thu, 17 Apr 2025 10:26:11 -0700 Subject: [PATCH] Add tmux --- .config/hypr/autostart.conf | 2 +- .config/hypr/keybindings.conf | 23 ++++++++++++-- .config/hypr/programs.conf | 2 +- .config/hypr/waybar.sh | 11 +++++++ .config/tmux/tmux.conf | 56 +++++++++++++++++++++++++++++++++++ 5 files changed, 89 insertions(+), 5 deletions(-) create mode 100755 .config/hypr/waybar.sh create mode 100644 .config/tmux/tmux.conf diff --git a/.config/hypr/autostart.conf b/.config/hypr/autostart.conf index 3c128e4..16fe48a 100644 --- a/.config/hypr/autostart.conf +++ b/.config/hypr/autostart.conf @@ -4,5 +4,5 @@ # Autostart necessary processes (like notifications daemons, status bars, etc.) -exec-once = waybar +exec-once = /home/iborrelli/.config/hypr/waybar.sh diff --git a/.config/hypr/keybindings.conf b/.config/hypr/keybindings.conf index d8fb4a7..ac83a4f 100644 --- a/.config/hypr/keybindings.conf +++ b/.config/hypr/keybindings.conf @@ -4,9 +4,11 @@ # See https://wiki.hyprland.org/Configuring/Keywords/ $mainMod = SUPER # Sets "Windows" key as main modifier +$mod2 = ALT # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, Q, exec, $terminal +bind = $mainMod, Return, exec, $terminal bind = $mainMod, C, killactive, bind = $mainMod, M, exit, bind = $mainMod, E, exec, $fileManager @@ -14,12 +16,22 @@ bind = $mainMod, V, togglefloating, bind = $mainMod, R, exec, $menu bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle +bind = $mainMod, F, fullscreen +bind = $mainMod, B, exec, $browser -# Move focus with mainMod + arrow keys +# Shift workspace to next monitor +bind = $mainMod, Semicolon, movecurrentworkspacetomonitor, +1 +bind = $mainMod Shift, Semicolon, movecurrentworkspacetomonitor, -1 + +# Move focus with mainMod + (arrow keys / hjkl) bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d +bind = $mainMod, h, movefocus, l +bind = $mainMod, l, movefocus, r +bind = $mainMod, k, movefocus, u +bind = $mainMod, j, movefocus, d # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, 1 @@ -49,9 +61,15 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10 bind = $mainMod, S, togglespecialworkspace, magic bind = $mainMod SHIFT, S, movetoworkspace, special:magic -# Scroll through existing workspaces with mainMod + scroll +# Scroll through existing workspaces with mainMod + scroll or mod2 + (arrow keys / hjkl) bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 +bind = $mod2, right, workspace, e+1 +bind = $mod2, left, workspace, e-1 +bind = $mod2, h, workspace, e-1 +bind = $mod2, j, workspace, e-1 +bind = $mod2, k, workspace, e+1 +bind = $mod2, l, workspace, e+1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow @@ -71,4 +89,3 @@ bindl = , XF86AudioPause, exec, playerctl play-pause bindl = , XF86AudioPlay, exec, playerctl play-pause bindl = , XF86AudioPrev, exec, playerctl previous -bind = $mainMod, F, fullscreen diff --git a/.config/hypr/programs.conf b/.config/hypr/programs.conf index d44d535..c5597e7 100644 --- a/.config/hypr/programs.conf +++ b/.config/hypr/programs.conf @@ -5,7 +5,7 @@ # See https://wiki.hyprland.org/Configuring/Keywords/ $terminal = kitty -$fileManager = yazi +$fileManager = zsh -c 'source ~/.zshrc && kitty yazi' $menu = wofi --show drun $browser = firefox $email = thunderbird diff --git a/.config/hypr/waybar.sh b/.config/hypr/waybar.sh new file mode 100755 index 0000000..1cb365b --- /dev/null +++ b/.config/hypr/waybar.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +CONFIG_FILES="$HOME/.config/waybar/config.jsonc $HOME/.config/waybar/style.css" + +trap "killall waybar" EXIT + +while true; do + waybar & + inotifywait -e create,modify $CONFIG_FILES + killall waybar +done diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf new file mode 100644 index 0000000..185d388 --- /dev/null +++ b/.config/tmux/tmux.conf @@ -0,0 +1,56 @@ +# split panes using | and - +bind | split-window -h +bind - split-window -v +unbind '"' +unbind % + +# reload config file (change file location to your the tmux.conf you want to use) +bind r source-file ~/.config/tmux/tmux.conf + +# Enable mouse control (clickable windows, panes, resizable panes) +set -g mouse on + +# don't rename windows automatically +set-option -g allow-rename off + +# DESIGN TWEAKS + +# don't do anything when a 'bell' rings +set -g visual-activity off +set -g visual-bell off +set -g visual-silence off +setw -g monitor-activity off +set -g bell-action none + +# clock mode +setw -g clock-mode-colour yellow + +# copy mode +setw -g mode-style 'fg=black bg=red bold' + +# panes +set -g pane-border-style 'fg=green' +set -g pane-active-border-style 'fg=yellow' + +# statusbar +set -g status-position bottom +set -g status-justify left +set -g status-style 'fg=red' + +set -g status-left '' +set -g status-left-length 10 + +set -g status-right-style 'fg=black bg=yellow' +set -g status-right '%Y-%m-%d %H:%M ' +set -g status-right-length 50 + +setw -g window-status-current-style 'fg=black bg=red' +setw -g window-status-current-format ' #I #W #F ' + +setw -g window-status-style 'fg=red bg=black' +setw -g window-status-format ' #I #[fg=white]#W #[fg=yellow]#F ' + +setw -g window-status-bell-style 'fg=yellow bg=red bold' + +# messages +set -g message-style 'fg=yellow bg=red bold'