diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-23 20:13:32 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-23 20:13:32 +0100 |
commit | db61f6d0a707750fbc650b80d605b818bbcaf708 (patch) | |
tree | dd2eacffa3474ec4838f5a151fd79e5f6381d433 | |
parent | 2acee2bb448d2a9a5e70d862c114cb58206beae4 (diff) | |
download | user-config-db61f6d0a707750fbc650b80d605b818bbcaf708.tar.gz user-config-db61f6d0a707750fbc650b80d605b818bbcaf708.zip |
Update kusanagi config
-rw-r--r-- | kusanagi/dot_Xdefaults | 91 | ||||
-rw-r--r-- | kusanagi/dot_bashrc (renamed from dot_bashrc_kusanagi) | 26 | ||||
-rw-r--r-- | kusanagi/dot_inputrc | 36 | ||||
-rw-r--r-- | kusanagi/dot_tmux.conf | 57 | ||||
-rw-r--r-- | kusanagi/dot_vimrc | 106 | ||||
-rw-r--r-- | kusanagi/sway/config | 288 |
6 files changed, 590 insertions, 14 deletions
diff --git a/kusanagi/dot_Xdefaults b/kusanagi/dot_Xdefaults new file mode 100644 index 0000000..12658f1 --- /dev/null +++ b/kusanagi/dot_Xdefaults @@ -0,0 +1,91 @@ +# General terminal configuration + +#xterm*scrollTtyOutput: false +xterm*rightScrollBar: true +#xterm*faceName: Ubuntu Mono:pixelsize=16 +xterm*utf8: 2 +xterm*scrollBar: false +xterm*saveLines: 512 +xterm*geometry: 80x25 +xterm*scrollTtyKeypress: true +xterm*dynamicColors: true +xterm*jumpScroll: true +xterm*eightBitInput: true +xterm*multiScroll: true +xterm*toolBar: false + +*reverseVideo:true + + +#*background: #DDFF77 +*background: #dddddd +*foreground: #222222 +#*background: #FFFFD7 +#*Text.background: #0000FF +# *foreground: #dddddd +# *background: #111111 +# *background: #0000FF +# *color0: #000000 +# *color1: #ff6565 +# *color2: #93d44f +# *color3: #eab93d +# *color4: #204a87 +# *color5: #ce5c00 +# *color6: #89b6e2 +# *color7: #cccccc +# *color8: #555753 +# *color9: #ff8d8d +# *color10: #c8e7a8 +# *color11: #ffc123 +# *color12: #3465a4 +# *color13: #f57900 +# *color14: #46a4ff +# *color15: #ffffff + + +# Configuration for urxvt + +URxvt.keysym.C-Right : \033[1;5C +URxvt.keysym.C-Left : \033[1;5D + +URxvt.matcher.button: 1 +#rxvt*modifier: alt +#urxvt*modifier: alt + +URxvt.scrollBar: off +URxvt*scrollstyle: rxvt + +#URxvt*transparent: true +Rxvt*shading: 15 + +#URxvt.font: -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1 +#URxvt.font: -misc-fixed-medium-r-normal--15-120-90--c-90-iso8859-1 +#URxvt.font: xft:Ubuntu Mono:size=13 +#URxvt.font: xft:Monaco:size=12 +URxvt.font: xft:SF Mono:size=12 +#URxvt.font: xft:Monoid:size=11 +#URxvt.font: xft:ProFontIIx:size=10 + +#xft.rgba: rgb +#xft.hinting: true +#xft.antialias: true +#xft.hintstyle: hintfull +#xft.dpi: 96 +Xft.autohint: true +Xft.antialias: true + +URxvt.perl-ext-common: default,clipboard,url-select,matcher,resize-font +URxvt.keysym.M-u: perl:url-select:select_next +URxvt.url-select.launcher: /usr/bin/firefox -new-tab +#URxvt.url-select.launcher: /usr/bin/opera +#URxvt.url-select.launcher: /usr/bin/dillo +URxvt.url-select.underline: true +URxvt.resize-font.smaller: C-Down +URxvt.resize-font.bigger: C-Up + + +# Other configuration + +Xcursor*theme: Adwaita + +*visualBell: false diff --git a/dot_bashrc_kusanagi b/kusanagi/dot_bashrc index 71077d7..c8c3d5d 100644 --- a/dot_bashrc_kusanagi +++ b/kusanagi/dot_bashrc @@ -5,6 +5,8 @@ # If not running interactively, don't do anything [[ $- != *i* ]] && return +export MOZ_ENABLE_WAYLAND=1 + export HISTSIZE=2000 export HISTFILESIZE=2000 @@ -38,25 +40,16 @@ export WINEPREFIX=/home/lx.nobackup/wine # GIT_PROMPT_END="\[\033[0m\]\n \$ " # source ~/usr/src/bash-git-prompt/gitprompt.sh - - -alias clipper='ssh auvolat@sas.eleves.ens.fr' -alias cargo='ssh auvolat@cargo.ens.fr' -alias tremble='ssh auvolat@tremble.ens.fr' -alias tulipier='ssh auvolat@tulipier.ens.fr' -# conseil : utiliser tulipier pour bosser, sas.eleves pour IRC - -alias dgsas='ssh dg@sas.eleves.ens.fr' -alias dgwww='ssh -t dg@sas.eleves.ens.fr ssh www2.eleves.ens.fr' - alias irc='ssh -t katchup@adnab.me /usr/local/bin/irc' - alias drsync='rsync -arzv --delete --progress' +source /usr/share/fzf/completion.bash +source /usr/share/fzf/key-bindings.bash + # expand -t 4 $HOME/Core/TODO -keychain ~/.ssh/id_rsa --quiet +eval $(keychain ~/.ssh/id_rsa --quiet --eval) #export LUA_PATH='/home/lx/.luarocks/share/lua/5.3/?.lua;/home/lx/.luarocks/share/lua/5.3/?/init.lua;/usr/share/lua/5.3/?.lua;/usr/share/lua/5.3/?/init.lua;/usr/lib/lua/5.3/?.lua;/usr/lib/lua/5.3/?/init.lua;./?.lua;./?/init.lua' #export LUA_CPATH='/home/lx/.luarocks/lib/lua/5.3/?.so;/usr/lib/lua/5.3/?.so;/usr/lib/lua/5.3/loadall.so;./?.so' @@ -73,7 +66,12 @@ PATH="$NPM_PACKAGES/bin:$PATH" unset MANPATH # delete if you already modified MANPATH elsewhere in your config export MANPATH="$NPM_PACKAGES/share/man:$(manpath)" -khal +alias sway='exec sway' + +# Rust +source $HOME/.cargo/env + +khal calendar echo todo echo diff --git a/kusanagi/dot_inputrc b/kusanagi/dot_inputrc new file mode 100644 index 0000000..96d68ba --- /dev/null +++ b/kusanagi/dot_inputrc @@ -0,0 +1,36 @@ +set editing-mode vi + +"\e[A": history-search-backward +"\e[B": history-search-forward + +set show-all-if-ambiguous on +set completion-ignore-case on +set bell-style none + +# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving +"\e[1;5C": forward-word +"\e[1;5D": backward-word + +# Execute 'jobs' +"\ej": "\C-a\C-kjobs\n" + +# Ajouter "| less" à la fin de la ligne +"\el": "\C-e | less" + +# Ajouter "sudo" au début de la ligne +"\ex": "\C-asudo \C-e" + +# Copier une seconde fois le premier argument de la commande +# (Ne fonctionne que pour des commandes simples) +# Pratique lorsqu'on écrit "mv nom_de\ -\ fichier_\[\ complexe\] nom_de\ -\ fichier_\[\ complexe\].txt" +"\er": '\C-a\ef\C-k\C-y\C-y' + +# ouvre un dmenu avec les fichiers du dir courant +"\ea": ' \\\'$(ls | dmenu -l 24)\\\'\e\C-e' + +# insère le nom du fichier le plus récemment modifié +"\e:": '\\\'$(ls -t -1 -d * | head -n 1)\\\' \e\C-e' + +# Clear screen on ctrl-l +"\C-l":'clear\n' + diff --git a/kusanagi/dot_tmux.conf b/kusanagi/dot_tmux.conf new file mode 100644 index 0000000..bd8d4b5 --- /dev/null +++ b/kusanagi/dot_tmux.conf @@ -0,0 +1,57 @@ +# KEY BINDINGS + +setw -g mode-keys vi + +# remap prefix to Control + a +set -g prefix C-q +unbind C-b +bind C-q send-prefix + +unbind q +bind-key q copy-mode + +unbind p +bind p paste-buffer + +# force a reload of the config file +unbind r +bind r source-file ~/.tmux.conf + +# quick pane cycling +unbind ^A +bind ^A select-pane -t :.+ + +# switch panes using vim-like bindings C-a hjkl +unbind h +unbind j +unbind k +unbind l +bind h select-pane -L +bind l select-pane -R +bind k select-pane -U +bind j select-pane -D +# switch panes using bindings C-q C-hl +unbind ^H +unbind ^L +bind ^H previous-window +bind ^L next-window + +# OTHER OPTIONS + +set -g mouse on + +set -g escape-time 0 + +# don't rename windows automatically +set-option -g allow-rename off + +set -g default-terminal "screen-256color" + + +###################### +### DESIGN CHANGES ### +###################### + +set -g status-bg colour8 +set -g status-fg colour15 + diff --git a/kusanagi/dot_vimrc b/kusanagi/dot_vimrc new file mode 100644 index 0000000..e8dbcf0 --- /dev/null +++ b/kusanagi/dot_vimrc @@ -0,0 +1,106 @@ +" ============== KEY MAPPINGS + +let mapleader="," + +" Tab modes. +map <leader>m <Esc>:set expandtab ts=2 sw=2 sts=2<CR> +map <leader>t <Esc>:set noexpandtab ts=4 sw=4 sts=4<CR> +map <leader>T <Esc>:set expandtab ts=4 sw=4 sts=4<CR> + +" Folds: +" map <leader>f <Esc>:set fen fdn=3 fdm=indent fml=1 fdc=3<CR> + +map ; <ESC>:FZF<CR> + +" H-L for next-prev buffer +nnoremap <leader>l :bnext<CR> +nnoremap <leader>k :bprev<CR> + + + +" Append modeline after last line in buffer. +" Use substitute() instead of printf() to handle '%%s' modeline in LaTeX +" files. +function! AppendModeline() + let l:modeline = printf(" vim: set sts=%d ts=%d sw=%d tw=%d %set :", + \ &softtabstop, &tabstop, &shiftwidth, &textwidth, &expandtab ? '' : 'no') + let l:modeline = substitute(&commentstring, "%s", l:modeline, "") + call append(line("$"), l:modeline) +endfunction +nnoremap <silent> <Leader>ml :call AppendModeline()<CR> + + +" =================== OPTIONS + +" colorscheme slate + +filetype plugin indent on +set autoindent +set ts=4 sw=4 + +" Controls +set mouse=a +set nostartofline +set wildmode=list:longest + +" Display +highlight SpellBad ctermfg=red ctermbg=none +set bg=dark +set hlsearch +set incsearch +syntax on +set lazyredraw +set number +set relativenumber +set showcmd +set shortmess=a +set display+=lastline + +" indentation for long line wraps +set wrap +set linebreak +set breakindent +let &showbreak = '> ' + +" set cursorline +" hi CursorLine cterm=bold ctermbg=0 +" hi Folded ctermfg=2 ctermbg=0 +" hi FoldColumn ctermfg=2 ctermbg=0 + +let g:sclangTerm = "urxvt -e" + +let NERDTreeIgnore=['\.o$', '\.cmo$', '\.cmx$', '\.cmi$', '\.lib$', '\.pyc$', '^__pycache__$'] + +" set completeopt=menuone,menu,longest,preview + +set undofile +set directory=~/.vim/swp +set backupdir=~/.vim/backup +set undodir=~/.vim/undo + +" =========== FILE TYPE SPECIFIC + +au BufRead,BufNewFile *.make set filetype=make +au BufRead,BufNewFile *.md set filetype=markdown +au BufRead,BufNewFile *.lus set filetype=lustre +au BufRead,BufNewFile *.scade set filetype=scade + +au FileType make setl noexpandtab +au FileType python setl sw=4 sts=4 et +au FileType html setl sw=2 sts=2 et +au FileType htmldjango setl sw=2 sts=2 et +au FileType json setl sw=2 sts=2 et +au FileType javascript setl sw=2 sts=2 et +au FileType yaml setl sw=2 sts=2 et +au FileType css setl sw=4 sts=4 et +au FileType lua setl ts=4 sw=4 noet +au FileType elixir setl sw=2 sts=2 et + +autocmd FileType tex setlocal spell spelllang=en + +" Packs + +packloadall +silent! helptags ALL + + diff --git a/kusanagi/sway/config b/kusanagi/sway/config new file mode 100644 index 0000000..aaec5d0 --- /dev/null +++ b/kusanagi/sway/config @@ -0,0 +1,288 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout somewhen, delete +# this file and re-run i3-config-wizard(1). +# + +xwayland enable + +output '*' bg /home/lx/stuff/wallpaper/34812.jpg FILL pos 0 0 +output 'HDMI-A-2' scale 0.75 pos 1920 0 + +seat '*' hide_cursor 5000 + +input '*' { + xkb_layout 'fr' + xkb_variant 'oss' +} + +# i3 config file (v4) +# +# Please see http://i3wm.org/docs/userguide.html for a complete reference! + +# defaults +#client.focused #4c7899 #285577 #ffffff #2e9ef4 +#client.focused_inactive #333333 #5f676a #ffffff #484e50 +#client.unfocused #333333 #222222 #888888 #292d2e +#client.urgent #2f343a #900000 #ffffff #900000 + +# class border backgr. text indicator +#client.focused #97734c #77432c #ffffff #2e9ef4 +#client.focused_inactive #333333 #5f676a #ffffff #484e50 +#client.unfocused #333333 #222222 #888888 #292d2e +#client.urgent #2f343a #900000 #ffffff #900000 +#client.background #111111 + +# client.focused #333333 #5A5958 #dddddd #2e7ec4 +# client.focused_inactive #333333 #2f373a #AAAAAA #484e50 +# client.unfocused #333333 #222222 #888888 #292d2e +# client.urgent #2f343a #900000 #ffffff #900000 +# client.background #111111 + +client.focused #000000 #000000 #dddddd #2e7ec4 #000000 +client.focused_inactive #000000 #000000 #AAAAAA #484e50 #000000 +client.unfocused #000000 #000000 #888888 #292d2e #000000 +client.urgent #000000 #900000 #ffffff #900000 #900000 +client.background #000000 + +set $mod Mod4 + +# font for window titles. ISO 10646 = Unicode +#font -misc-fixed-medium-r-normal--12-120-75-75-C-70-iso10646-1 +font pango:Inconsolata 15px + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec i3-sensible-terminal +#bindsym $mod+Return exec xfce4-terminal + +# bindsym $mod+Shift+X exec xscreensaver-command -lock +#bindsym $mod+Shift+X exec i3lock -d -c 111111 -I 5 +#bindsym $mod+Shift+X exec /home/lx/.i3/i3lock-dpms +bindsym $mod+Shift+X exec swaylock -c 111111 + +# music control +bindsym $mod+Shift+P exec mpc toggle +bindsym $mod+Shift+N exec mpc next + +bindsym $mod+Shift+S exec /home/lx/usr/bin/ss +bindsym $mod+Shift+M exec /home/lx/usr/bin/ms + +# kill focused window +bindsym $mod+Shift+Q kill + +# start dmenu (a program launcher) +bindsym $mod+p exec bemenu-run --fn 'Inconsolata' + +# change focus +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+H move left +bindsym $mod+Shift+J move down +bindsym $mod+Shift+K move up +bindsym $mod+Shift+L move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+b split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen + +# change container layout (stacked, tabbed, default) +bindsym $mod+s layout stacking +bindsym $mod+z layout tabbed +bindsym $mod+e layout default + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+q focus parent + +# focus the child container +#bindcode $mod+d focus child + +# switch to workspace +bindsym $mod+ampersand workspace 1 +bindsym $mod+eacute workspace 2 +bindsym $mod+quotedbl workspace 3 +bindsym $mod+apostrophe workspace 4 +bindsym $mod+parenleft workspace 5 +bindsym $mod+minus workspace 6 +bindsym $mod+egrave workspace 7 +bindsym $mod+underscore workspace 8 +bindsym $mod+ccedilla workspace 9 +bindsym $mod+agrave workspace 10 + +workspace_auto_back_and_forth yes + +# move focused container to workspace +bindsym $mod+1 move container to workspace 1 +bindsym $mod+2 move container to workspace 2 +bindsym $mod+3 move container to workspace 3 +bindsym $mod+4 move container to workspace 4 +bindsym $mod+5 move container to workspace 5 +bindsym $mod+6 move container to workspace 6 +bindsym $mod+7 move container to workspace 7 +bindsym $mod+8 move container to workspace 8 +bindsym $mod+9 move container to workspace 9 +bindsym $mod+0 move container to workspace 10 + +workspace 1 output eDP-1 +workspace 2 output eDP-1 +workspace 3 output eDP-1 +workspace 4 output eDP-1 +workspace 5 output eDP-1 +workspace 6 output HDMI-A-2 eDP-1 +workspace 7 output HDMI-A-2 eDP-1 +workspace 8 output HDMI-A-2 eDP-1 +workspace 9 output HDMI-A-2 eDP-1 +workspace 10 output HDMI-A-2 eDP-1 + +# reload the configuration file +bindsym $mod+Shift+C reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+R restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+E exit + +bindsym $mod+t border normal +bindsym $mod+y border pixel 1 +bindsym $mod+u border none + +bindsym XF86MonBrightnessDown exec sudo brightnessctl set 10%- +bindsym XF86MonBrightnessUp exec sudo brightnessctl set +10% +bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle +bindsym XF86AudioRaiseVolume exec pactl set-sink-mute 0 false && pactl set-sink-volume 0 +5% +bindsym XF86AudioLowerVolume exec pactl set-sink-mute 0 false && pactl set-sink-volume 0 -5% + + +for_window [title="xfce4-notifyd"] floating enable +for_window [title="xfce4-notifyd"] border none +for_window [title="Caml graphics"] floating enable +for_window [title="QEMU"] floating enable +for_window [title="a.out"] floating enable +for_window [title="mgrx*"] floating enable +for_window [class="Klavaro"] floating enable +for_window [class="Steam"] floating enable +for_window [class="Wine"] floating enable +for_window [class="StepMania"] floating enable +for_window [class="stepmania"] floating enable +for_window [class="anki"] floating enable +for_window [class="visu.bin"] floating enable +for_window [class="pathfind"] floating enable + +#new_window 1pixel +#new_window none +default_border pixel 1 + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym h resize shrink width 5 px or 5 ppt + bindsym j resize grow height 5 px or 5 ppt + bindsym k resize shrink height 5 px or 5 ppt + bindsym l resize grow width 5 px or 5 ppt + + # same bindings, but for the arrow keys + 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 + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command i3status -c ~/.i3/i3status.conf + #font -misc-fixed-medium-r-normal--12-120-75-75-C-70-iso10646-1 + font pango:Inconsolata 14px + colors { + background #000000 + statusline #FFFFFF + + # focused_workspace #222222 #222222 #C8E7A4 + # active_workspace #222222 #222222 #EAB93D + # inactive_workspace #222222 #222222 #888888 + # urgent_workspace #222222 #222222 #FF8D8D + focused_workspace #000000 #000000 #C8E7A4 + active_workspace #000000 #000000 #EAB93D + inactive_workspace #000000 #000000 #888888 + urgent_workspace #000000 #000000 #FF8D8D + } +} + + +#exec_always feh --bg-scale /usr/share/backgrounds/xfce/vect_or.jpg +#exec_always feh --bg-scale /home/katchup/wp/undessindedragon2.jpg +#exec_always feh --bg-scale /home/katchup/Stuff/wp/lain_87_1680.jpg +#exec_always feh --bg-scale /home/katchup/Stuff/wp/wanikani.png +#exec_always feh --bg-scale /home/lx/stuff/LimitsToGrowthWorld3.jpg +#exec_always feh --bg-scale /usr/share/archlinux/wallpaper/archlinux-elation.jpg +#exec_always feh --bg-scale /home/lx/stuff/qMDYqjh.jpg +#exec_always feh --bg-scale /home/lx/stuff/arch1.png +#exec_always feh --bg-fill /home/lx/stuff/seoul.jpeg +#exec_always feh --bg-fill /home/lx/stuff/wallpaper/factory.jpg +exec_always feh --bg-fill /home/lx/stuff/wallpaper/34812.jpg + +exec_always { + gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark' + gsettings set org.gnome.desktop.interface font-name 'Cantarell 13' + gsettings set org.gnome.desktop.interface icon-theme 'Arc' +} + +#exec swayidle -w timeout 300 'swaylock -f -c 111111' timeout 310 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 111111' + +exec mako +#exec_always /home/katchup/lab/wkwwin/script.sh +#exec xscreensaver -nosplash +exec pulseaudio --start +#exec mpd +#exec ~/.i3/mpdscribble.sh +exec_always xinput --set-prop 'HID 04d9:1133' 'Device Accel Constant Deceleration' 2 +exec_always xinput --set-prop 'HID 04d9:1133' 'Device Accel Adaptive Deceleration' 2 +exec_always xinput --set-prop 'HID 04d9:1133' 'Device Accel Velocity Scaling' 5 +#exec nm-applet +#exec nextcloud +#exec seafile-applet +exec redshift-gtk -l 48.8567:2.3508 +#exec ~/.i3/notify-serv.sh +exec xset -b # disable bell + + |