conf: Add terminator configuration, pretty format i3 home conf

This commit is contained in:
kuben
2019-08-07 21:05:37 +02:00
parent 77288d1ee9
commit fc82366233
4 changed files with 66 additions and 36 deletions

27
.config/terminator/config Normal file
View File

@@ -0,0 +1,27 @@
[global_config]
[keybindings]
[layouts]
[[default]]
[[[child1]]]
parent = window0
type = Terminal
[[[window0]]]
parent = ""
type = Window
[plugins]
[profiles]
[[default]]
background_color = "#101e4e"
cursor_color = "#aaaaaa"
font = Hack 11
foreground_color = "#ebdbb2"
scrollbar_position = hidden
use_system_font = False
[[nord]]
background_color = "#2e3440"
cursor_color = "#D8DEE9"
font = Hack 11
foreground_color = "#d8dee9"
palette = "#3b4252:#bf616a:#a3be8c:#ebcb8b:#81a1c1:#b48ead:#88c0d0:#e5e9f0:#4c566a:#bf616a:#a3be8c:#ebcb8b:#81a1c1:#b48ead:#8fbcbb:#eceff4"
scrollbar_position = hidden
use_system_font = False

View File

@@ -16,40 +16,41 @@ set $below_barY 24
set $htopX 400 set $htopX 400
set $pavuX 800 set $pavuX 800
for_window [class="Terminator"] border pixel 0 for_window [class="Terminator"] border pixel 0
for_window [class="YADWIN"] floating enable for_window [class="YADWIN"] floating enable
for_window [class="FLOAT_PAVU"] floating enable for_window [class="FLOAT_PAVU"] floating enable
for_window [class="FLOAT_PAVU"] resize set 800 540 for_window [class="FLOAT_PAVU"] resize set 800 540
for_window [class="FLOAT_PAVU"] border pixel 3 for_window [class="FLOAT_PAVU"] border pixel 3
for_window [class="FLOAT_PAVU"] move absolute position $pavuX px $below_barY px for_window [class="FLOAT_PAVU"] move absolute position $pavuX px $below_barY px
for_window [window_role="FLOAT_TERM"] floating enable for_window [window_role="FLOAT_TERM"] floating enable
for_window [window_role="FLOAT_TERM"] move absolute position $htopX px $below_barY px for_window [window_role="FLOAT_TERM"] move absolute position $htopX px $below_barY px
for_window [window_role="FLOAT_TERM"] border pixel 3 for_window [window_role="FLOAT_TERM"] border pixel 3
for_window [title="Memory"] floating enable for_window [title="Memory"] floating enable
for_window [class="Matplotlib"] floating enable for_window [class="Matplotlib"] floating enable
for_window [class="Chromium"] border pixel 0 for_window [class="Chromium"] border pixel 0
for_window [class="^.*"] border pixel 0 for_window [class="^.*"] border pixel 0
for_window [window_type="toolbar"] border pixel 3 for_window [window_type="toolbar"] border pixel 3
for_window [window_type="splash"] border pixel 3 for_window [window_type="splash"] border pixel 3
for_window [window_type="dialog"] border pixel 3 for_window [window_type="dialog"] border pixel 3
for_window [window_type="utility"] border pixel 3 for_window [window_type="utility"] border pixel 3
for_window [window_role="pop-up"] floating enable for_window [window_role="pop-up"] floating enable
for_window [title="VMD 1.9.3 OpenGL Display"] floating enable for_window [title="VMD 1.9.3 OpenGL Display"] floating enable
for_window [title="Figure *"] floating enable for_window [title="Terminator Preferences"] floating enable
for_window [title="Figure *"] floating enable
#for_window [title="VMD"] floating enable #for_window [title="VMD"] floating enable
assign [class="Firefox"] → $w2 assign [class="firefox"] → $w2
assign [class="Chromium"] → $w2 assign [class="Chromium"] → $w2
for_window [class="Spotify"] move to workspace $w3 assign [class="libreoffice*"] → $w4
#Spotify bug, assign doesn't work assign [class="soffice*"] → $w4
assign [class="libreoffice*"] → $w4 assign [class="MATLAB*"] → $w4
assign [class="soffice*"] → $w4 assign [window_role="ranger"] → $w1
assign [class="MATLAB*"] → $w4 assign [window_role="terms"] → $w5
assign [window_role="ranger"] → $w1 assign [window_role="stats"] → $w6
assign [window_role="terms"] → $w5 assign [class="Minecraft*"] → $w10
assign [window_role="stats"] → $w6
assign [class="Minecraft*"] → $w10
assign [title="Feed The Beast Launcher*"] → $w10 assign [title="Feed The Beast Launcher*"] → $w10
#Spotify bug, assign doesn't work
for_window [class="Spotify"] move to workspace $w3
# Gaps settings # Gaps settings
#### ####
@@ -68,8 +69,6 @@ workspace 6 gaps inner 60
bindsym XF86AudioRaiseVolume exec ~/.i3/scripts/level.sh -v up bindsym XF86AudioRaiseVolume exec ~/.i3/scripts/level.sh -v up
bindsym XF86AudioLowerVolume exec ~/.i3/scripts/level.sh -v down bindsym XF86AudioLowerVolume exec ~/.i3/scripts/level.sh -v down
bindsym XF86AudioMute exec ~/.i3/scripts/level.sh -v toggle bindsym XF86AudioMute exec ~/.i3/scripts/level.sh -v toggle
#bindsym XF86Launch1 exec /usr/bin/pactl play-sample that_was_easy
#bindsym XF86MonBrightnessDown exec /usr/bin/kbdlight down 20
bindsym XF86MonBrightnessUp exec ~/.i3/scripts/level.sh -b up bindsym XF86MonBrightnessUp exec ~/.i3/scripts/level.sh -b up
bindsym XF86MonBrightnessDown exec ~/.i3/scripts/level.sh -b down bindsym XF86MonBrightnessDown exec ~/.i3/scripts/level.sh -b down
bindsym $mod+F8 exec playerctl play-pause bindsym $mod+F8 exec playerctl play-pause
@@ -102,10 +101,10 @@ bindsym $mod+u exec feh --bg-scale /home/kuba/Obrazy/Wallpapers/AxEcN\ -\ Imgur.
exec --no-startup-id $TERMINAL --role "ranger" -x ranger exec --no-startup-id $TERMINAL --role "ranger" -x ranger
#exec --no-startup-id i3-msg 'workspace 5 terms" #exec --no-startup-id i3-msg 'workspace 5 terms"
exec --no-startup-id $TERMINAL -p terms --role "terms" exec --no-startup-id $TERMINAL --role "terms"
exec --no-startup-id $TERMINAL -p terms --role "terms" exec --no-startup-id $TERMINAL --role "terms"
#workspace 6 stats; #workspace 6 stats;
exec --no-startup-id i3-msg 'append_layout /home/kuba/.i3/workspace_6.json; rename workspace to "6 stats"' exec --no-startup-id i3-msg 'append_layout /home/kuba/.i3/workspace_6.json; rename workspace to "6 stats"'
#Set appropriate background image before starting conkys #Set appropriate background image before starting conkys
exec --no-startup-id feh --bg-scale /home/kuba/Obrazy/Wallpapers/6_stats exec --no-startup-id feh --bg-scale /home/kuba/Obrazy/Wallpapers/6_stats

4
.vimrc
View File

@@ -34,6 +34,10 @@ highlight Search ctermbg=5
filetype plugin indent on " required filetype plugin indent on " required
syntax on syntax on
"
" Set the filetype based on the file's extension, but only if
" 'filetype' has not already been set
au BufRead,BufNewFile *.config setfiletype conf
set tabstop=4 " show existing tab with 4 spaces width set tabstop=4 " show existing tab with 4 spaces width
set shiftwidth=4 " when indenting with '>', use 4 spaces width set shiftwidth=4 " when indenting with '>', use 4 spaces width

View File

@@ -41,7 +41,7 @@ if [ "$WM" = "i3" ]; then
if [ "`hostname`" = "kubaArch" ] && [ -f ~/.i3/home.config ]; then if [ "`hostname`" = "kubaArch" ] && [ -f ~/.i3/home.config ]; then
cat ~/.i3/home.config >> $i3config cat ~/.i3/home.config >> $i3config
fi fi
exec i3 -c $i3config # >> "~/${WM}.log" 2>&1 exec i3 -c $i3config >> ~/${WM}.log 2>&1
else else
exec $WM >> "~/${WM}.log" 2>&1 exec $WM >> "~/${WM}.log" 2>&1
fi fi