From 406734e165774daa5755804c6a9f00884b620cf5 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Tue, 4 Dec 2018 13:11:28 -0500 Subject: [PATCH] Made status bar transparent Adjusted workspace icons to compensate. Also made vimrc autoreload itself when saved. --- README.md | 4 +- configs/i3/config | 62 ++++++++++++++++---------- configs/i3blocks/i3blocks.conf | 11 +++-- configs/sam-i3blocks/sam-i3blocks.conf | 5 ++- dotfiles/vimrc | 9 +++- dotfiles/zshrc | 5 ++- txt/key_dirs.txt | 2 + 7 files changed, 64 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 405c94e..06c9238 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Kevin's Linux Setup -![desktop-screenshot](https://i.imgur.com/lkicLP5.png) - ![desktop-screenshot-2](https://i.imgur.com/DivyfTu.png) + +![desktop-screenshot](https://i.imgur.com/lkicLP5.png) *Screenshots from my desktop config.* This repository contains the dotfiles to increase my workflow efficiency. They diff --git a/configs/i3/config b/configs/i3/config index f690f1b..34e6ee7 100644 --- a/configs/i3/config +++ b/configs/i3/config @@ -3,7 +3,8 @@ set $browser "chromium" set $def_term "urxvt" # set $runelite "java -jar ~/Downloads/RuneLite.jar" set $swex "sudo ~/Downloads/swex.appimage" -exec redshift -O 2000 +# exec redshift -O 2000 +exec redshift -O 3000 # random bg exec compton exec wal -i "$HOME/Pictures/Backgrounds/dim" @@ -44,15 +45,19 @@ bindsym Print exec gscreenshot # }}} app shortcuts # # redshift {{{ # -bindsym $mod+Mod4+1 exec redshift -x && redshift -O 1000 -bindsym $mod+Mod4+2 exec redshift -x && redshift -O 1250 -bindsym $mod+Mod4+3 exec redshift -x && redshift -O 1500 -bindsym $mod+Mod4+4 exec redshift -x && redshift -O 2000 -bindsym $mod+Mod4+5 exec redshift -x && redshift -O 2500 -bindsym $mod+Mod4+6 exec redshift -x && redshift -O 3000 -bindsym $mod+Mod4+7 exec redshift -x && redshift -O 4000 -bindsym $mod+Mod4+8 exec redshift -x && redshift -O 5000 + +bindsym $mod+Mod4+1 exec redshift -x && redshift -O 1250 +bindsym $mod+Mod4+2 exec redshift -x && redshift -O 2000 +bindsym $mod+Mod4+3 exec redshift -x && redshift -O 3000 +bindsym $mod+Mod4+4 exec redshift -x && redshift -O 4000 +bindsym $mod+Mod4+5 exec redshift -x && redshift -O 5000 bindsym $mod+Mod4+grave exec redshift -x + +# old +# bindsym $mod+Mod4+1 exec redshift -x && redshift -O 1000 +# bindsym $mod+Mod4+3 exec redshift -x && redshift -O 1500 +# bindsym $mod+Mod4+3 exec redshift -x && redshift -O 2500 + # }}} redshift # # backlight {{{ # @@ -219,7 +224,9 @@ bindsym $mod+F9 workspace $ws9; exec $def_term set $ws10 "10 " assign [class="spotify"] $ws10 workspace $ws10 output $samsung -bindsym $mod+F10 workspace $ws10; exec $def_term +set $hp 2 +bindsym Mod4+v workspace $ws10; exec urxvt -e alsamixer -c 0 +bindsym Mod4+h workspace $ws10; exec urxvt -e alsamixer -c $hp bindsym Mod4+s workspace $ws10; exec spotify set $ws11 "11 " @@ -309,10 +316,11 @@ bindsym $mod+control+l resize shrink width 3 px or 3 ppt # remove window titlebars for_window [class="^.*"] border pixel 3 set $inner_gaps 35 -set $outer_gaps 5 +set $outer_gaps -3 gaps inner $inner_gaps gaps outer $outer_gaps +gaps bottom 0 # gaps inner 0 # gaps outer 0 @@ -336,25 +344,34 @@ bindsym control+shift+0 gaps inner all set 0;gaps outer all set 0 # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) set $sb_font Hack NF Bold -set $grey #acc0cd set $black #000000 set $white #ffffff -# border color -set $dark_grey #444c52 + +set $inactive_ws_bg #444c52 +# set $inactive_ws_bg $white + +# set $inactive_ws_text #bcccd7 +set $inactive_ws_text #838e96 +# set $inactive_ws_trans c8 +set $inactive_ws_trans 96 + +# set $active_ws_text $white +set $active_ws_text #ffffff # benq bar {{{ # -set $benq_bar_trans 64 +# set $bar_trans 64 +set $bar_trans 00 set $benq_ws_trans aa bar { i3bar_command i3bar -t font pango:$sb_font 20 colors { # 0 (transparent) -> 255 (opaque) in hex - background $black$benq_bar_trans + background $black$bar_trans # border, bg, text color - focused_workspace $dark_grey $bg$benq_bar_trans $white - inactive_workspace $dark_grey $black$benq_ws_trans $grey + focused_workspace $inactive_ws_bg $bg $active_ws_text + inactive_workspace $inactive_ws_bg $inactive_ws_bg$inactive_ws_trans $inactive_ws_text } tray_output none status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf @@ -367,17 +384,16 @@ bar { # sam bar {{{ # -set $sam_bar_trans 99 -set $sam_ws_trans b4 bar { output $samsung font pango:$sb_font 25 # output $benq i3bar_command i3bar -t colors { - background $black$sam_bar_trans - focused_workspace $dark_grey $bg$sam_bar_trans $white - inactive_workspace $dark_grey $black$sam_ws_trans $grey + background $black$bar_trans + # border, bg, text color + focused_workspace $inactive_ws_bg $bg $active_ws_text + inactive_workspace $inactive_ws_bg $inactive_ws_bg$inactive_ws_trans $inactive_ws_text } status_command i3blocks -c ~/.config/sam-i3blocks/sam-i3blocks.conf tray_output none diff --git a/configs/i3blocks/i3blocks.conf b/configs/i3blocks/i3blocks.conf index 94dac81..9215754 100644 --- a/configs/i3blocks/i3blocks.conf +++ b/configs/i3blocks/i3blocks.conf @@ -31,13 +31,16 @@ command=~/linux-config/configs/i3blocks-scripts/$BLOCK_NAME separator=true separator_block_width=25 markup=pango +# color=#d1e7ff +# color=#acc0cd +color=#cbe4ff # }}} Global properties # [time] label= command=date '+%H:%M.%a-%m-%d' interval=30 -color=#acc0cd +# color=#acc0cd # [wifi] # label= @@ -53,18 +56,18 @@ color=#acc0cd # [cpu_usage -w 50 -c 80] [cpu_usage] label= -color=#990000 +# color=#990000 interval=5 [memory] label= -color=#3da061 +# color=#3da061 interval=5 [name] label= # color=#ba50a9 -color=#1e5b99 +# color=#1e5b99 interval=6000 # unused blocks {{{ # diff --git a/configs/sam-i3blocks/sam-i3blocks.conf b/configs/sam-i3blocks/sam-i3blocks.conf index bc57928..3b7a1ec 100644 --- a/configs/sam-i3blocks/sam-i3blocks.conf +++ b/configs/sam-i3blocks/sam-i3blocks.conf @@ -6,6 +6,7 @@ command=/usr/share/i3blocks/$BLOCK_NAME separator=true separator_block_width=25 markup=pango +color=#cbe4ff # }}} Global properties # [spotify] @@ -14,10 +15,10 @@ label= # green # color=#198c19 # aqua -color=#2d7272 +# color=#2d7272 interval=10 [time] command=date '+%H:%M' interval=30 -color=#acc0cd +# color=#acc0cd diff --git a/dotfiles/vimrc b/dotfiles/vimrc index 2443bd8..7220ff9 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -38,6 +38,10 @@ autocmd BufNewFile,BufRead *.md set filetype=markdown autocmd Filetype markdown set textwidth=0 autocmd BufWritePost key_*.txt !bash ~/linux-config/scripts/shortcuts.sh +augroup myvimrc + au! + au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif +augroup END " }}} commands for file types " @@ -157,7 +161,8 @@ nnoremap :set paste"+p:set nopaste " }}} function keys " map O -vnoremap `.``gvP``P +" swap text visually +vnoremap `.``gvP``P " splits {{{ " nnoremap @@ -207,6 +212,8 @@ nnoremap py :set tw=0 nnoremap r q:i.,.+s///gFsi " replace in line nnoremap rl q:i.s///g +" replace in visual selection +vnoremap r q:is///g3ha " reload vim config nnoremap rv :source $MYVIMRC " replace in entire file diff --git a/dotfiles/zshrc b/dotfiles/zshrc index b931cb1..738f107 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -1,3 +1,6 @@ +# ZSH_THEME="miloshadzic" +ZSH_THEME="bira" + # default {{{ # # If you come from bash you might have to change your $PATH. @@ -10,8 +13,6 @@ # Set name of the theme to load. Optionally, if you set this to "random" # it'll load a random theme each time that oh-my-zsh is loaded. # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes -# ZSH_THEME="miloshadzic" -ZSH_THEME="bira" # Set list of themes to load # Setting this variable when ZSH_THEME=random diff --git a/txt/key_dirs.txt b/txt/key_dirs.txt index 0094606..87be85d 100644 --- a/txt/key_dirs.txt +++ b/txt/key_dirs.txt @@ -14,6 +14,8 @@ o / cd ~/coding jnd ~/Documents/journal +ib ~/linux-config/configs/i3blocks-scripts +ra ~/linux-config/configs/ranger snp ~/.vim/plugged/vim-snippets/UltiSnips sv ~/coding/spotify-lib-vis/src swa ~/.local/share/nvim/swap