Browse Source

Made status bar transparent

Adjusted workspace icons to compensate. Also made vimrc autoreload
itself when saved.
red-hat-laptop
Kevin Mok 6 years ago
parent
commit
406734e165
  1. 4
      README.md
  2. 62
      configs/i3/config
  3. 11
      configs/i3blocks/i3blocks.conf
  4. 5
      configs/sam-i3blocks/sam-i3blocks.conf
  5. 9
      dotfiles/vimrc
  6. 5
      dotfiles/zshrc
  7. 2
      txt/key_dirs.txt

4
README.md

@ -1,9 +1,9 @@
<!--- Intro {{{ -->
# 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

62
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

11
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 {{{ #

5
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

9
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 <F10> :set paste<CR>"+p:set nopaste<CR>
" }}} function keys "
map <S-Enter> O<ESC>
vnoremap <C-X> <Esc>`.``gvP``P
" swap text visually
vnoremap <C-P> <Esc>`.``gvP``P
" splits {{{ "
nnoremap <C-Down> <C-W><C-J>
@ -207,6 +212,8 @@ nnoremap <leader>py :set tw=0<CR>
nnoremap <leader>r q:i.,.+s///g<ESC>Fsi
" replace in line
nnoremap <leader>rl q:i.s///g<left><left><left>
" replace in visual selection
vnoremap <leader>r q:is///g<ESC>3ha
" reload vim config
nnoremap <leader>rv :source $MYVIMRC<CR>
" replace in entire file

5
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

2
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

Loading…
Cancel
Save