...
 
Commits (6)
# vim: ft=i3config
# look
font pango:DejaVu Sans Mono 8
# class border backgr. text indicator child_border
client.focused #4c7899 #285577 #ffffff #2e9ef4 #285577
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
client.unfocused #333333 #222222 #888888 #292d2e #222222
client.urgent #2f343a #900000 #ffffff #900000 #900000
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
client.background #101010
# bar
bar {
status_command i3status
position bottom
strip_workspace_numbers yes
colors {
background #000000
statusline #ffffff
separator #666666
# class border backgr. text
focused_workspace #4c7899 #285577 #ffffff
active_workspace #333333 #5f676a #ffffff
inactive_workspace #333333 #222222 #888888
urgent_workspace #2f343a #900000 #ffffff
binding_mode #2f343a #900000 #ffffff
}
}
# behavior
workspace_auto_back_and_forth yes
focus_on_window_activation urgent
workspace_layout tabbed
# key variables
set $mod Mod4
set $alt Mod1
set $ctrl Control
set $up Up
set $down Down
set $left Left
set $right Right
set $key1 ampersand
set $key2 eacute
set $key3 quotedbl
set $key4 apostrophe
set $key5 parenleft
set $key6 minus
set $key7 egrave
set $key8 underscore
set $key9 ccedilla
set $key0 agrave
set $Skey1 Shift+1
set $Skey2 Shift+eacute
set $Skey3 Shift+3
set $Skey4 Shift+4
set $Skey5 Shift+5
set $Skey6 Shift+6
set $Skey7 Shift+egrave
set $Skey8 Shift+8
set $Skey9 Shift+ccedilla
set $Skey0 Shift+agrave
# general key bindings
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
# windows
floating_modifier $mod
bindsym $mod+Shift+q kill
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Tab focus right
bindsym $mod+Shift+Tab focus left
bindsym $mod+a focus parent
bindsym $mod+space focus mode_toggle
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+Shift+space floating toggle
bindsym $mod+Shift+s sticky toggle
set $layoutMode "Tab-Split-stacK"
mode $layoutMode {
bindsym k layout stacking; mode "default"
bindsym t layout tabbed; mode "default"
bindsym s layout toggle split; mode "default"
bindsym Escape mode "default"
}
bindsym $mod+l mode $layoutMode
mode "resize" {
bindsym $left resize shrink width 5 px or 5 ppt
bindsym $down resize grow height 5 px or 5 ppt
bindsym $up resize shrink height 5 px or 5 ppt
bindsym $right resize grow width 5 px or 5 ppt
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# workspaces
set $wp1 "1:default"
set $wp2 "2:web"
set $wp3 "3:chat"
set $wp4 "4:media"
set $wp5 "5:dev"
set $wp6 "6:game"
set $wp7 "7:game2"
set $wp8 "8:8"
set $wp9 "9:9"
set $wp0 "10:10"
set $wpweb "2:web"
set $wpchat "3:chat"
set $wpmedia "4:media"
set $wpdev "5:dev"
set $wpgame "6:game"
set $wpgame2 "7:game2"
bindsym $mod+$key1 workspace $wp1
bindsym $mod+$key2 workspace $wp2
bindsym $mod+$key3 workspace $wp3
bindsym $mod+$key4 workspace $wp4
bindsym $mod+$key5 workspace $wp5
bindsym $mod+$key6 workspace $wp6
bindsym $mod+$key7 workspace $wp7
bindsym $mod+$key8 workspace $wp8
bindsym $mod+$key9 workspace $wp9
bindsym $mod+$key0 workspace $wp0
bindsym $mod+$Skey1 move container to workspace $wp1
bindsym $mod+$Skey2 move container to workspace $wp2
bindsym $mod+$Skey3 move container to workspace $wp3
bindsym $mod+$Skey4 move container to workspace $wp4
bindsym $mod+$Skey5 move container to workspace $wp5
bindsym $mod+$Skey6 move container to workspace $wp6
bindsym $mod+$Skey7 move container to workspace $wp7
bindsym $mod+$Skey8 move container to workspace $wp8
bindsym $mod+$Skey9 move container to workspace $wp9
bindsym $mod+$Skey0 move container to workspace $wp0
bindsym $alt+Shift+Tab workspace prev
bindsym $alt+Tab workspace next
bindsym $mod+w workspace prev
bindsym $mod+x workspace next
bindsym $alt+$left workspace prev
bindsym $alt+$right workspace next
bindsym $mod+Shift+w move container to workspace prev
bindsym $mod+Shift+x move container to workspace next
bindsym $alt+Shift+$left move container to workspace prev
bindsym $alt+Shift+$right move container to workspace next
# app workspaces
assign [instance="Navigator"] $wpweb
assign [class="Nightly Release"] $wpweb
assign [class="Chromium"] $wpweb
assign [class="Hexchat"] $wpchat
assign [class="discord"] $wpchat
assign [class="Vlc"] $wpmedia
assign [class="Audacity"] $wpmedia
assign [instance="BrawlBox.exe"] $wpmedia
assign [class="Spotify"] $wpmedia
assign [class="Termite-dev"] $wpdev
assign [class="etl"] $wpgame
assign [instance="explorer.exe"] $wpgame
assign [class="deadcells"] $wpgame
assign [class="Terraria.bin.x86"] $wpgame
assign [class="Steam"] $wpgame2
assign [title="Steam"] $wpgame2
assign [class="Zenity"] $wpgame2
# gaps
gaps inner 0
gaps outer 0
smart_gaps on
smart_borders no_gaps
workspace $wpdev gaps inner 2
# border
for_window [class=".*"] border pixel 0
for_window [class="Termite-dev"] border pixel 1
# fullscreen
for_window [class="etl"] fullscreen
for_window [class="deadcells"] fullscreen
# floating
for_window [window_role="page-info"] floating enable
for_window [class="Leafpad"] floating enable
for_window [class="Leafpad-nofloat" window_type="normal"] floating disable
for_window [instance="BrawlBox.exe"] floating enable
for_window [class="etl"] floating disable
# start apps
bindsym $mod+Shift+e exec --no-startup-id i3-on-exit
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ 0 && [ $(($(amixer get Master | egrep -m 1 -o "([0-9]+)%" -h | sed 's/%//')+0)) -lt 96 ] && pactl set-sink-volume @DEFAULT_SINK@ +5% && killall -SIGUSR1 i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ 0 && pactl set-sink-volume @DEFAULT_SINK@ -5% && killall -SIGUSR1 i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && killall -SIGUSR1 i3status
bindsym $mod+XF86AudioMute exec pavucontrol
bindsym Print exec --no-startup-id shellopen screenshot
bindsym $mod+Print exec --no-startup-id shellopen screenshot-window
bindsym Shift+Print exec --no-startup-id shellopen screenshot-region
bindsym XF86AudioPlay exec --no-startup-id shellopen musictrl toggle
bindsym XF86Tools exec --no-startup-id shellopen musictrl next
bindsym XF86AudioNext exec --no-startup-id shellopen musictrl next
bindsym XF86AudioPrev exec --no-startup-id shellopen musictrl prev
bindsym $mod+Shift+i exec --no-startup-id notify-send -t 4000 "Window pid" "$(get-window-pid)"
bindsym $mod+Return exec termite
bindsym $mod+Shift+Return exec termite --class=Termite-dev
bindsym $mod+d exec --no-startup-id dmenu_run -b -fn "DejaVuSansMono:style=Book:size=11:antialias=true:autohint=true"
bindsym $mod+Shift+d exec pcmanfm-qt "menu://applications/"
bindsym $mod+$alt+d exec rofi -show run
bindsym $mod+e exec pcmanfm-qt
bindsym $mod+$alt+e exec pcmanfm
bindsym $mod+o exec leafpad --class=Leafpad-nofloat
bindsym $mod+p exec passmenu
# autostart
exec --no-startup-id hsetroot -solid '#101010'
exec --no-startup-id start-pulseaudio-x11
exec --no-startup-id compton
exec --no-startup-id lxqt-policykit-agent
exec --no-startup-id sleep 1s && /usr/lib/xfce4/notifyd/xfce4-notifyd
exec --no-startup-id sleep 1.2s && tilda
exec --no-startup-id [ -f ~/Temp/tmp ] && ! [ "$(wc -l ~/Temp/tmp | cut -d ' ' -f 1)" -eq 0 ] && leafpad ~/Temp/tmp
general {
colors = true
interval = 1
}
# volume
volume master {
device = "pulse"
}
order += "volume master"
# disks
disk "/" {
format = "/: %used+%avail"
}
order += "disk /"
disk "/home" {
format = "/home: %used+%avail"
}
order += "disk /home"
# networking
ethernet _first_ {
format_up = "E: %ip"
format_down = "E: down"
}
order += "ethernet _first_"
#wireless _first_ {
# format_up = "W(%essid): %ip/%quality"
# format_down = "W: down"
#}
#order += "wireless _first_"
# battery
#battery all {
# format = "Bat%status%percentage %remaining"
# format_down = "N/A"
# hide_seconds = true
# integer_battery_capacity = true
# status_chr = "++"
# status_bat = "--"
# status_full = "=="
#}
#order += "battery all"
# cpu
cpu_usage {
format = "CPU: %usage"
}
order += "cpu_usage"
# date & time
tztime pst {
format = "%Z:%-H"
timezone = "America/Los_Angeles"
}
order += "tztime pst"
tztime est {
format = "%Z:%-H"
timezone = "America/New_York"
}
order += "tztime est"
tztime utc {
format = "%Z:%-H"
timezone = "UTC"
}
order += "tztime utc"
tztime cet {
format = "%Z:%-H"
timezone = "Europe/Paris"
}
order += "tztime cet"
tztime jp {
format = "%Z:%-H"
timezone = "Asia/Tokyo"
}
order += "tztime jp"
tztime long {
format = "%a %-d %b%-m %Y %H:%M:%S %Z"
timezone = "Europe/Paris"
}
order += "tztime long"
input * {
xkb_layout fr
xkb_variant oss_latin9
xkb_model pc105
}
output * bg #101010 solid_color
include ../i3/config
[Unit]
Description=SSH key agent
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK -t 3M
[Install]
WantedBy=default.target
......@@ -19,7 +19,7 @@ alias clbin=cb
alias pb=ewd # temporary
if [ -x "$(getpath tree)" ]; then
alias t="tree -a -I '.git|.hg' --noreport -F --dirsfirst"
alias t="tree -a -I '.git|.hg|node_modules' --noreport -F --dirsfirst"
fi
if [ -x "$(getpath git)" ]; then
......
# vim:ft=sh
case :"${PATH}": in
(*:"${DOTFILES}/shell/script":*) ;;
(*) export PATH="${DOTFILES}/shell/script:${PATH}" ;;
esac
if [ -x "$(getpath python3)" ]; then
case :"${PATH}": in
(*:"${DOTFILES}/shell/pythonscript":*) ;;
(*) export PATH="${DOTFILES}/shell/pythonscript:${PATH}" ;;
esac
fi
# vim:ft=sh
if [ -x "$(getpath rg)" ] && [ -x "$(getpath less)" ]; then
rgl() {
rg -p "$@" | less
}
fi
setlocal noet ts=4 tw=80 cc=+1
setl noet ts=4 tw=80 cc=+1
setlocal noet ts=4
setl noet ts=4
setlocal noet ts=4
setl noet ts=4
......@@ -64,7 +64,7 @@ filetype plugin indent on " must be run early
set fo-=c fo-=r noet ts=4 sts=0 sw=0
function! DefaultFileType()
setlocal fo-=c fo-=r sts=0 sw=0
setl fo-=c fo-=r sts=0 sw=0
hi ColorColumn cterm=reverse
endfunction
......@@ -74,7 +74,8 @@ augroup filetypesconfig
autocmd BufNewFile,BufReadPre,FileReadPre * call DefaultFileType()
autocmd FileType * call DefaultFileType()
autocmd BufNewFile,BufReadPost *.sch setlocal ft=xml
autocmd BufNewFile,BufReadPost *.sch setl ft=xml
autocmd BufNewFile,BufReadPost *.vue setl ft=html
augroup END
" neovim features
......