This commit is contained in:
Henrik Bakken
2021-03-13 14:38:31 +01:00
parent 7865c357ef
commit b8c8d32895
8 changed files with 143 additions and 33 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ set -x BROWSER /usr/bin/chromium
set -x QT_QPA_PLATFORMTHEME "qt5ct" set -x QT_QPA_PLATFORMTHEME "qt5ct"
set -x GTK2_RC_FILES "$HOME/.gtkrc-2.0" set -x GTK2_RC_FILES "$HOME/.gtkrc-2.0"
set -x JAVA_HOME "/usr/lib/jvm/default/" set -x JAVA_HOME "/usr/lib/jvm/default/"
set -x PYTHONBREAKPOINT pudb.set_trace set -x PYTHONBREAKPOINT ipdb.set_trace
# cuda stuff # cuda stuff
set -x CUDA_HOME /opt/cuda set -x CUDA_HOME /opt/cuda
+2 -2
View File
@@ -94,8 +94,8 @@ bindsym $mod+Shift+x --release exec --no-startup-id xkill
bindsym $mod+F1 exec $term -e 'htop' bindsym $mod+F1 exec $term -e 'htop'
bindsym $mod+Shift+F1 exec $term -e 'glances' bindsym $mod+Shift+F1 exec $term -e 'glances'
bindsym $mod+F2 exec "chromium --start-fullscreen https://www.inoreader.com" bindsym $mod+F2 exec "xdg-open 'https://www.inoreader.com'"
bindsym $mod+Shift+F2 exec "chromium --new-window --start-fullscreen https://www.inoreader.com" bindsym $mod+Shift+F2 exec "xdg-open --new-window 'https://www.inoreader.com'"
bindsym $mod+F3 exec $term -e 'ranger' bindsym $mod+F3 exec $term -e 'ranger'
bindsym $mod+Shift+F3 exec thunar bindsym $mod+Shift+F3 exec thunar
bindsym $mod+F4 exec pamac-manager bindsym $mod+F4 exec pamac-manager
+2 -2
View File
@@ -94,8 +94,8 @@ bindsym $mod+Shift+x --release exec --no-startup-id xkill
bindsym $mod+F1 exec $term -e 'htop' bindsym $mod+F1 exec $term -e 'htop'
bindsym $mod+Shift+F1 exec $term -e 'glances' bindsym $mod+Shift+F1 exec $term -e 'glances'
bindsym $mod+F2 exec "chromium --start-fullscreen https://www.inoreader.com" bindsym $mod+F2 exec "xdg-open 'https://www.inoreader.com'"
bindsym $mod+Shift+F2 exec "chromium --new-window --start-fullscreen https://www.inoreader.com" bindsym $mod+Shift+F2 exec "xdg-open --new-window 'https://www.inoreader.com'"
bindsym $mod+F3 exec $term -e 'ranger' bindsym $mod+F3 exec $term -e 'ranger'
bindsym $mod+Shift+F3 exec thunar bindsym $mod+Shift+F3 exec thunar
bindsym $mod+F4 exec pamac-manager bindsym $mod+F4 exec pamac-manager
+10 -16
View File
@@ -1,19 +1,12 @@
[Default Applications] [Default Applications]
x-scheme-handler/msteams=teams.desktop; application/x-extension-htm=google-chrome.desktop;
x-scheme-handler/http=chromium.desktop; application/x-extension-html=google-chrome.desktop;
x-scheme-handler/https=chromium.desktop; application/x-extension-shtml=google-chrome.desktop;
x-scheme-handler/ftp=chromium.desktop; application/x-extension-xhtml=google-chrome.desktop;
x-scheme-handler/chrome=chromium.desktop; application/x-extension-xht=google-chrome.desktop;
x-scheme-handler/webcal=chromium.desktop application/xhtml+xml=google-chrome.desktop;
x-scheme-handler/mailto=chromium.desktop; application/xml=draw.io.desktop;
x-scheme-handler/msteams=teams.desktop application/pdf=google-chrome.desktop;org.pwmt.zathura.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/x-bittorrent=deluge.desktop;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=freeoffice-planmaker.desktop; application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=freeoffice-planmaker.desktop;
application/vnd.openxmlformats-officedocument.presentationml.presentation=freeoffice-presentations.desktop; application/vnd.openxmlformats-officedocument.presentationml.presentation=freeoffice-presentations.desktop;
@@ -21,7 +14,7 @@ inode/directory=ranger.desktop
image/jpeg=viewnior.desktop; image/jpeg=viewnior.desktop;
image/png=viewnior.desktop; image/png=viewnior.desktop;
image/svg+xml=viewnior.desktop; image/svg+xml=viewnior.desktop;
message/rfc822=exo-web-browser.desktop; message/rfc822=google-chrome.desktop;
text/csv=freeoffice-planmaker.desktop; text/csv=freeoffice-planmaker.desktop;
text/html=nvim.desktop; text/html=nvim.desktop;
text/x-log=nvim.desktop; text/x-log=nvim.desktop;
@@ -30,3 +23,4 @@ text/markdown=nvim.desktop;markdown_previewer.desktop;
text/x-python=nvim.desktop; text/x-python=nvim.desktop;
application/xml=nvim.desktop; application/xml=nvim.desktop;
application/octet-stream=nvim.desktop; application/octet-stream=nvim.desktop;
x-scheme-handler/msteams=teams.desktop;
+2 -1
View File
@@ -5,8 +5,9 @@
"python.linting.flake8Enabled": true, "python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true, "python.linting.mypyEnabled": true,
"python.linting.pylintEnabled": false, "python.linting.pylintEnabled": false,
"python.analysis.useLibraryCodeForTypes": 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.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.flake8Args": ["--ignore=E731"],
"git.enableGutters": true, "git.enableGutters": true,
"yaml.format.enable": true, "yaml.format.enable": true,
"yaml.format.singleQuote": true, "yaml.format.singleQuote": true,
+4 -9
View File
@@ -43,7 +43,6 @@ Plug 'tpope/vim-sensible'
Plug 'dkarter/bullets.vim' Plug 'dkarter/bullets.vim'
" python " python
Plug 'tmhedberg/SimpylFold' Plug 'tmhedberg/SimpylFold'
Plug 'jeetsukumaran/vim-pythonsense'
" tmux " tmux
Plug 'christoomey/vim-tmux-navigator' " integrate movement in tmux and vim Plug 'christoomey/vim-tmux-navigator' " integrate movement in tmux and vim
" aesthetics " aesthetics
@@ -210,9 +209,9 @@ nnoremap Q <nop>
" ***************************** " *****************************
" TERMINAL " TERMINAL
nmap <Leader>t :terminal<cr>
tmap <M-x> <C-\><C-n> tmap <M-x> <C-\><C-n>
tmap <F2> <C-\><C-n> tmap <F10> <C-\><C-n>
nmap <F9> :terminal<cr>
" ***************************** " *****************************
" SEARCH " SEARCH
@@ -327,10 +326,8 @@ nmap <F6> <Plug>(coc-refactor)
xmap <F7> <Plug>(coc-format-selected) xmap <F7> <Plug>(coc-format-selected)
nmap <F7> <Plug>(coc-format-selected) nmap <F7> <Plug>(coc-format-selected)
nmap <F8> :CocDiagnostics<cr> nmap <F8> :CocDiagnostics<cr>
" F9 reserved for exec in terminal nmap <silent> <F11> :Commits<cr>
nmap <silent> <F10> :Commits<cr> nmap <silent> <F12> :BCommits<cr>
nmap <silent> <F11> :BCommits<cr>
nmap <silent> <F12> :CocFzfList outline<cr>
nmap <silent> <M-b> :Buffers<cr> nmap <silent> <M-b> :Buffers<cr>
nmap <silent> <M-w> :RG<cr> nmap <silent> <M-w> :RG<cr>
nmap <silent> <M-g> :GFiles?<cr> nmap <silent> <M-g> :GFiles?<cr>
@@ -415,8 +412,6 @@ augroup myAu " A unique name for the group. DO NOT use the same name twice!
autocmd BufReadPost quickfix nmap <buffer> <cr> <cr> " quickfix <cr> autocmd BufReadPost quickfix nmap <buffer> <cr> <cr> " quickfix <cr>
autocmd CompleteDone * if pumvisible() == 0 | pclose | endif " bugfix autocmd CompleteDone * if pumvisible() == 0 | pclose | endif " bugfix
autocmd BufNewFile,BufRead *.cfg set syntax=cfg autocmd BufNewFile,BufRead *.cfg set syntax=cfg
autocmd FileType python map <F9> :CocCommand python.execInTerminal<CR>
autocmd FileType python imap <F9> <esc>:CocCommand python.execInTerminal<CR>
augroup end augroup end
" CTRL-A CTRL-Q to select all and build quickfix list " CTRL-A CTRL-Q to select all and build quickfix list
+2 -2
View File
@@ -95,8 +95,8 @@ bind -n M-o resize-pane -Z
# split panes using | and -, make sure they open in the same path # split panes using | and -, make sure they open in the same path
bind v split-window -h -c "#{pane_current_path}" bind v split-window -h -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}" bind s split-window -v -c "#{pane_current_path}"
bind § split-window -fh -c "#{pane_current_path}" bind V split-window -fh -c "#{pane_current_path}"
bind _ split-window -fv -c "#{pane_current_path}" bind S split-window -fv -c "#{pane_current_path}"
# Change layouts # Change layouts
bind o rotate-window bind o rotate-window
+120
View File
@@ -0,0 +1,120 @@
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key
# Ciphers and keying
#RekeyLimit default none
# Logging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin prohibit-password
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#PubkeyAuthentication yes
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys
#AuthorizedPrincipalsFile none
#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
ChallengeResponseAuthentication no
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no # pam does that
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
UseDNS no
#PidFile /run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none
# no default banner path
#Banner none
# override default of no subsystems
Subsystem sftp /usr/lib/ssh/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
# HB edits
AllowUsers hjalmarlucius theskjalg
Protocol 2