diff --git a/.bashrc b/.bashrc index 24a5c8a..2bc5b50 100644 --- a/.bashrc +++ b/.bashrc @@ -131,9 +131,9 @@ alias ms='ls' export PATH="$PATH:$HOME/.cargo/bin" exadef="--icons --modified " -exal="--long --all --group --modified --header --level 2 --time-style=long-iso --binary" +exal="--long --all --group --modified --header --time-style=long-iso --binary" alias ls='exa ${exadef}' # add colors for filetype recognition -alias l='exa ${exadef} -1 --no-icons' +alias l1='exa ${exadef} -1 --no-icons' alias la='exa ${exadef} --all' # show hidden files alias lx='exa ${exadef} ${exal} --sort extension' # sort by extension alias lk='exa ${exadef} ${exal} --sort size --reverse' # sort by size @@ -144,7 +144,9 @@ alias lt='exa ${exadef} ${exal} --sort created' # sort by date alias lr='exa ${exadef} ${exal} --recurse' # recursive ls alias le='exa ${exadef} ${exal} | kak' # pipe through editor alias ll='exa ${exadef} ${exal}' -alias tree='exa ${xadef} ${exal} --tree' # nice alternative to 'ls' +alias LL='exa ${exadef} ${exal} --links --extended --git' +alias l='exa ${exadef} --long --no-user --all --modified --time-style=iso --binary' +alias tree='exa ${xadef} ${exal} --tree --level 2' # nice alternative to 'tree' # changes the default head/tail behaviour to output x lines, # where x is the number of lines currently displayed on your terminal @@ -417,6 +419,7 @@ if [[ $- == *i* ]]; then # Super nice prompt source ~/.liquidprompt --no-activate lp_activate #--no-config + source ~/code/liquidprompt-powerline/powerline.theme JOLLY_SPACE_LINE="‎" # empty character JOLLY_ITEMS=("" "┃" "━") source ~/code/lp-jolly/presets/variant-chevron.conf @@ -493,4 +496,4 @@ export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion -alias cat="/usr/bin/batcat" +alias bat="/usr/bin/batcat --style=header-filesize,header-filename,grid --color=always" diff --git a/.config/i3/config b/.config/i3/config index 3267468..ebc9596 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -134,10 +134,10 @@ bindsym $mod+space scratchpad show # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. set $ws1 "1: comm" -set $ws2 "2: music" -set $ws3 "3: work" -set $ws4 "4: dev" -set $ws5 "5: misc" +set $ws2 "2: work" +set $ws3 "3: dev" +set $ws4 "4: misc" +set $ws5 "5: music" set $ws6 "6" set $ws7 "7" set $ws8 "8" @@ -219,6 +219,10 @@ bindsym $mod+r mode "resize" bindsym $mod+v resize set 300 px bindsym $mod+Shift+v resize set 400 px +# Binding to balance all windows' sizes +bindsym $mod+m exec "i3_balance_workspace" + + # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { @@ -260,10 +264,6 @@ workspace_auto_back_and_forth no #bindsym $mod+Shift+w move workspace to output HDMI-1-2 # assign [class="firefox"] $ws1 -assign [class="Pavucontrol"] $ws2 -assign [class="Blueman-manager"] $ws2 -assign [class="Terminator" window_role="btop"] $ws1 -assign [class="Terminator" window_role="boinc"] $ws1 # Xscreensaver as background # exec --no-startup-id "/usr/libexec/xscreensaver/intermomentary -root -draw-delay 30000 -num-discs 150 -max-riders 50 -max-radius 5000" @@ -274,19 +274,32 @@ assign [class="Terminator" window_role="boinc"] $ws1 # Wallpaper as background exec --no-startup-id feh --bg-scale /home/nojhan/Images/Wood.png +exec firefox + # Sound controller +assign [class="Pavucontrol"] $ws4 exec pavucontrol # Bluetooth controller +assign [class="Blueman-manager"] $ws4 exec blueman-manager # btop system monitor +assign [class="Terminator" window_role="btop"] $ws4 exec "terminator --profile 'small font' --role btop --command btop" # colored boinc client # exec "terminator --profile 'small font' --role boinc --command 'boinc | colout -t boinc'" +# assign [class="Terminator" window_role="boinc"] $ws4 + +assign [class="Thunderbird"] $ws1 +exec thunderbird +for_window [class="Thunderbird"] resize set 500px + +assign [class="Signal"] $ws1 +exec signal-desktop +for_window [class="Signal"] resize set 500px for_window [window_role="scratchpad"] move window to scratchpad exec terminator --role scratchpad# -bindsym $mod+m exec "i3_balance_workspace" diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 352a685..b1232c1 100644 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -489,3 +489,7 @@ nnoremap :delete " vifm --server-name "$VIFM_SERVER_NAME" --remote +"cd '$PWD'" " " let $VIFM_SERVER_NAME = v:servername + +" type "b" followed by the bookmark to jump. +nnoremap b :bmgo + diff --git a/.tmux.conf b/.tmux.conf index 8076308..2b12a86 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -69,13 +69,13 @@ set -g pane-active-border-style bg='#6f9dfe',fg='#6f9dfe' set -g status-style bg='#2f5dbe',fg='#d3d0cc' # tmux-mode-indicator (mainly displays TMUX or WAIT), then prefix marker. -set -g status-left '#{tmux_mode_indicator}#[bg=#3f6dce]#[fg=#d3d0cc]#{?client_prefix,#[bg=#cf8200]#[fg=#f8f8f8][A],[ ]}#{?client_prefix,#[fg=#cf8200],#[fg=#3f6dce]}#[bg=#2f5dbe]' +set -g status-left '#{tmux_mode_indicator}#[bg=#3f6dce]#[fg=#d3d0cc]#{?client_prefix,#[bg=#cf8200]#[fg=#f8f8f8][A],[ ]}#{?client_prefix,#[fg=#cf8200],#[fg=#3f6dce]}#[bg=#2f5dbe] ' # Active window tab. -set-window-option -g window-status-current-format "#{?client_prefix,#[fg=#cf8200],#[fg=#6f9dfe]}#[bg=#2f5dbe] #{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#ffcc00]#I#[fg=#2f5dbe,none](∘#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#f8f8f8]#{window_panes}#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#2f5dbe])⁚ #[fg=#ffffff,bold]#W#[fg=#f8f8f8,none]#{?client_prefix,#[fg=#cf8200],#[fg=#6f9dfe]}#[bg=#2f5dbe] #[bg=#2f5dbe]" +set-window-option -g window-status-current-format "#{?client_prefix,#[fg=#cf8200],#[fg=#6f9dfe]}#[bg=#2f5dbe]#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#ffcc00]#I#[fg=#2f5dbe,none](∘#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#f8f8f8]#{window_panes}#{?client_prefix,#[bg=#cf8200],#[bg=#6f9dfe]}#[fg=#2f5dbe])⁚ #[fg=#ffffff,bold]#W#[fg=#f8f8f8,none]#{?client_prefix,#[fg=#cf8200],#[fg=#6f9dfe]}#[bg=#2f5dbe] #[bg=#2f5dbe]" # Other windows tabs. -set-window-option -g window-status-format "#[fg=#4f7dde]#[bg=#2f5dbe] #[bg=#4f7dde,noreverse,bold]#[fg=#cf8200]#I#[fg=#2f5dbe,none](#[fg=#d3d0cc]#{?window_bell_flag,#[bg=#ffcc00]#[fg=#db4939]‼,#{?window_silence_flag,#[bg=#ffcc00]#[fg=#db4939]!,#[fg=#2f5dbe]∘}}#[bg=#4f7dde]#[fg=#d3d0cc]#{window_panes}#[fg=#2f5dbe])#[fg=#d3d0cc]#{last_window}#{?window_last_flag,⁝,⁚} #[fg=#d3d0cc,bold]#W#[fg=#d3d0cc,none]#[fg=#4f7dde]#[bg=#2f5dbe] #[bg=#2f5dbe]" +set-window-option -g window-status-format "#[fg=#4f7dde]#[bg=#2f5dbe]#[bg=#4f7dde,noreverse,bold]#[fg=#cf8200]#I#[fg=#2f5dbe,none](#[fg=#d3d0cc]#{?window_bell_flag,#[bg=#ffcc00]#[fg=#db4939]‼,#{?window_silence_flag,#[bg=#ffcc00]#[fg=#db4939]!,#[fg=#2f5dbe]∘}}#[bg=#4f7dde]#[fg=#d3d0cc]#{window_panes}#[fg=#2f5dbe])#[fg=#d3d0cc]#{last_window}#{?window_last_flag,⁝,⁚} #[fg=#d3d0cc,bold]#W#[fg=#d3d0cc,none]#[fg=#4f7dde]#[bg=#2f5dbe] #[bg=#2f5dbe]" # Tabs separator. # set-window-option -g window-status-separator "#[fg=#2f5dbe]║" #⟭⟬"