Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
for r/unixporn
" It's not a real config, but the hi commands from my actual ~/.vimrc
" Base color scheme: https://github.com/gosukiwi/vim-atom-dark
colorscheme atom-dark
hi VertSplit ctermbg=NONE guibg=NONE guifg=#455354
hi CursorLine term=NONE cterm=NONE
hi SpellCap guibg=#383900
hi SpellBad guibg=#661400
hi Pmenu guibg=#2d3135 guifg=#a0d1d9
hi PmenuSel guibg=#818890
hi PmenuSbar guibg=#121315
hi PmenuThumb guibg=#b1bfcc guifg=#66d9ef
hi NeomakeWarningSign guifg=#969900 guibg=#232526
hi NeomakeErrorSign guifg=#991f00 guibg=#232526
hi GitGutterAdd guifg=#008c43 ctermfg=green guibg=#232526 ctermbg=248
hi GitGutterDelete guifg=#8c0049 ctermfg=red guibg=#232526 ctermbg=248
hi GitGutterChange guifg=#9a9918 ctermfg=yellow guibg=#232526 ctermbg=248
hi Search cterm=NONE gui=NONE guifg=NONE guibg=#475F2C
hi IncSearch cterm=NONE gui=NONE guifg=NONE guibg=#627C4E
set $mod Mod4
# Not really used because font titles displayed in polybar
font pango:monospace 6
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86MonBrightnessDown exec --no-startup-id light -s sysfs/backlight/intel_backlight -U 5
bindsym XF86MonBrightnessUp exec --no-startup-id light -s sysfs/backlight/intel_backlight -A 5
bindsym XF86KbdBrightnessDown exec --no-startup-id light -s sysfs/leds/asus::kbd_backlight -U 34
bindsym XF86KbdBrightnessUp exec --no-startup-id light -s sysfs/leds/asus::kbd_backlight -A 34
floating_modifier $mod
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Shift+q kill
bindsym $mod+d exec rofi -show drun
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+h split h
bindsym $mod+v split v
bindsym $mod+f fullscreen toggle
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
set $ws1 "1:browser"
set $ws2 "2:telegram"
set $ws3 "3:terminal"
set $ws4 "4:graphics"
set $ws5 "5:junk"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
mode "resize" {
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
exec_always --no-startup-id setxkbmap -layout us,ru -option grp:caps_toggle,grp:alt_shift_toggle,lv3:ralt_switch,misc:typo,nbsp:level3
exec_always --no-startup-id feh --bg-scale /home/goldstein/Desktop/desktop4.jpg
for_window [class="^.*"] border pixel 0
for_window [floating] border pixel 1
gaps inner 5
gaps outer 3
smart_gaps on
smart_borders on
assign [instance="telegram-desktop"] workspace $ws2
exec --no-startup-id /usr/bin/firefox
exec --no-startup-id /usr/bin/telegram-desktop
bindsym Print exec 'spectacle -r'
bindsym Ctrl+Print exec 'spectacle'
" current-func-info.vim used here
" https://github.com/tyru/current-func-info.vim
function! LightLineCurrentFunc()
if &ft !=# 'c'
return cfi#format("%s", "")
endif
return ""
endfunction
let g:lightline = {
\ 'colorscheme': 'wombat',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'readonly', 'filename', 'modified', 'gitbranch', 'current_func' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'fugitive#head',
\ 'current_func': 'LightLineCurrentFunc'
\ }
\ }
let g:lightline.separator = {
\ 'left': nr2char(57520), 'right': nr2char(57522)
\ }
let g:lightline.subseparator = {
\ 'left': nr2char(57521), 'right': nr2char(57523)
\ }
; vim: filetype=dosini
[bar/main]
monitor = eDP-1-1
bottom = true
background = #1D1F21
foreground = #F8F8F2
padding-left = 0
padding-right = 4
module-margin = 3
font-0 = NotoSans-Regular:size=14;2
font-1 = MaterialIcons:size=14
font-2 = Font Awesome 5 Free:pixelsize=16;3
font-3 = Font Awesome 5 Free Solid:pixelsize=16;3
font-4 = Font Awesome 5 Brands:pixelsize=16;3
modules-left = i3
modules-right = temperature layout battery date
[bar/top]
monitor = eDP-1-1
font-0 = NotoSans-Regular:size=14;2
font-1 = MaterialIcons:size=14
font-2 = Font Awesome 5 Free:pixelsize=16;3
font-3 = Font Awesome 5 Free Solid:pixelsize=16;3
font-4 = Font Awesome 5 Brands:pixelsize=16;3
background = ${bar/main.background}
foreground = ${bar/main.foreground}
modules-left = title
modules-right = network
padding-right = 4
height = 24
[module/title]
type = internal/xwindow
format-padding = 1
[module/i3]
type = internal/i3
fuzzy-match = true
strip-wsnumbers = true
label-focused-padding = 4
label-unfocused-padding = 4
label-urgent-padding = 4
label-focused-background = #293739
label-urgent-foreground = #DAD085
ws-icon-0 = browser;
ws-icon-1 = telegram;
ws-icon-2 = terminal;
ws-icon-3 = graphics;
ws-icon-4 = junk;
[module/date]
type = internal/date
date = %d.%m.%Y
time = %H:%M
date-alt = %d.%m.%Y
time-alt = %H:%M:%S
interval = 1
label =  %date% %time%
[module/network]
type = internal/network
interface = wlp2s0
interval = 1
label-connected = " %downspeed% / %upspeed%"
label-disconnected = "no network "
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC0
format-charging = <ramp-capacity> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
format-full = <ramp-capacity> <label-full>
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
[module/layout]
type = internal/xkeyboard
format = <label-layout>
[module/temperature]
type = internal/temperature
base-temperature = 20
warn-temperature = 70
label =  %temperature-c%
label-warn =  %temperature-c%
label-warn-foreground = #e64b0e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment