This commit is contained in:
Henrik Bakken
2021-03-04 20:24:40 +01:00
parent c452826815
commit 7865c357ef
13 changed files with 117 additions and 99 deletions
+3 -12
View File
@@ -3,13 +3,13 @@ set -x EDITOR /usr/bin/nvim
set -x BROWSER /usr/bin/chromium
set -x QT_QPA_PLATFORMTHEME "qt5ct"
set -x GTK2_RC_FILES "$HOME/.gtkrc-2.0"
set -x PYTHONBREAKPOINT ipdb.set_trace
set -x JAVA_HOME "/usr/lib/jvm/java-14-openjdk/"
set -x JAVA_HOME "/usr/lib/jvm/default/"
set -x PYTHONBREAKPOINT pudb.set_trace
# cuda stuff
set -x CUDA_HOME /opt/cuda
set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH:$CUDA_HOME/lib64
set -x PATH $CUDA_HOME/bin:/home/hjalmarlucius/.local/bin/:$PATH
set -Ua fish_user_paths /home/hjalmarlucius/.local/bin/
# Base16 Shell
if status --is-interactive
@@ -17,14 +17,5 @@ if status --is-interactive
source "$BASE16_SHELL/profile_helper.fish"
end
# MKL AMD fix
set -x MKL_DEBUG_CPU_TYPE 5
# fzf bindings
set -U FZF_LEGACY_KEYBINDINGS 0
function fish_user_key_bindings
for mode in insert default visual
bind -M $mode \cf forward-char
end
end
+11 -5
View File
@@ -1,10 +1,16 @@
function fish_user_key_bindings
for mode in insert default visual
bind -M $mode \cf forward-char
end
bind --preset _ beginning-of-line
bind \eh __fzf_reverse_isearch
bind \eF __fzf_open
bind -M insert \ec '__fzf_cd --hidden'
bind -M insert \ep __fzf_find_file
bind -M insert \ef '__fzf_open --editor'
bind -M insert \ew __fzf_reverse_isearch
bind -M insert \eo '__fzf_cd --hidden'
bind -M insert \eF __fzf_find_file
bind -M insert \ef __fzf_open
end
fzf_key_bindings
function ll --description 'List contents of directory using long format'
ls -lha $argv
end
+12 -15
View File
@@ -37,13 +37,13 @@ exec --no-startup-id nm-applet
exec --no-startup-id nitrogen --restore; sleep 1; picom -b
exec --no-startup-id xfce4-power-manager
exec --no-startup-id pamac-tray
exec --no-startup-id xautolock -time 30 -locker blurlock
exec --no-startup-id xautolock -time 30 -locker ~/OneDrive/dotfiles/root/locker.sh
exec_always --no-startup-id sbxkb
exec_always --no-startup-id fix_xcursor
# HB STARTUP ADDITIONS
exec --no-startup-id setxkbmap -layout no -model pc105 -variant nodeadkeys -option "caps:escape"
exec --no-startup-id redshift-gtk
exec --no-startup-id setxkbmap -layout no -model pc105 -variant nodeadkeys
exec --no-startup-id redshift-gtk -l 59.91:10.75
exec --no-startup-id dropbox start &
exec --no-startup-id nvidia-settings -a GPUFanControlState=1 -a GPUTargetFanSpeed=60
exec --no-startup-id xrandr --output DP-2 --mode 3840x2160 --output DP-0 --mode 2560x1440 --right-of DP-2 --primary
@@ -51,8 +51,8 @@ exec --no-startup-id xrandr --output DP-2 --mode 3840x2160 --output DP-0 --mode
# div bindings
bindsym $mod+Shift+q kill
bindsym $mod+q split toggle
bindsym $mod+s split h; exec notify-send 'tile horizontally'
bindsym $mod+v split v; exec notify-send 'tile vertically'
bindsym $mod+v split h; exec notify-send 'tile horizontally'
bindsym $mod+s split v; exec notify-send 'tile vertically'
bindsym $mod+f fullscreen toggle
bindsym $mod+w layout stacking
@@ -70,8 +70,8 @@ bindsym $mod+Ctrl+space sticky toggle
bindsym $mod+Shift+c exec picom-trans -c -10
bindsym $mod+c exec picom-trans -c +10
bindsym $mod+p scratchpad show
bindsym $mod+Shift+p move scratchpad
bindsym $mod+minus scratchpad show
bindsym $mod+Shift+minus move scratchpad
bindsym $mod+h focus left
bindsym $mod+j focus down
@@ -105,9 +105,6 @@ bindsym $mod+Shift+F6 exec $term -e 'ncspot'
bindsym $mod+F9 exec --no-startup-id picom -b
bindsym $mod+Shift+F9 exec --no-startup-id pkill picom
bindsym $mod+Shift+F10 --release exec "killall dunst; exec notify-send 'restart dunst'"
# bindsym $mod+Shift+F10 exec "setxkbmap -layout no -model pc105 -variant nodeadkeys -option"
# bindsym $mod+Shift+F11 exec "setxkbmap -layout no -model pc105 -variant nodeadkeys -option 'caps:backspace'"
# bindsym $mod+Shift+F12 exec "setxkbmap -layout no -model pc105 -variant nodeadkeys -option 'caps:escape'"
bindsym $mod+0 mode "$mode_system"
bindsym $mod+z mode "resize"
@@ -187,7 +184,7 @@ for_window [class="qt5ct"] floating enable sticky enable border normal
# Set shut down, restart and locking features
set $mode_system (l)ock, (e)xit, switch_(u)ser, (r)eboot, (s)hutdown
mode "$mode_system" {
bindsym l exec --no-startup-id i3exit lock, mode "default"
bindsym l exec --no-startup-id ~/OneDrive/dotfiles/root/locker.sh, mode "default"
bindsym u exec --no-startup-id i3exit switch_user, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default"
@@ -201,10 +198,10 @@ mode "$mode_system" {
# Resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
bindsym l resize shrink width 10 px or 10 ppt
bindsym h resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym j resize shrink height 10 px or 10 ppt
bindsym h resize grow width 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
# exit resize mode: Enter or Escape
bindsym Return mode "default"
@@ -259,8 +256,8 @@ bar {
# Theme colors
# class border backgr. text indic. child_border
client.focused #556064 #f9ce5c #000000 #FDF6E3
client.focused_inactive #2F3D44 #2F3D44 #1ABC9C #454948
client.unfocused #2F3D44 #2F3D44 #1ABC9C #454948
client.focused_inactive #CB4B16 #2F3D44 #1ABC9C #454948
client.unfocused #556064 #2F3D44 #1ABC9C #454948
client.urgent #CB4B16 #FDF6E3 #1ABC9C #268BD2
client.placeholder #000000 #0c0c0c #ffffff #000000
+1 -1
View File
@@ -6,7 +6,7 @@
# For explanations of all config options below see docs/USAGE.md or the man page.
#
sync_dir="/mnt/OneDrive"
skip_dir="Programming/logs|Bilder/Camera Roll|Backup|Datasets|Pictures|Videos|Music|Library|Research*|*/__pycache__|*/.ipynb_checkpoints"
skip_dir="Programming/logs|Bilder/Camera Roll|Backup|Datasets|Pictures|Videos|Music|Library|Research*|*/__pycache__|*/.ipynb_checkpoints|*/.mypy_cache"
skip_file="*.tmp|.~*|~*"
# monitor_interval = "45"
# skip_dir = "Videos"
+12 -15
View File
@@ -37,13 +37,13 @@ exec --no-startup-id nm-applet
exec --no-startup-id nitrogen --restore; sleep 1; picom -b
exec --no-startup-id xfce4-power-manager
exec --no-startup-id pamac-tray
exec --no-startup-id xautolock -time 30 -locker blurlock
exec --no-startup-id xautolock -time 30 -locker ~/OneDrive/dotfiles/root/locker.sh
exec_always --no-startup-id sbxkb
exec_always --no-startup-id fix_xcursor
# HB STARTUP ADDITIONS
exec --no-startup-id setxkbmap -layout no -model pc105 -variant nodeadkeys -option "caps:escape"
exec --no-startup-id redshift-gtk
exec --no-startup-id setxkbmap -layout no -model pc105 -variant nodeadkeys
exec --no-startup-id redshift-gtk -l 59.91:10.75
exec --no-startup-id dropbox start &
exec --no-startup-id nvidia-settings -a GPUFanControlState=1 -a GPUTargetFanSpeed=60
exec --no-startup-id xrandr --output DP-4 --mode 5120x1440 --primary
@@ -51,8 +51,8 @@ exec --no-startup-id xrandr --output DP-4 --mode 5120x1440 --primary
# div bindings
bindsym $mod+Shift+q kill
bindsym $mod+q split toggle
bindsym $mod+s split h; exec notify-send 'tile horizontally'
bindsym $mod+v split v; exec notify-send 'tile vertically'
bindsym $mod+v split h; exec notify-send 'tile horizontally'
bindsym $mod+s split v; exec notify-send 'tile vertically'
bindsym $mod+f fullscreen toggle
bindsym $mod+w layout stacking
@@ -70,8 +70,8 @@ bindsym $mod+Ctrl+space sticky toggle
bindsym $mod+Shift+c exec picom-trans -c -10
bindsym $mod+c exec picom-trans -c +10
bindsym $mod+p scratchpad show
bindsym $mod+Shift+p move scratchpad
bindsym $mod+minus scratchpad show
bindsym $mod+Shift+minus move scratchpad
bindsym $mod+h focus left
bindsym $mod+j focus down
@@ -105,9 +105,6 @@ bindsym $mod+Shift+F6 exec $term -e 'ncspot'
bindsym $mod+F9 exec --no-startup-id picom -b
bindsym $mod+Shift+F9 exec --no-startup-id pkill picom
bindsym $mod+Shift+F10 --release exec "killall dunst; exec notify-send 'restart dunst'"
# bindsym $mod+Shift+F10 exec "setxkbmap -layout no -model pc105 -variant nodeadkeys -option"
# bindsym $mod+Shift+F11 exec "setxkbmap -layout no -model pc105 -variant nodeadkeys -option 'caps:backspace'"
# bindsym $mod+Shift+F12 exec "setxkbmap -layout no -model pc105 -variant nodeadkeys -option 'caps:escape'"
bindsym $mod+0 mode "$mode_system"
bindsym $mod+z mode "resize"
@@ -182,7 +179,7 @@ for_window [class="qt5ct"] floating enable sticky enable border normal
# Set shut down, restart and locking features
set $mode_system (l)ock, (e)xit, switch_(u)ser, (r)eboot, (s)hutdown
mode "$mode_system" {
bindsym l exec --no-startup-id i3exit lock, mode "default"
bindsym l exec --no-startup-id ~/OneDrive/dotfiles/root/locker.sh, mode "default"
bindsym u exec --no-startup-id i3exit switch_user, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default"
@@ -196,10 +193,10 @@ mode "$mode_system" {
# Resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
bindsym l resize shrink width 10 px or 10 ppt
bindsym h resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym j resize shrink height 10 px or 10 ppt
bindsym h resize grow width 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
# exit resize mode: Enter or Escape
bindsym Return mode "default"
@@ -254,8 +251,8 @@ bar {
# Theme colors
# class border backgr. text indic. child_border
client.focused #556064 #f9ce5c #000000 #FDF6E3
client.focused_inactive #2F3D44 #2F3D44 #1ABC9C #454948
client.unfocused #2F3D44 #2F3D44 #1ABC9C #454948
client.focused_inactive #CB4B16 #2F3D44 #1ABC9C #454948
client.unfocused #556064 #2F3D44 #1ABC9C #454948
client.urgent #CB4B16 #FDF6E3 #1ABC9C #268BD2
client.placeholder #000000 #0c0c0c #ffffff #000000
+1 -1
View File
@@ -6,7 +6,7 @@
# For explanations of all config options below see docs/USAGE.md or the man page.
#
sync_dir="/mnt/OneDrive"
skip_dir="Programming/logs|Bilder/Camera Roll|Backup|Datasets|Pictures|Videos|*/__pycache__|*/.ipynb_checkpoints"
skip_dir="Programming/logs|Bilder/Camera Roll|Backup|Datasets|Pictures|Videos|*/__pycache__|*/.ipynb_checkpoints|*/.mypy_cache"
skip_file="*.tmp|.~*|~*"
# monitor_interval = "45"
# skip_dir = "Videos"
+1
View File
@@ -11,6 +11,7 @@
* omf install https://github.com/jethrokuan/fzf
* div applications `yay -S thunar ranger drawio-desktop steam-manjaro`
* div utils `yay -S trash-cli rofi redshift flameshot asus-fan-control`
* caps2esc `yay -S caps2esc` [install routine](https://askubuntu.com/questions/979359/how-do-i-install-caps2esc) - mode 1
# coding
* essentials `yay -S neovim tmux`
+16 -15
View File
@@ -1,29 +1,30 @@
[Default Applications]
[Added Associations]
x-scheme-handler/msteams=teams.desktop;
x-scheme-handler/http=exo-web-browser.desktop;
x-scheme-handler/https=exo-web-browser.desktop;
x-scheme-handler/ftp=exo-web-browser.desktop;
x-scheme-handler/chrome=exo-web-browser.desktop;
x-scheme-handler/webcal=exo-web-browser.desktop
x-scheme-handler/mailto=exo-web-browser.desktop;
application/x-extension-htm=exo-web-browser.desktop;
application/x-extension-html=exo-web-browser.desktop;
application/x-extension-shtml=exo-web-browser.desktop;
application/x-extension-xhtml=exo-web-browser.desktop;
application/x-extension-xht=exo-web-browser.desktop;
application/xhtml+xml=exo-web-browser.desktop;
application/pdf=exo-web-browser.desktop;org.pwmt.zathura.desktop;
x-scheme-handler/http=chromium.desktop;
x-scheme-handler/https=chromium.desktop;
x-scheme-handler/ftp=chromium.desktop;
x-scheme-handler/chrome=chromium.desktop;
x-scheme-handler/webcal=chromium.desktop
x-scheme-handler/mailto=chromium.desktop;
x-scheme-handler/msteams=teams.desktop
application/x-extension-htm=chromium.desktop;
application/x-extension-html=chromium.desktop;
application/x-extension-shtml=chromium.desktop;
application/x-extension-xhtml=chromium.desktop;
application/x-extension-xht=chromium.desktop;
application/xhtml+xml=chromium.desktop;
application/pdf=chromium.desktop;org.pwmt.zathura.desktop;
application/x-bittorrent=deluge.desktop;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=freeoffice-planmaker.desktop;
application/vnd.openxmlformats-officedocument.presentationml.presentation=freeoffice-presentations.desktop;
inode/directory=ranger.desktop
image/jpeg=viewnior.desktop;
image/png=viewnior.desktop;
image/svg+xml=viewnior.desktop;
message/rfc822=exo-web-browser.desktop;
text/csv=freeoffice-planmaker.desktop;
text/html=nvim.desktop;
text/x-log=nvim.desktop;
text/plain=nvim.desktop;
text/markdown=nvim.desktop;markdown_previewer.desktop;
text/x-python=nvim.desktop;
+5 -6
View File
@@ -1,13 +1,12 @@
{
"signature.target": "echo",
"suggest.autoTrigger": "always",
"python.jediEnabled": false,
"python.autoComplete.addBrackets": true,
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.pylintArgs": ["--disable=all", "--enable=F,E,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode"],
"python.linting.flake8Args": ["--ignore=E221,E226,E231,E241,E272,E501,E701,E704"],
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.linting.pylintEnabled": false,
/* "python.linting.pylintArgs": ["--disable=all", "--enable=F,E,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode"], */
/* "python.linting.flake8Args": ["--ignore=E221,E226,E231,E241,E272,E501,E701,E704"], */
"git.enableGutters": true,
"yaml.format.enable": true,
"yaml.format.singleQuote": true,
+24 -24
View File
@@ -9,7 +9,7 @@ if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim
endif
let g:coc_global_extensions=[
\ 'coc-python',
\ 'coc-pyright',
\ 'coc-git',
\ 'coc-tsserver',
\ 'coc-diagnostic',
@@ -79,7 +79,7 @@ highlight LineNr guibg=NONE ctermbg=NONE
" seoul256 theme config (dark 233-239, light 252-256)
let g:seoul256_background=233
" colo seoul256
colo seoul256
" colo base16-tomorrow-night
" colo gruvbox-material
@@ -208,13 +208,6 @@ nmap <esc><esc> :noh<cr>
nnoremap q: <nop>
nnoremap Q <nop>
" *****************************
" EDITING
nmap cr <Plug>(coc-rename)
nmap cR <Plug>(coc-refactor)
xmap cf <Plug>(coc-format-selected)
nmap cf <Plug>(coc-format-selected)
" *****************************
" TERMINAL
nmap <Leader>t :terminal<cr>
@@ -262,20 +255,20 @@ nmap gr <Plug>(coc-references)
" *****************************
" WINDOWS / BUFFERS
let g:tmux_navigator_no_mappings=1
nmap <silent> <M-h> :TmuxNavigateLeft<cr>
nmap <silent> <M-j> :TmuxNavigateDown<cr>
nmap <silent> <M-k> :TmuxNavigateUp<cr>
nmap <silent> <M-l> :TmuxNavigateRight<cr>
nmap <silent> <M-h> :TmuxNavigateLeft<cr>:call CleanEmptyBuffers()<cr>
nmap <silent> <M-j> :TmuxNavigateDown<cr>:call CleanEmptyBuffers()<cr>
nmap <silent> <M-k> :TmuxNavigateUp<cr>:call CleanEmptyBuffers()<cr>
nmap <silent> <M-l> :TmuxNavigateRight<cr>:call CleanEmptyBuffers()<cr>
" make splits and tabs
nnoremap <M-v> :vnew<cr>
nnoremap <M-s> :new<cr>
nnoremap <M-t> :tabe %<cr>
nnoremap <M-T> :tabnew<cr>
" buffers and tabs
nmap <M-H> :bprev<cr>:call CleanEmptyBuffers()<cr>
nmap <M-L> :bnext<cr>:call CleanEmptyBuffers()<cr>
nmap <M-J> :tabprev<cr>
nmap <M-K> :tabnext<cr>
nmap <M-J> :bprev<cr>:call CleanEmptyBuffers()<cr>
nmap <M-K> :bnext<cr>:call CleanEmptyBuffers()<cr>
nmap <M-H> :tabprev<cr>
nmap <M-L> :tabnext<cr>
" resize windows with hjkl
nnoremap <C-h> <C-w><
nnoremap <C-j> <C-w>-
@@ -310,7 +303,7 @@ map <C-p> :CocCommand explorer<cr>
" vim-fugitive
" g? for fugitive help. :Gdiff, :Gblame, :Gstats '=' expand, '-' add/reset changes, :Gcommit % to commit current file with messag
map <C-g> :vertical Git<cr>:vertical resize 60<cr>
map <C-t> :UndotreeToggle<cr>
map <C-t> :UndotreeToggle<cr>:UndotreeFocus<cr>
" *****************************
" POPUPS
@@ -327,12 +320,13 @@ command! -nargs=* -bang RG call RipgrepFzf(<q-args>, <bang>0)
let g:fzf_preview_command='bat --color=always --plain {-1}' " Installed bat
let g:fzf_preview_grep_cmd='rg --smart-case --line-number --no-heading --color=never'
" shortcuts
map <silent> <F3> :Colors<cr>
nmap <silent> <F3> :Colors<cr>
nmap <silent> <F4> :CocFzfList<cr>
nmap <silent> <F5> :CocFzfList symbols<cr>
nmap <silent> <F6> :CocFzfList symbols --kind Variable<cr>
nmap <silent> <F7> :CocFzfList symbols --kind Function<cr>
nmap <silent> <F8> :CocFzfList symbols --kind Class<cr>
nmap <F5> <Plug>(coc-rename)
nmap <F6> <Plug>(coc-refactor)
xmap <F7> <Plug>(coc-format-selected)
nmap <F7> <Plug>(coc-format-selected)
nmap <F8> :CocDiagnostics<cr>
" F9 reserved for exec in terminal
nmap <silent> <F10> :Commits<cr>
nmap <silent> <F11> :BCommits<cr>
@@ -343,7 +337,7 @@ nmap <silent> <M-g> :GFiles?<cr>
nmap <silent> <M-r> :History<cr>
nmap <silent> <M-f> :Files<cr>
nmap <silent> <M-F> :GFiles<cr>
map <silent> <M-y> :Filetypes<cr>
nmap <silent> <M-y> :Filetypes<cr>
" *****************************
" COC CONFIGS
@@ -373,6 +367,12 @@ function! s:show_documentation()
endif
endfunction
" coc hint scrolling
nnoremap <nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
nnoremap <nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
inoremap <nowait><expr> <C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>"
inoremap <nowait><expr> <C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
" *****************************
" MARKDOWN
" vim-markdown
+10
View File
@@ -0,0 +1,10 @@
[redshift]
temp-day=5700
temp-night=3600
gamma=0.8
adjustment-method=randr
location-provider=manual
[manual]
lat=59.9139
lon=10.7522
+6 -5
View File
@@ -15,8 +15,8 @@ set -g bell-action none
setw -g mode-keys vi
# mouse control (clickable windows, panes, resizable panes)
setw -g mouse on
set -g mouse on
setw -g mouse off
set -g mouse off
# clipboard control
set -g set-clipboard on
@@ -62,7 +62,7 @@ bind ø command-prompt
#bind \ show-messages
# Copy mode
bind v copy-mode
bind c copy-mode
# clipboard control
bind p paste-buffer
@@ -93,8 +93,8 @@ bind -r j resize-pane -D 2 \; display-message "Resize down"
bind -n M-o resize-pane -Z
# split panes using | and -, make sure they open in the same path
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}"
bind § split-window -fh -c "#{pane_current_path}"
bind _ split-window -fv -c "#{pane_current_path}"
@@ -173,6 +173,7 @@ set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'sainnhe/tmux-fzf'
# note: fzf bound to 'F'
#set -g @plugin 'odedlaz/tmux-onedark-theme'
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
set -eu
RESOLUTION=$(xrandr -q|sed -n 's/.*current[ ]\([0-9]*\) x \([0-9]*\),.*/\1x\2/p')
# lock the screen
import -silent -window root jpeg:- | convert - -scale 20% -blur 0x2.5 -resize 500% RGB:- | \
i3lock --raw $RESOLUTION:rgb -i /dev/stdin -e $@
# sleep 1 adds a small delay to prevent possible race conditions with suspend
sleep 1
xset dpms force off
exit 0