i3-wide env vars and stuff moved to .config from HOME

This commit is contained in:
Henrik Bakken
2021-03-23 22:37:25 +01:00
parent 8c79595610
commit a795cfacbd
11 changed files with 21 additions and 24 deletions
View File
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
export TERMINAL=st
export VISUAL=nvim
export EDITOR=nvim
export PAGER=bat
View File
-2
View File
@@ -1,5 +1,3 @@
set -x VISUAL /usr/bin/nvim
set -x EDITOR /usr/bin/nvim
set -x BROWSER /usr/bin/google-chrome-stable set -x BROWSER /usr/bin/google-chrome-stable
set -x QT_QPA_PLATFORMTHEME "qt5ct" set -x QT_QPA_PLATFORMTHEME "qt5ct"
set -x GTK2_RC_FILES "$HOME/.gtkrc-2.0" set -x GTK2_RC_FILES "$HOME/.gtkrc-2.0"
+6 -9
View File
@@ -4,9 +4,6 @@
# Set mod key (Mod1=<Alt>, Mod4=<Super>) # Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4 set $mod Mod4
# set terminal
set $term st
# set default desktop layout (default is tiling) # set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed> # workspace_layout tabbed <stacking|tabbed>
@@ -87,21 +84,21 @@ bindsym Pause exec pactl set-sink-volume @DEFAULT_SINK@ +10%
bindsym Print exec pactl set-sink-volume @DEFAULT_SINK@ -10% bindsym Print exec pactl set-sink-volume @DEFAULT_SINK@ -10%
bindsym Scroll_Lock exec pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym Scroll_Lock exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym $mod+Return exec $term bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+d exec --no-startup-id rofi -show combi -combi-modi "run#drun" -lines 10 -eh 2 -width 30 bindsym $mod+d exec --no-startup-id rofi -show combi -combi-modi "run#drun" -lines 10 -eh 2 -width 30
bindsym $mod+Shift+s --release exec --no-startup-id flameshot gui bindsym $mod+Shift+s --release exec --no-startup-id flameshot gui
bindsym $mod+Shift+x --release exec --no-startup-id xkill bindsym $mod+Shift+x --release exec --no-startup-id xkill
bindsym $mod+F1 exec $term -e 'htop' bindsym $mod+F1 exec i3-sensible-terminal -e 'htop'
bindsym $mod+Shift+F1 exec $term -e 'glances' bindsym $mod+Shift+F1 exec i3-sensible-terminal -e 'glances'
bindsym $mod+F2 exec "xdg-open 'https://www.inoreader.com'" bindsym $mod+F2 exec "xdg-open 'https://www.inoreader.com'"
bindsym $mod+Shift+F2 exec "xdg-open --new-window 'https://www.inoreader.com'" bindsym $mod+Shift+F2 exec "xdg-open --new-window 'https://www.inoreader.com'"
bindsym $mod+F3 exec $term -e 'ranger' bindsym $mod+F3 exec i3-sensible-terminal -e 'ranger'
bindsym $mod+Shift+F3 exec thunar bindsym $mod+Shift+F3 exec thunar
bindsym $mod+F4 exec pamac-manager bindsym $mod+F4 exec pamac-manager
bindsym $mod+F5 exec pavucontrol bindsym $mod+F5 exec pavucontrol
bindsym $mod+F6 exec $term -e 'mocp' bindsym $mod+F6 exec i3-sensible-terminal -e 'mocp'
bindsym $mod+Shift+F6 exec $term -e 'ncspot' bindsym $mod+Shift+F6 exec i3-sensible-terminal -e 'ncspot'
bindsym $mod+F9 exec --no-startup-id picom -b bindsym $mod+F9 exec --no-startup-id picom -b
bindsym $mod+Shift+F9 exec --no-startup-id pkill picom bindsym $mod+Shift+F9 exec --no-startup-id pkill picom
bindsym $mod+Shift+F10 --release exec "killall dunst; exec notify-send 'restart dunst'" bindsym $mod+Shift+F10 --release exec "killall dunst; exec notify-send 'restart dunst'"
+6 -9
View File
@@ -4,9 +4,6 @@
# Set mod key (Mod1=<Alt>, Mod4=<Super>) # Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4 set $mod Mod4
# set terminal
set $term st
# set default desktop layout (default is tiling) # set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed> # workspace_layout tabbed <stacking|tabbed>
@@ -87,21 +84,21 @@ bindsym Pause exec pactl set-sink-volume @DEFAULT_SINK@ +10%
bindsym Print exec pactl set-sink-volume @DEFAULT_SINK@ -10% bindsym Print exec pactl set-sink-volume @DEFAULT_SINK@ -10%
bindsym Scroll_Lock exec pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym Scroll_Lock exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym $mod+Return exec $term bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+d exec --no-startup-id rofi -show combi -combi-modi "run#drun" -lines 10 -eh 2 -width 30 bindsym $mod+d exec --no-startup-id rofi -show combi -combi-modi "run#drun" -lines 10 -eh 2 -width 30
bindsym $mod+Shift+s --release exec --no-startup-id flameshot gui bindsym $mod+Shift+s --release exec --no-startup-id flameshot gui
bindsym $mod+Shift+x --release exec --no-startup-id xkill bindsym $mod+Shift+x --release exec --no-startup-id xkill
bindsym $mod+F1 exec $term -e 'htop' bindsym $mod+F1 exec i3-sensible-terminal -e 'htop'
bindsym $mod+Shift+F1 exec $term -e 'glances' bindsym $mod+Shift+F1 exec i3-sensible-terminal -e 'glances'
bindsym $mod+F2 exec "xdg-open 'https://www.inoreader.com'" bindsym $mod+F2 exec "xdg-open 'https://www.inoreader.com'"
bindsym $mod+Shift+F2 exec "xdg-open --new-window 'https://www.inoreader.com'" bindsym $mod+Shift+F2 exec "xdg-open --new-window 'https://www.inoreader.com'"
bindsym $mod+F3 exec $term -e 'ranger' bindsym $mod+F3 exec i3-sensible-terminal -e 'ranger'
bindsym $mod+Shift+F3 exec thunar bindsym $mod+Shift+F3 exec thunar
bindsym $mod+F4 exec pamac-manager bindsym $mod+F4 exec pamac-manager
bindsym $mod+F5 exec pavucontrol bindsym $mod+F5 exec pavucontrol
bindsym $mod+F6 exec $term -e 'mocp' bindsym $mod+F6 exec i3-sensible-terminal -e 'mocp'
bindsym $mod+Shift+F6 exec $term -e 'ncspot' bindsym $mod+Shift+F6 exec i3-sensible-terminal -e 'ncspot'
bindsym $mod+F9 exec --no-startup-id picom -b bindsym $mod+F9 exec --no-startup-id picom -b
bindsym $mod+Shift+F9 exec --no-startup-id pkill picom bindsym $mod+Shift+F9 exec --no-startup-id pkill picom
bindsym $mod+Shift+F10 --release exec "killall dunst; exec notify-send 'restart dunst'" bindsym $mod+Shift+F10 --release exec "killall dunst; exec notify-send 'restart dunst'"
+1 -1
View File
@@ -15,7 +15,7 @@
# coding # coding
* essentials `yay -S neovim tmux` * essentials `yay -S neovim tmux`
* tmux plugins `git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm` * tmux plugins `git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm`
* base16 shell `git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell` * base16 shell `git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell`
* cuda `yay -S cuda nvidia-container-toolkit` * cuda `yay -S cuda nvidia-container-toolkit`
* docker `yay -S docker docker-compose dry-bin` * docker `yay -S docker docker-compose dry-bin`
+1 -1
View File
@@ -101,7 +101,7 @@ let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
" temporary files and undo " temporary files and undo
set directory=/tmp//,. set directory=/tmp//,.
set backupdir=/tmp//,. set backupdir=/tmp//,.
set undodir=~/.vim/undo/ set undodir=~/.cache/vim/undo/
set noswapfile set noswapfile
set nowritebackup set nowritebackup
set undofile " Persistent undo set undofile " Persistent undo
View File
+2 -2
View File
@@ -81,7 +81,7 @@ bind t clock-mode
bind i display-panes bind i display-panes
# Config Reloads # Config Reloads
bind r source-file ~/.tmux.conf \; refresh-client \; display-message "Config reloaded" bind r source-file ~/.config/tmux/tmux.conf \; refresh-client \; display-message "Config reloaded"
# resize controls # resize controls
bind -r h resize-pane -L 2 \; display-message "Resize left" bind -r h resize-pane -L 2 \; display-message "Resize left"
@@ -196,4 +196,4 @@ set -g @plugin 'sainnhe/tmux-fzf'
set -g @themepack 'powerline/double/yellow' set -g @themepack 'powerline/double/yellow'
# keep at bottom # keep at bottom
run -b '~/.tmux/plugins/tpm/tpm' run -b '~/.config/tmux/plugins/tpm/tpm'