General cleanup

This commit is contained in:
har0ke 2023-10-03 13:56:53 +02:00
parent 843ac8cd7b
commit afb072c0cc
12 changed files with 36 additions and 51 deletions

View File

@ -53,19 +53,13 @@
"**/*.o.cmd": true,
"**/*.o.d": true
},
"workbench.editorAssociations": [
{
"viewType": "jupyter-notebook",
"filenamePattern": "*.ipynb"
}
],
"git.confirmSync": false,
"editor.rulers": [
80, 120
],
"window.zoomLevel": 1,
"C_Cpp.loggingLevel": "Information",
"editor.tabSize": 8,
"editor.tabSize": 4,
"terminal.integrated.scrollback": 10000,
"files.insertFinalNewline": true,
}

View File

@ -13,9 +13,9 @@ set $terminal xterm
set $mod Mod3
set $screenlock ~/.dotfiles/scripts/i3lock_oke
exec_always --no-startup-id "bash ~/.dotfiles/scripts/mod_keys"
exec_always --no-startup-id ~/.dotfiles/scripts/mod_keys
exec --no-startup-id bash ~/.dotfiles/scripts/clear_red
exec --no-startup-id ~/.dotfiles/scripts/clear_red
exec --no-startup-id xidlehook --detect-sleep --not-when-fullscreen --timer 60 'xbacklight -get > .last_backlight; xbacklight -set 1' 'xbacklight -set $(cat .last_backlight)'
exec --no-startup-id xidlehook --detect-sleep --not-when-fullscreen --timer 240 '$screenlock' ''
exec --no-startup-id xidlehook --detect-sleep --not-when-fullscreen --not-when-audio --timer 1200 'systemctl suspend' ''
@ -70,7 +70,8 @@ bindsym Mod4+l exec $screenlock
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
#bindsym $mod+space exec "rofi -modi windowcd,window -show windowcd"
bindsym $mod+space exec "rofi -show combi -modes combi,drun,run,ssh -combi-modes 'window,drun,run,ssh' -show-icons"
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
@ -117,7 +118,7 @@ bindsym $mod+e layout toggle split
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
@ -142,22 +143,6 @@ for_window [workspace=$ws2] layout stacked
for_window [workspace=$ws8] layout stacked
for_window [workspace=$ws9] layout stacked
# EDITORS
assign [class="code"] $ws2
assign [class="Code"] $ws2
# WEB
for_window [class="firefox"] move container to workspace $ws3
# CHAT
assign [class="TelegramDesktop"] $ws8
assign [class="Thunderbird"] $ws8
for_window [class="linphone"] move container to workspace $ws8
for_window [class="Gajim"] move container to workspace $ws8
# MEDIA
for_window [class="Spotify"] move container to workspace $ws9
# for_window [class="Chromium"] layout stacked
# for_window [class="Chromium"] move container to workspace $ws9
@ -166,13 +151,6 @@ exec --no-startup-id i3-msg 'workspace $ws8; exec thunderbird'
exec --no-startup-id protonmail-bridge --no-window
exec --no-startup-id nextcloud
exec --no-startup-id i3-msg 'workspace $ws3; exec firefox'
exec --no-startup-id code
exec --no-startup-id spotify
# must be last
exec --no-startup-id i3-msg 'workspace $ws1; exec "xterm -e \\"$HOME/.winfo.sh; zsh\\""'

15
.vimrc
View File

@ -1,30 +1,19 @@
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
if exists(':PlugInstall')
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'NLKNguyen/papercolor-theme'
Plug 'vim-scripts/DfrankUtil'
Plug 'vim-scripts/vimprj'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'ycm-core/YouCompleteMe', { 'do': './install.py' }
Plug 'scrooloose/nerdtree'
if system('which ctags') =~ "ctags"
Plug 'vim-scripts/indexer.tar.gz'
endif
call plug#end()
set background=light
colorscheme PaperColor
endif
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
@ -47,3 +36,7 @@ highlight Pmenu ctermbg=gray guibg=gray
:set shiftwidth=4
:set expandtab
:set smartindent
let g:netrw_banner=0 " disable annoying banner
let g:netrw_liststyle=3 " tree view
let g:netrw_chgwin=1

View File

@ -46,6 +46,7 @@ declare -ar i3_environment=(
i3status-rust
i3lock-color
playerctl
rofi
ttf-font-awesome
wmctrl
xidlehook pkgconf # undocumented dependency

View File

@ -1,3 +1,4 @@
#!/usr/bin/bash
sinks=$(pactl list sinks short | grep RUNNING | awk '{ print $1 }')
if [ -z "$sinks" ]; then
@ -6,9 +7,7 @@ fi
echo "$sinks"
for SINK in $sinks
do
pactl set-sink-mute $SINK toggle
pactl set-sink-mute "${SINK}" toggle
done

View File

@ -1,4 +1,4 @@
#!/usr/bin/bash
sinks=$(pactl list sinks short | grep RUNNING | awk '{ print $1 }')
if [ -z "$sinks" ]; then

13
install_code_extensions.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/bash
code \
--install-extension rozbo.papercolor-vscode \
--install-extension dcasella.i3 \
--install-extension ms-python.python \
--install-extension ms-python.vscode-pylance \
--install-extension ms-vscode.cpptools \
--install-extension ms-vscode-remote.remote-ssh \
--install-extension ms-vscode-remote.remote-ssh-edit \
--install-extension ms-vscode.remote-explorer \
--install-extension timonwong.shellcheck \
--install-extension twxs.cmake \
--install-extension voidei.vscode-vimrc

View File

@ -1,3 +1,6 @@
#!/usr/bin/bash
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim +'PlugInstall --sync' +qa

View File

@ -1,7 +1,8 @@
#!/bin/bash
for run in {1..200}; do
for _ in {1..200}; do
sleep .001
for win in $(wmctrl -l | awk -F' ' '{print $1}'); do
wmctrl -i -r $win -b remove,demands_attention
wmctrl -i -r "${win}" -b remove,demands_attention
done
done

View File

@ -1,3 +1,5 @@
#!/usr/bin/bash
i3lock \
-c003344 \
--time-color=#ffffff88 \

View File

@ -1,4 +1,5 @@
#!/usr/bin/bash
setxkbmap -layout de -option caps:hyper
xmodmap ~/.Xmodmap