diff --git a/.gitignore b/.gitignore index eeb2512..f1f7ff3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .vscode *__pycache__ -.vim/plugged/* \ No newline at end of file +.vim/plugged/* +neovim/.config/nvim/plugged +neovim/.config/nvim/spell/ \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1dea2a6 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "zsh/.oh-my-zsh/custom/plugins/zsh-autosuggestions"] + path = zsh/.oh-my-zsh/custom/plugins/zsh-autosuggestions + url = https://github.com/zsh-users/zsh-autosuggestions +[submodule "zsh/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"] + path = zsh/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting + url = https://github.com/zsh-users/zsh-syntax-highlighting diff --git a/README.md b/README.md index d23d95a..9621890 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # dotfiles +## Notes +1. create hard link from _firefox/userChrome.css_ to _.mozilla/firefox/\/chrome/userChrome.css +1. add content of TST-config to the TST config \ No newline at end of file diff --git a/Xorg/.Xresources b/Xorg/.Xresources index 524645e..5beeba2 100755 --- a/Xorg/.Xresources +++ b/Xorg/.Xresources @@ -1,19 +1,36 @@ -! Dracula Xresources palette -*.foreground: #F8F8F2 -*.background: #282A36 -*.color0: #000000 -*.color8: #4D4D4D -*.color1: #FF5555 -*.color9: #FF6E67 -*.color2: #50FA7B -*.color10: #5AF78E -*.color3: #F1FA8C -*.color11: #F4F99D -*.color4: #BD93F9 -*.color12: #CAA9FA -*.color5: #FF79C6 -*.color13: #FF92D0 -*.color6: #8BE9FD -*.color14: #9AEDFE -*.color7: #BFBFBF -*.color15: #E6E6E6 +! ----------------------------------------------------------------------------- +! File: gruvbox-dark.xresources +! Description: Retro groove colorscheme generalized +! Author: morhetz +! Source: https://github.com/morhetz/gruvbox-generalized +! Last Modified: 6 Sep 2014 +! ----------------------------------------------------------------------------- + +! hard contrast: *background: #1d2021 +*background: #282828 +! soft contrast: *background: #32302f +*foreground: #ebdbb2 +! Black + DarkGrey +*color0: #282828 +*color8: #928374 +! DarkRed + Red +*color1: #cc241d +*color9: #fb4934 +! DarkGreen + Green +*color2: #98971a +*color10: #b8bb26 +! DarkYellow + Yellow +*color3: #d79921 +*color11: #fabd2f +! DarkBlue + Blue +*color4: #458588 +*color12: #83a598 +! DarkMagenta + Magenta +*color5: #b16286 +*color13: #d3869b +! DarkCyan + Cyan +*color6: #689d6a +*color14: #8ec07c +! LightGrey + White +*color7: #a89984 +*color15: #ebdbb2 diff --git a/bash/.bashrc b/bash/.bashrc index 2391f9b..5fe2a67 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -42,10 +42,10 @@ alias update-all="pikaur -Syu" # update standard pkgs and AUR pkg alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages # Changing "ls" to "exa" -alias ls='exa -l --color=always --group-directories-first' # my preferred listing -alias la='exa -a --color=always --group-directories-first' # all files and dirs -alias ll='exa -al --color=always --group-directories-first' # long format -alias lt='exa -aT --color=always --group-directories-first' # tree listing +alias ls='exa -l --color=always --group-directories-first --git' # my preferred listing +alias la='exa -a --color=always --group-directories-firs --git' # all files and dirs +alias ll='exa -al --color=always --group-directories-first --git' # long format +alias lt='exa -aT --color=always --group-directories-first --git' # tree listing alias l.='exa -a | egrep "^\."' # Colorize grep output (good for log files) @@ -73,8 +73,10 @@ alias pull='git pull origin' alias push='git push origin' alias status='git status' alias diff='git diff' +alias remote='git remote' alias ftemplate='git fetch template' alias mtemplate='git merge template/master --allow-unrelated-histories' +alias log='git log' #st programs alias cubeide='~/st/stm32cubeide_1.5.0/stm32cubeide' @@ -147,4 +149,6 @@ ex () mkcd() { mkdir "$@"&&cd "$@";} # "cdls" to cd and ls in one go cdls() { cd "$@"&&ls;} +#cdvim to cd into the directory of a file and open the file in vim +cdvim(){ cd "$(dirname "$@")" && vim "$(basename "$@")";} # <<< cd shortcuts <<< diff --git a/code-extensions.txt b/code-extensions.txt index 5d8b399..068d395 100644 --- a/code-extensions.txt +++ b/code-extensions.txt @@ -1,20 +1,33 @@ +apommel.matlab-interactive-terminal +bramvanbilsen.matlab-code-run +cschlosser.doxdocgen DotJoshJohnson.xml dracula-theme.theme-dracula eamodio.gitlens +Gimly81.matlab +GrapeCity.gc-excelviewer James-Yu.latex-workshop +jdinhlife.gruvbox mads-hartmann.bash-ide-vscode marus25.cortex-debug +mechatroner.rainbow-csv ms-azuretools.vscode-docker ms-python.python +ms-python.vscode-pylance ms-toolsai.jupyter +ms-toolsai.jupyter-keymap +ms-toolsai.jupyter-renderers ms-vscode-remote.remote-ssh ms-vscode-remote.remote-ssh-edit ms-vscode.cpptools +ms-vscode.makefile-tools naumovs.color-highlight njpwerner.autodocstring +redhat.vscode-commons redhat.vscode-xml rogalmic.bash-debug shd101wyy.markdown-preview-enhanced +skyran.matlab-snippets streetsidesoftware.code-spell-checker streetsidesoftware.code-spell-checker-german stxr.iconfont-preview diff --git a/firefox/TST-config.css b/firefox/TST-config.css new file mode 100644 index 0000000..ce4a4ef --- /dev/null +++ b/firefox/TST-config.css @@ -0,0 +1,27 @@ +/* Hide border on tab bar, force its state to 'scroll', adjust margin-left for width of scrollbar. */ +#tabbar { border: 0; overflow-y: scroll !important; margin-left: -12px !important; scrollbar-width: auto; } + +/* Hide .twisty and adjust margins so favicons have 7px on left. */ +tab-item .twisty { + visibility: hidden; + margin-left: -12px; +} + +/* Push tab labels slightly to the right so they're completely hidden in collapsed state */ +tab-item .label { + margin-left: 7px; +} + +/* Hide close buttons on tabs. */ +tab-item .closebox { + visibility: collapse; +} + +tab-item:hover .closebox { + visibility: initial; +} + +/* Hide sound playing/muted button. */ +.sound-button::before { + display: none !important; +} diff --git a/firefox/userChrome.css b/firefox/userChrome.css new file mode 100644 index 0000000..dc5b0f6 --- /dev/null +++ b/firefox/userChrome.css @@ -0,0 +1,45 @@ +/* Hide main tabs toolbar */ +#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items { + opacity: 0; + pointer-events: none; +} +#main-window:not([tabsintitlebar="true"]) #TabsToolbar { + visibility: collapse !important; +} + +/* Sidebar min and max width removal */ +#sidebar { + max-width: none !important; + min-width: 0px !important; +} +/* Hide splitter, when using Tree Style Tab. */ +#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] + #sidebar-splitter { + display: none !important; +} +/* Hide sidebar header, when using Tree Style Tab. */ +#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header { + visibility: collapse; +} + +/* Shrink sidebar until hovered, when using Tree Style Tab. */ +:root { + --thin-tab-width: 30px; + --wide-tab-width: 200px; +} +#sidebar-box:not([sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]) { + min-width: var(--wide-tab-width) !important; + max-width: none !important; +} +#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] { + position: relative !important; + transition: all 100ms !important; + min-width: var(--thin-tab-width) !important; + max-width: var(--thin-tab-width) !important; +} +#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]:hover { + transition: all 200ms !important; + min-width: var(--wide-tab-width) !important; + max-width: var(--wide-tab-width) !important; + margin-right: calc((var(--wide-tab-width) - var(--thin-tab-width)) * -1) !important; + z-index: 1; +} diff --git a/git/.git-credentials b/git/.git-credentials index df180db..e8b2fee 100644 --- a/git/.git-credentials +++ b/git/.git-credentials @@ -1,3 +1,3 @@ +https://paul-loedige:5SC%24%5e%5eonvuD5Ze@git.owl-racing-team.de https://paul-loedige:VhD%40R46%2ai9k%24tumJgD3T@git.ploedige.com https://paul-loedige:yP4vs9rTriqP4b8mK4ohyNHSH@its-gitlab.init.hs-owl.de -https://paul-loedige:5SC%24%5e%5eonvuD5Ze@git.owl-racing-team.de diff --git a/install.sh b/install.sh index d178c3f..4438125 100644 --- a/install.sh +++ b/install.sh @@ -20,4 +20,8 @@ do code --install-extension $extension --force done +#pip install +cd /home/$USER/.dotfiles +pip install -r ./pip-modules.txt + echo "Manually STOW the configs!" diff --git a/neovim/.config/nvim/coc-settings.json b/neovim/.config/nvim/coc-settings.json new file mode 100644 index 0000000..7e1f9ae --- /dev/null +++ b/neovim/.config/nvim/coc-settings.json @@ -0,0 +1,8 @@ +{ + "git.removedSign.text": "✗", + "git.addedSign.hlGroup": "GitGutterAdd", + "git.changedSign.hlGroup": "GitGutterChange", + "git.removedSign.hlGroup": "GitGutterDelete", + "git.topRemovedSign.hlGroup": "GitGutterDelete", + "git.changeRemovedSign.hlGroup": "GitGutterChangeDelete" +} diff --git a/neovim/.config/nvim/coc.vim b/neovim/.config/nvim/coc.vim new file mode 100644 index 0000000..f73f4ff --- /dev/null +++ b/neovim/.config/nvim/coc.vim @@ -0,0 +1,161 @@ +" TextEdit might fail if hidden is not set. +set hidden + +" Some servers have issues with backup files, see #649. +set nobackup +set nowritebackup + +" Give more space for displaying messages. +set cmdheight=2 + +" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable +" delays and poor user experience. +set updatetime=300 + +" Don't pass messages to |ins-completion-menu|. +set shortmess+=c + +" Always show the signcolumn, otherwise it would shift the text each time +" diagnostics appear/become resolved. +if has("nvim-0.5.0") || has("patch-8.1.1564") + " Recently vim can merge signcolumn and number column into one + set signcolumn=number +else + set signcolumn=yes +endif + +" Use tab for trigger completion with characters ahead and navigate. +" NOTE: Use command ':verbose imap ' to make sure tab is not mapped by +" other plugin before putting this into your config. +inoremap + \ pumvisible() ? "\" : + \ check_back_space() ? "\" : + \ coc#refresh() +inoremap pumvisible() ? "\" : "\" + +function! s:check_back_space() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~# '\s' +endfunction + +" Use to trigger completion. +if has('nvim') + inoremap coc#refresh() +else + inoremap coc#refresh() +endif + +" Make auto-select the first completion item and notify coc.nvim to +" format on enter, could be remapped by other vim plugin +inoremap pumvisible() ? coc#_select_confirm() + \: "\u\\=coc#on_enter()\" + +" Use `[g` and `]g` to navigate diagnostics +" Use `:CocDiagnostics` to get all diagnostics of current buffer in location list. +nmap [g (coc-diagnostic-prev) +nmap ]g (coc-diagnostic-next) + +" GoTo code navigation. +nmap gd (coc-definition) +nmap gy (coc-type-definition) +nmap gi (coc-implementation) +nmap gr (coc-references) + +" Use K to show documentation in preview window. +nnoremap K :call show_documentation() + +function! s:show_documentation() + if (index(['vim','help'], &filetype) >= 0) + execute 'h '.expand('') + elseif (coc#rpc#ready()) + call CocActionAsync('doHover') + else + execute '!' . &keywordprg . " " . expand('') + endif +endfunction + +" Highlight the symbol and its references when holding the cursor. +autocmd CursorHold * silent call CocActionAsync('highlight') + +" Symbol renaming. +nmap rn (coc-rename) + +" Formatting selected code. +xmap f (coc-format-selected) +nmap f (coc-format-selected) + +augroup mygroup + autocmd! + " Setup formatexpr specified filetype(s). + autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') + " Update signature help on jump placeholder. + autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') +augroup end + +" Applying codeAction to the selected region. +" Example: `aap` for current paragraph +xmap a (coc-codeaction-selected) +nmap a (coc-codeaction-selected) + +" Remap keys for applying codeAction to the current buffer. +nmap ac (coc-codeaction) +" Apply AutoFix to problem on the current line. +nmap qf (coc-fix-current) + +" Map function and class text objects +" NOTE: Requires 'textDocument.documentSymbol' support from the language server. +xmap if (coc-funcobj-i) +omap if (coc-funcobj-i) +xmap af (coc-funcobj-a) +omap af (coc-funcobj-a) +xmap ic (coc-classobj-i) +omap ic (coc-classobj-i) +xmap ac (coc-classobj-a) +omap ac (coc-classobj-a) + +" Remap and for scroll float windows/popups. +if has('nvim-0.4.0') || has('patch-8.2.0750') + nnoremap coc#float#has_scroll() ? coc#float#scroll(1) : "\" + nnoremap coc#float#has_scroll() ? coc#float#scroll(0) : "\" + inoremap coc#float#has_scroll() ? "\=coc#float#scroll(1)\" : "\" + inoremap coc#float#has_scroll() ? "\=coc#float#scroll(0)\" : "\" + vnoremap coc#float#has_scroll() ? coc#float#scroll(1) : "\" + vnoremap coc#float#has_scroll() ? coc#float#scroll(0) : "\" +endif + +" Use CTRL-S for selections ranges. +" Requires 'textDocument/selectionRange' support of language server. +nmap (coc-range-select) +xmap (coc-range-select) + +" Add `:Format` command to format current buffer. +command! -nargs=0 Format :call CocAction('format') + +" Add `:Fold` command to fold current buffer. +command! -nargs=? Fold :call CocAction('fold', ) + +" Add `:OR` command for organize imports of the current buffer. +command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport') + +" Add (Neo)Vim's native statusline support. +" NOTE: Please see `:h coc-status` for integrations with external plugins that +" provide custom statusline: lightline.vim, vim-airline. +set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} + +" Mappings for CoCList +" Show all diagnostics. +nnoremap a :CocList diagnostics +" Manage extensions. +nnoremap e :CocList extensions +" Show commands. +nnoremap c :CocList commands +" Find symbol of current document. +nnoremap o :CocList outline +" Search workspace symbols. +nnoremap s :CocList -I symbols +" Do default action for next item. +nnoremap j :CocNext +" Do default action for previous item. +nnoremap k :CocPrev +" Resume latest coc list. +nnoremap p :CocListResume diff --git a/picom/.config/picom/picom.conf b/picom/.config/picom/picom.conf new file mode 100644 index 0000000..07d7ca8 --- /dev/null +++ b/picom/.config/picom/picom.conf @@ -0,0 +1,504 @@ +################################# +# Animations # +################################# +# requires https://github.com/jonaburg/picom +# (These are also the default values) +transition-length = 300 +transition-pow-x = 0.1 +transition-pow-y = 0.1 +transition-pow-w = 0.1 +transition-pow-h = 0.1 +size-transition = true + + +################################# +# Corners # +################################# +# requires: https://github.com/sdhand/compton or https://github.com/jonaburg/picom +corner-radius = 10.0; +rounded-corners-exclude = [ + #"window_type = 'normal'", + #"class_g = 'awesome'", + #"class_g = 'Alacritty'", + "class_g = 'Polybar'", + "class_g = 'code-oss'", + "! name~=''", +]; +round-borders = 1; +round-borders-exclude = [ + #"class_g = 'TelegramDesktop'", +]; + +################################# +# Shadows # +################################# + + +# Enabled client-side shadows on windows. Note desktop windows +# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, +# unless explicitly requested using the wintypes option. +# +# shadow = false +shadow = false; + +# The blur radius for shadows, in pixels. (defaults to 12) +# shadow-radius = 12 +shadow-radius = 7; + +# The opacity of shadows. (0.0 - 1.0, defaults to 0.75) +# shadow-opacity = .75 + +# The left offset for shadows, in pixels. (defaults to -15) +# shadow-offset-x = -15 +shadow-offset-x = -7; + +# The top offset for shadows, in pixels. (defaults to -15) +# shadow-offset-y = -15 +shadow-offset-y = -7; + +# Avoid drawing shadows on dock/panel windows. This option is deprecated, +# you should use the *wintypes* option in your config file instead. +# +# no-dock-shadow = false + +# Don't draw shadows on drag-and-drop windows. This option is deprecated, +# you should use the *wintypes* option in your config file instead. +# +# no-dnd-shadow = false + +# Red color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-red = 0 + +# Green color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-green = 0 + +# Blue color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-blue = 0 + +# Do not paint shadows on shaped windows. Note shaped windows +# here means windows setting its shape through X Shape extension. +# Those using ARGB background is beyond our control. +# Deprecated, use +# shadow-exclude = 'bounding_shaped' +# or +# shadow-exclude = 'bounding_shaped && !rounded_corners' +# instead. +# +# shadow-ignore-shaped = '' + +# Specify a list of conditions of windows that should have no shadow. +# +# examples: +# shadow-exclude = "n:e:Notification"; +# +# shadow-exclude = [] +shadow-exclude = [ + "name = 'Notification'", + "class_g = 'Conky'", + "class_g ?= 'Notify-osd'", + "class_g = 'Cairo-clock'", +# "class_g = 'slop'", +# "class_g = 'Polybar'", + "_GTK_FRAME_EXTENTS@:c" +]; + +# Specify a X geometry that describes the region in which shadow should not +# be painted in, such as a dock window region. Use +# shadow-exclude-reg = "x10+0+0" +# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on. +# +# shadow-exclude-reg = "" + +# Crop shadow of a window fully on a particular Xinerama screen to the screen. +# xinerama-shadow-crop = false + + +################################# +# Fading # +################################# + + +# Fade windows in/out when opening/closing and when opacity changes, +# unless no-fading-openclose is used. +# fading = false +fading = true; + +# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028) +# fade-in-step = 0.028 +fade-in-step = 0.03; + +# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03) +# fade-out-step = 0.03 +fade-out-step = 0.03; + +# The time between steps in fade step, in milliseconds. (> 0, defaults to 10) +# fade-delta = 10 + +# Specify a list of conditions of windows that should not be faded. +# don't need this, we disable fading for all normal windows with wintypes: {} +fade-exclude = [ + #"clss_g = 'slop'" # maim +] + +# Do not fade on window open/close. +# no-fading-openclose = false + +# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc. +# no-fading-destroyed-argb = false + + +################################# +# Transparency / Opacity # +################################# + + +# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0) +# inactive-opacity = 1 +inactive-opacity = 0.8; + +# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default) +# frame-opacity = 1.0 +frame-opacity = 0.7; + +# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0) +# menu-opacity = 1.0 +# menu-opacity is depreciated use dropdown-menu and popup-menu instead. + +#If using these 2 below change their values in line 510 & 511 aswell +popup_menu = { opacity = 0.8; } +dropdown_menu = { opacity = 0.8; } + + +# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows. +# inactive-opacity-override = true +inactive-opacity-override = false; + +# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0) +active-opacity = 1.0; + +# Dim inactive windows. (0.0 - 1.0, defaults to 0.0) +# inactive-dim = 0.0 + +# Specify a list of conditions of windows that should always be considered focused. +# focus-exclude = [] +focus-exclude = [ + "class_g = 'Cairo-clock'", + "class_g = 'Bar'", # lemonbar + "class_g = 'slop'" # maim +]; + +# Use fixed inactive dim value, instead of adjusting according to window opacity. +# inactive-dim-fixed = 1.0 + +# Specify a list of opacity rules, in the format `PERCENT:PATTERN`, +# like `50:name *= "Firefox"`. picom-trans is recommended over this. +# Note we don't make any guarantee about possible conflicts with other +# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows. +# example: +# opacity-rule = [ "80:class_g = 'URxvt'" ]; +# +# opacity-rule = [] +opacity-rule = [ + "80:class_g = 'Bar'", # lemonbar + #"100:class_g = 'slop'", # maim + "100:class_g = 'Alacritty'", + "80:class_g = 'Polybar'", + "100:class_g = 'code-oss'", + "100:class_g = 'Meld'", + "70:class_g = 'TelegramDesktop'", + "90:class_g = 'Joplin'", + "100:class_g = 'firefox'", + "100:class_g = 'Thunderbird'" +]; + + +################################# +# Background-Blurring # +################################# + + +# Parameters for background blurring, see the *BLUR* section for more information. +# blur-method = +# blur-size = 12 +# +# blur-deviation = false + +# Blur background of semi-transparent / ARGB windows. +# Bad in performance, with driver-dependent behavior. +# The name of the switch may change without prior notifications. +# +# blur-background = true; + +# Blur background of windows when the window frame is not opaque. +# Implies: +# blur-background +# Bad in performance, with driver-dependent behavior. The name may change. +# +# blur-background-frame = false; + + +# Use fixed blur strength rather than adjusting according to window opacity. +# blur-background-fixed = false; + + +# Specify the blur convolution kernel, with the following format: +# example: +# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; +# +# blur-kern = '' +# blur-kern = "3x3box"; + +blur: { + # requires: https://github.com/ibhagwan/picom + method = "kawase"; + #method = "kernel"; + strength = 7; + # deviation = 1.0; + # kernel = "11x11gaussian"; + background = false; + background-frame = false; + background-fixed = false; + kern = "3x3box"; +} + +# Exclude conditions for background blur. +blur-background-exclude = [ + #"window_type = 'dock'", + #"window_type = 'desktop'", + #"class_g = 'URxvt'", + # + # prevents picom from blurring the background + # when taking selection screenshot with `main` + # https://github.com/naelstrof/maim/issues/130 + "class_g = 'slop'", + "_GTK_FRAME_EXTENTS@:c" +]; + + +################################# +# General Settings # +################################# + +# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers. +# daemon = false + +# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`. +# `xrender` is the default one. +# +experimental-backends = true; +backend = "glx"; +#backend = "xrender"; + + +# Enable/disable VSync. +# vsync = false +vsync = true + +# Enable remote control via D-Bus. See the *D-BUS API* section below for more details. +# dbus = false + +# Try to detect WM windows (a non-override-redirect window with no +# child that has 'WM_STATE') and mark them as active. +# +# mark-wmwin-focused = false +mark-wmwin-focused = true; + +# Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused. +# mark-ovredir-focused = false +mark-ovredir-focused = true; + +# Try to detect windows with rounded corners and don't consider them +# shaped windows. The accuracy is not very high, unfortunately. +# +# detect-rounded-corners = false +detect-rounded-corners = true; + +# Detect '_NET_WM_OPACITY' on client windows, useful for window managers +# not passing '_NET_WM_OPACITY' of client windows to frame windows. +# +# detect-client-opacity = false +detect-client-opacity = true; + +# Specify refresh rate of the screen. If not specified or 0, picom will +# try detecting this with X RandR extension. +# +# refresh-rate = 60 +refresh-rate = 0 + +# Limit picom to repaint at most once every 1 / 'refresh_rate' second to +# boost performance. This should not be used with +# vsync drm/opengl/opengl-oml +# as they essentially does sw-opti's job already, +# unless you wish to specify a lower refresh rate than the actual value. +# +# sw-opti = + +# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window, +# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy, +# provided that the WM supports it. +# +# use-ewmh-active-win = false + +# Unredirect all windows if a full-screen opaque window is detected, +# to maximize performance for full-screen windows. Known to cause flickering +# when redirecting/unredirecting windows. paint-on-overlay may make the flickering less obvious. +# +# unredir-if-possible = false + +# Delay before unredirecting the window, in milliseconds. Defaults to 0. +# unredir-if-possible-delay = 0 + +# Conditions of windows that shouldn't be considered full-screen for unredirecting screen. +# unredir-if-possible-exclude = [] + +# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows +# in the same group focused at the same time. +# +# detect-transient = false +detect-transient = true + +# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same +# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if +# detect-transient is enabled, too. +# +# detect-client-leader = false +detect-client-leader = true + +# Resize damaged region by a specific number of pixels. +# A positive value enlarges it while a negative one shrinks it. +# If the value is positive, those additional pixels will not be actually painted +# to screen, only used in blur calculation, and such. (Due to technical limitations, +# with use-damage, those pixels will still be incorrectly painted to screen.) +# Primarily used to fix the line corruption issues of blur, +# in which case you should use the blur radius value here +# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`, +# with a 5x5 one you use `--resize-damage 2`, and so on). +# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly. +# +# resize-damage = 1 + +# Specify a list of conditions of windows that should be painted with inverted color. +# Resource-hogging, and is not well tested. +# +# invert-color-include = [] + +# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer. +# Might cause incorrect opacity when rendering transparent content (but never +# practically happened) and may not work with blur-background. +# My tests show a 15% performance boost. Recommended. +# +# glx-no-stencil = false + +# GLX backend: Avoid rebinding pixmap on window damage. +# Probably could improve performance on rapid window content changes, +# but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.). +# Recommended if it works. +# +# glx-no-rebind-pixmap = false + +# Disable the use of damage information. +# This cause the whole screen to be redrawn everytime, instead of the part of the screen +# has actually changed. Potentially degrades the performance, but might fix some artifacts. +# The opposing option is use-damage +# +# no-use-damage = false +#use-damage = true (Causing Weird Black semi opaque rectangles when terminal is opened) +#Changing use-damage to false fixes the problem +use-damage = false + +# Use X Sync fence to sync clients' draw calls, to make sure all draw +# calls are finished before picom starts drawing. Needed on nvidia-drivers +# with GLX backend for some users. +# +# xrender-sync-fence = false + +# GLX backend: Use specified GLSL fragment shader for rendering window contents. +# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl` +# in the source tree for examples. +# +# glx-fshader-win = '' + +# Force all windows to be painted with blending. Useful if you +# have a glx-fshader-win that could turn opaque pixels transparent. +# +# force-win-blend = false + +# Do not use EWMH to detect fullscreen windows. +# Reverts to checking if a window is fullscreen based only on its size and coordinates. +# +# no-ewmh-fullscreen = false + +# Dimming bright windows so their brightness doesn't exceed this set value. +# Brightness of a window is estimated by averaging all pixels in the window, +# so this could comes with a performance hit. +# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0) +# +# max-brightness = 1.0 + +# Make transparent windows clip other windows like non-transparent windows do, +# instead of blending on top of them. +# +# transparent-clipping = false + +# Set the log level. Possible values are: +# "trace", "debug", "info", "warn", "error" +# in increasing level of importance. Case doesn't matter. +# If using the "TRACE" log level, it's better to log into a file +# using *--log-file*, since it can generate a huge stream of logs. +# +# log-level = "debug" +log-level = "info"; + +# Set the log file. +# If *--log-file* is never specified, logs will be written to stderr. +# Otherwise, logs will to written to the given file, though some of the early +# logs might still be written to the stderr. +# When setting this option from the config file, it is recommended to use an absolute path. +# +# log-file = '/path/to/your/log/file' + +# Show all X errors (for debugging) +# show-all-xerrors = false + +# Write process ID to a file. +# write-pid-path = '/path/to/your/log/file' + +# Window type settings +# +# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard: +# "unknown", "desktop", "dock", "toolbar", "menu", "utility", +# "splash", "dialog", "normal", "dropdown_menu", "popup_menu", +# "tooltip", "notification", "combo", and "dnd". +# +# Following per window-type options are available: :: +# +# fade, shadow::: +# Controls window-type-specific shadow and fade settings. +# +# opacity::: +# Controls default opacity of the window type. +# +# focus::: +# Controls whether the window of this type is to be always considered focused. +# (By default, all window types except "normal" and "dialog" has this on.) +# +# full-shadow::: +# Controls whether shadow is drawn under the parts of the window that you +# normally won't be able to see. Useful when the window has parts of it +# transparent, and you want shadows in those areas. +# +# redir-ignore::: +# Controls whether this type of windows should cause screen to become +# redirected again after been unredirected. If you have unredir-if-possible +# set, and doesn't want certain window to cause unnecessary screen redirection, +# you can set this to `true`. +# +wintypes: +{ + normal = { fade = false; shadow = false; } + tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; }; + dock = { shadow = false; } + dnd = { shadow = false; } + popup_menu = { opacity = 0.8; } + dropdown_menu = { opacity = 0.8; } +}; diff --git a/pip-modules.txt b/pip-modules.txt index f175c91..e53f75f 100644 --- a/pip-modules.txt +++ b/pip-modules.txt @@ -2,115 +2,152 @@ alabaster==0.7.12 apipkg==1.5 appdirs==1.4.4 arandr==0.1.10 -asn1crypto==1.4.0 -astroid==2.4.2 -attrs==20.3.0 -Babel==2.9.0 +argh==0.26.2 +astroid==2.6.2 +attrs==21.2.0 +Babel==2.9.1 backcall==0.2.0 -btrfsutil==5.9 +borgbackup==1.1.17 +bsddb3==6.2.9 +btrfsutil==5.14.2 CacheControl==0.12.6 cairocffi==1.2.0 -certifi==2020.6.20 -cffi==1.14.4 -chardet==3.0.4 +certifi==2021.5.30 +cffi==1.14.6 +chardet==4.0.0 +charset-normalizer==2.0.3 colorama==0.4.4 -contextlib2==0.6.0.post1 -cryptography==3.3.1 +contextlib2==21.6.0 +cryptography==35.0.0 cupshelpers==1.0 -decorator==4.4.2 -distlib==0.3.1 -distro==1.5.0 +cycler==0.10.0 +debugpy==1.3.0 +decorator==5.0.9 +distlib==0.3.3 +distro==1.6.0 +dnspython==2.1.0 docopt==0.6.2 -docutils==0.16 -evdev==1.3.0 -gscreenshot==2.13.0 +docutils==0.17.1 +entrypoints==0.3 +evdev==1.4.0 +GDAL==3.3.1 +gramps==5.1.4 +greenlet==1.1.2 +gscreenshot==2.16.1 html5lib==1.1 -idna==2.10 +idna==3.2 imagesize==1.2.0 -importlib-metadata==3.3.0 +importlib-metadata==4.6.1 iniconfig==1.1.1 -ipykernel==5.3.4 -ipython==7.19.0 +ipykernel==6.0.2 +ipython==7.25.0 ipython-genutils==0.2.0 -isort==5.6.4 -jedi==0.17.2 -Jinja2==2.11.2 -jupyter-client==6.1.7 -jupyter-core==4.7.0 +isort==5.9.2 +jedi==0.18.0 +jeepney==0.7.1 +Jinja2==3.0.1 +jupyter-client==6.2.0 +jupyter-core==4.7.1 +keyring==23.0.1 keyutils==0.6 -lazy-object-proxy==1.4.3 +kiwisolver==1.3.2 +lazy-object-proxy==1.6.0 lensfun==0.3.95 -louis==3.16.0 -lutris==0.5.8.1 -lxml==4.6.2 -MarkupSafe==1.1.1 +lightdm-gtk-greeter-settings==1.2.2 +louis==3.19.0 +lutris==0.5.9.1 +lxml==4.6.3 +Markdown==3.3.4 +MarkupSafe==2.0.1 +matplotlib==3.4.2 +matplotlib-inline==0.1.2 mccabe==0.6.1 -meld==3.20.2 -more-itertools==8.6.0 +meld==3.20.4 +more-itertools==8.8.0 msgpack==1.0.2 -numpy==1.19.4 +neovim-remote==2.4.0 +nest-asyncio==1.5.1 +nordnm==0.8.1 +numpy==1.21.1 ordered-set==4.0.2 -packaging==20.8 -parso==0.7.1 -pep517==0.9.1 +OWSLib==0.24.1 +packaging==21.0 +parso==0.8.2 +pathtools==0.1.2 +pep517==0.11.0 pexpect==4.8.0 pickleshare==0.7.5 -pikaur==1.6.15 -Pillow==8.0.1 +pikaur==1.8 +Pillow==8.3.1 +Pivy==0.6.6 pluggy==0.13.1 ply==3.11 pockets==0.9.1 powerline-shell==0.7.0 -progress==1.5 -prompt-toolkit==3.0.8 +progress==1.6 +prompt-toolkit==3.0.19 psutil==5.8.0 -ptyprocess==0.6.0 +psycopg2==2.9.1 +ptyprocess==0.7.0 +pwquality==1.4.4 py==1.10.0 -pyalpm==0.9.2 -pycairo==1.20.0 +pyalpm==0.10.6 +pycairo==1.20.1 pycparser==2.20 pycups==2.0.1 -pycurl==7.43.0.6 -Pygments==2.7.3 -PyGObject==3.38.0 -pylint==2.6.0 +pycurl==7.44.1 +Pygments==2.9.0 +PyGObject==3.40.1 +pylint==2.9.3 +pympress==1.6.1 +pynvim==0.4.3 pyOpenSSL==20.0.1 pyparsing==2.4.7 -PyQt5==5.15.2 -PyQt5-sip==12.8.1 +pyproj==3.1.0 +PyQt5==5.15.5 +PyQt5-sip==12.9.0 pyserial==3.5 -pytest==6.2.1 -python-dateutil==2.8.1 -python-magic==0.4.18 -pytz==2020.5 -PyYAML==5.3.1 -pyzmq==20.0.0 -qtile==0.16.1 -requests==2.25.1 -resolvelib==0.5.4 +PySide2==5.15.2 +pytest==6.2.5 +python-dateutil==2.8.2 +python-magic==0.4.24 +python-vlc==3.0.12118 +pytz==2021.1 +PyYAML==5.4.1 +pyzmq==22.1.0 +QScintilla==2.13.1 +qtile==0.18.0 +requests==2.26.0 +resolvelib==0.7.1 retrying==1.3.3 -scipy==1.6.0 +scipy==1.7.1 +SecretStorage==3.3.1 Shapely==1.7.1 -sip==4.19.24 -six==1.15.0 -snowballstemmer==2.0.0 -Sphinx==3.4.2 +shiboken2==5.15.2 +sip==6.1.1 +six==1.16.0 +snowballstemmer==2.1.0 +Sphinx==4.1.1 sphinxcontrib-applehelp==1.0.2 sphinxcontrib-devhelp==1.0.2 -sphinxcontrib-htmlhelp==1.0.3 +sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-napoleon==0.7 sphinxcontrib-qthelp==1.0.3 -sphinxcontrib-serializinghtml==1.1.4 +sphinxcontrib-serializinghtml==1.1.5 team==1.0 toml==0.10.2 +tomli==1.0.4 tornado==6.1 traitlets==5.0.5 -udiskie==2.2.0 -urllib3==1.26.1 +trimesh==3.9.23 +udiskie==2.3.3 +urllib3==1.26.7 +watchdog==0.10.7 wcwidth==0.2.5 webencodings==0.5.1 wrapt==1.12.1 -wxPython==4.0.7.post2 +wxPython==4.1.1 xcffib==0.11.1 -zipp==3.4.0 +youtube-dl==2021.6.6 +zipp==3.6.0 diff --git a/pkglist.txt b/pkglist.txt index 2504348..9c6638c 100644 --- a/pkglist.txt +++ b/pkglist.txt @@ -4,60 +4,100 @@ alsa-tools alsa-utils amd-ucode android-studio +android-tools arandr +arduino +arduino-avr-core +arduino-cli +arduino-docs arm-none-eabi-binutils arm-none-eabi-gcc arm-none-eabi-gdb arm-none-eabi-newlib autoconf +autocutsel automake -balena-etcher +barrier base bdf-unifont +biber binutils bison bitwarden-rofi -breeze-gtk -breeze-icons +borg capitaine-cursors -chromium +cdrtools +cmatrix cronie cups cura +davfs2 discord dnsmasq dosfstools +downgrade drawio-desktop dunst efibootmgr eog evince exa +exfat-utils fakeroot +ffmpegthumbnailer firefox +flatpak flex +freecad gcc gimp git gitg +gnome-disk-utility gnome-keyring +goocanvas +gramps grub +gruvbox-dark-icons-gtk gscreenshot +gtk-theme-arc-gruvbox-git gutenprint -gvim +gvfs +gvfs-smb htop inkscape +jack2 jre-openjdk jre8-openjdk +kdeconnect +kdenlive kicad kicad-library kicad-library-3d +lib32-giflib +lib32-gnutls +lib32-gst-plugins-base-libs +lib32-gtk3 +lib32-libpulse +lib32-libva +lib32-libxcomposite +lib32-libxinerama +lib32-libxslt +lib32-mpg123 lib32-nvidia-utils +lib32-ocl-icd +lib32-openal +lib32-v4l-utils libgnome-keyring libnotify libreoffice-still +libreoffice-still-de +lightdm +lightdm-gtk-greeter +lightdm-gtk-greeter-settings linux linux-firmware +linux-lts linux-zen lshw lutris @@ -66,20 +106,30 @@ lxsession m4 make meld +minecraft-launcher mlocate moc mtools ncdu neofetch +neovim +nerd-fonts-complete +network-manager-applet networkmanager nextcloud-client nitrogen nmap +nordnm +npm +ntfs-3g numlockx nvidia +obs-studio +openmotif openocd openvpn os-prober +osm-gps-map p3x-onenote p7zip pamixer @@ -88,18 +138,23 @@ paprefs patch pavucontrol pcmanfm-gtk3 -picom +pdftk +picom-jonaburg-git pikaur pkgconf playerctl +playonlinux pulseaudio pulseaudio-alsa pulseaudio-ctl -pycharm-community-edition python-pip python-psutil +python-pympress +python-pynvim python-pytest python-subprocess2 +qalculate-gtk +qgis qt5-styleplugins qtile rapidsvn @@ -107,17 +162,25 @@ redshift redshiftgui-bin rofi rofi-calc +rpi-imager +shotwell +signal-desktop skypeforlinux-stable-bin slack-desktop +smbclient +spacenavd spotify +sshpass steam stlink stow subversion sudo +surf system-config-printer -teams -termite +teams-for-linux +teamviewer +telegram-desktop texinfo texlive-bibtexextra texlive-core @@ -131,8 +194,12 @@ texlive-pictures texlive-pstricks texlive-publishers texlive-science +texlive-tikz-uml thunderbird timeshift +tor-browser +transmission-gtk +tree ttf-dseg ttf-liberation ttf-ubuntu-font-family @@ -145,9 +212,17 @@ virtualbox virtualbox-host-modules-arch visual-studio-code-bin vlc +vlc-pause-click-plugin wd719x-firmware +wget +whatsapp-for-linux which -wine +wine-gecko +wine-mono +wine-staging +winetricks +wireguard-tools +woeusb-gui xarchiver xcb-util-cursor xclip @@ -204,5 +279,9 @@ xorg-xwd xorg-xwininfo xorg-xwud xterm +youtube-dl +zathura +zathura-pdf-poppler zip +zsh zvbi diff --git a/powerline-shell/.config/powerline-shell/theme.py b/powerline-shell/.config/powerline-shell/theme.py index 335a40a..97f9d3e 100644 --- a/powerline-shell/.config/powerline-shell/theme.py +++ b/powerline-shell/.config/powerline-shell/theme.py @@ -3,15 +3,15 @@ from powerline_shell.themes.default import DefaultColor class Color(DefaultColor): - USERNAME_FG = 250 + USERNAME_FG = 230 USERNAME_BG = 240 USERNAME_ROOT_BG = 124 - HOSTNAME_FG = 250 + HOSTNAME_FG = 230 HOSTNAME_BG = 238 HOME_SPECIAL_DISPLAY = True - HOME_BG = 31 # blueish + HOME_BG = 4 # blueish HOME_FG = 15 # white PATH_BG = 237 # dark grey PATH_FG = 250 # light grey @@ -68,4 +68,4 @@ class Color(DefaultColor): AWS_PROFILE_BG = 238 TIME_FG = 250 - TIME_BG = 238 \ No newline at end of file + TIME_BG = 238 diff --git a/qtile/.config/qtile/Custom_Widgets.py b/qtile/.config/qtile/Custom_Widgets.py index c8b3d3d..54133ff 100644 --- a/qtile/.config/qtile/Custom_Widgets.py +++ b/qtile/.config/qtile/Custom_Widgets.py @@ -5,7 +5,7 @@ import re from libqtile import widget, bar #region Custom_Memory -class MemoryC(widget.base.ThreadedPollText): +class MemoryC(widget.base.ThreadPoolText): orientations = widget.base.ORIENTATION_HORIZONTAL defaults = [ ("format", "{MemUsed}GB/{MemTotal}GB", "Formatting for field names."), @@ -13,13 +13,9 @@ class MemoryC(widget.base.ThreadedPollText): ] def __init__(self, **config): - super().__init__(**config) + super().__init__("", **config) self.add_defaults(MemoryC.defaults) - def tick(self): - self.update(self.poll()) - return self.update_interval - def poll(self): mem = psutil.virtual_memory() swap = psutil.swap_memory() @@ -108,9 +104,9 @@ class Mic(widget.base._TextBox): def _update_drawer(self): if self.emoji: if self.volume > 0: - self.text = '' + self.text = '' elif self.volume <= 0: - self.text = '' + self.text = '' else: if self.volume == -1: self.text = 'M' @@ -147,4 +143,4 @@ class Mic(widget.base._TextBox): def cmd_mute(self): # Emulate button press. self.button_press(0, 0, BUTTON_MUTE) -#endregion \ No newline at end of file +#endregion diff --git a/qtile/.config/qtile/Groups.py b/qtile/.config/qtile/Groups.py index 9fb8edd..472075a 100644 --- a/qtile/.config/qtile/Groups.py +++ b/qtile/.config/qtile/Groups.py @@ -30,8 +30,8 @@ groups.append( term + ' -e htop', ), DropDown( - 'sound',[[elektronik:Protokolle]] - 'pavucontrol'[[elektronik:Protokolle]] + 'sound', + 'pavucontrol' ), DropDown( 'filemanager', diff --git a/qtile/.config/qtile/Widgets.py b/qtile/.config/qtile/Widgets.py index 174f191..0c1c6e9 100644 --- a/qtile/.config/qtile/Widgets.py +++ b/qtile/.config/qtile/Widgets.py @@ -60,9 +60,7 @@ def Left_widgets(size,fontsize,prompt=False): urgent_alert_method='block', urgent_border = red_color, ), - widget.Spacer(), widget.WindowName(fontsize=fontsize-2), - widget.Spacer(), ] #endregion diff --git a/qtile/.config/qtile/autostart.sh b/qtile/.config/qtile/autostart.sh index 7ed5c6d..e8ff141 100755 --- a/qtile/.config/qtile/autostart.sh +++ b/qtile/.config/qtile/autostart.sh @@ -12,4 +12,4 @@ redshift-gtk -t 6500:3600 & udiskie -t & picom -b --experimental-backend & cbatticon & -nm-applet & \ No newline at end of file +nm-applet & diff --git a/qtile/.config/qtile/config.py b/qtile/.config/qtile/config.py index 7058cf7..f9d212b 100644 --- a/qtile/.config/qtile/config.py +++ b/qtile/.config/qtile/config.py @@ -1,5 +1,6 @@ import os import sys +import subprocess from libqtile import layout, bar, widget, hook from libqtile.config import Key, Drag, Click, Group, Screen, ScratchPad, DropDown @@ -17,15 +18,8 @@ from Screens import screens #region Hooks @hook.subscribe.startup_once def autostart(): - processes = [ - ['nitrogen','--restore'], - ['dunst'], - ['nextcloud'], - ['redshift-gtk'], - ['udiskie'] - ] - for process in processes: - subprocess.Popen(process) + home = os.path.expanduser('~/.config/qtile/autostart.sh') + subprocess.call([home]) #region miscelanious dgroups_key_binder = None diff --git a/qtile/.config/qtile/defines.py b/qtile/.config/qtile/defines.py index 37b786c..966b534 100644 --- a/qtile/.config/qtile/defines.py +++ b/qtile/.config/qtile/defines.py @@ -1,34 +1,36 @@ -term = 'termite' -focus_color = '#bd93f9' +term = 'alacritty' +focus_color = '#076678' border_width = 2 +window_margin = 5 mod = 'mod4' hotkey_file='/home/paul/Hotkeys' -main_screen_res = [3840,1440] -top_screen_res = [1440,780] +main_screen_res = [3440,1440] +top_screen_res = [1440,900] #region colors -light_foreground_color = ['#f8f8f2','#f8f8f2'] -dark_foreground_color = ['#282a36','#282a36'] -background_color0 = ['#000000','#000000'] -background_color8 = ['#4d4d4d','#4d4d4d'] -base_color = ['#101010','#101010'] +light_foreground_color = ['#fbf1c7','#fbf1c7'] +dark_foreground_color = ['#282828','#282828'] +background_color0 = ['#1d2021','#1d2021'] +background_color8 = ['#7c6f64','#7c6f64'] +base_color = background_color0 # red -red_color = ['#df253f','#df253f'] -light_red_color = ['#ff5555','#ff5555'] +red_color = ['#cc241d','#cc241d'] +light_red_color = ['#fb4934','#fb4934'] # green -green_color = ['#53a93f','#53a93f'] -light_green_color = ['#50fa7b','#50fa7b'] +green_color = ['#98971a','#98971a'] +light_green_color = ['#b8bb26','#b8bb26'] #orange -orange_color = ['#f57900','#f57900'] +orange_color = ['#d65d0e','#d65d0e'] # yellow -yellow_color = ['#f1fa8c','#f1fa8c'] +yellow_color = ['#d79921','#d79921'] +light_yellow_color = ['#fabd2f','#fabd2f'] #blue -blue_color = ['#7197e7','#7197e7'] +blue_color = ['#076678','#076678'] # purple -purple_color = ['#bd93f9','#bd93f9'] -light_purple_color = ['#caa9fa','#caa9fa'] +purple_color = ['#b16286','#b16286'] +light_purple_color = ['#d3869b','#d3869b'] # magenta magenta_color = ['#ff79c6','#ff79c6'] # cyan cyan_color = ['#8be9fd','#8be9fd'] -#endregion \ No newline at end of file +#endregion diff --git a/qtile/.config/qtile/screenshot.sh b/qtile/.config/qtile/screenshot.sh new file mode 100755 index 0000000..d43848b --- /dev/null +++ b/qtile/.config/qtile/screenshot.sh @@ -0,0 +1,2 @@ +#!/bin/bash +scrot -s '/tmp/screenshots/%F_%T_$wx$h.png' -e 'echo $f | xclip -selection clipboard -target text/uri-list -i' \ No newline at end of file diff --git a/qtile/.config/qtile/test.py b/qtile/.config/qtile/test.py index 3b05375..efb6fed 100644 --- a/qtile/.config/qtile/test.py +++ b/qtile/.config/qtile/test.py @@ -1,29 +1,6 @@ # This is a test file for anything. -screens = [] -main_screen_res = [3840,1440] -top_screen_res = [1440,780] - +import os import subprocess -import re -import numpy as np -cmd = ['xrandr'] -p = subprocess.Popen(cmd, stdout=subprocess.PIPE) -resolution_string, junk = p.communicate() -p.stdout.close() -screen_resolutions = [np.array(screen_res.split('x')).astype(np.int) for screen_res in re.findall('[0-9]+x[0-9]+(?=[^\\\\n]*\*)',str(resolution_string))] -number_of_screens = len(screen_resolutions) -max_width = max(screen_resolutions, key=lambda res: res[0])[0] -defined_main_window = False -for width, height in screen_resolutions: - if width == main_screen_res[0] and height == main_screen_res[1]: - screens+=['main_screen'] - defined_main_window = True - elif width == top_screen_res[0] and height == top_screen_res[1]: - screens+=['top_screen'] - elif width == max_width and not defined_main_window: - screens+=['laptop_screen'] - defined_main_window = True - else: - screens+=['peripheral_screen'] -print(screens) \ No newline at end of file +home = os.path.expanduser('~/.config/qtile/autostart.sh') +subprocess.call([home]) \ No newline at end of file diff --git a/rofi/.config/rofi/config.rasi b/rofi/.config/rofi/config.rasi index fc4ee9a..d494f1b 100644 --- a/rofi/.config/rofi/config.rasi +++ b/rofi/.config/rofi/config.rasi @@ -1,122 +1,62 @@ -/*Dracula theme based on the Purple official rofi theme*/ +/* ========================================================================== + Rofi color theme + + Based on the Gruvbox color scheme for Vim by morhetz + https://github.com/morhetz/gruvbox + + File: gruvbox-dark-hard.rasi + Desc: Gruvbox dark (hard contrast) color theme for Rofi + Author: bardisty + Source: https://github.com/bardisty/gruvbox-rofi + Modified: Mon Feb 12 2018 06:04:26 PST -0800 + ========================================================================== */ * { - font: "Ubuntu Mono 16"; - foreground: #f8f8f2; - background-color: #282a36; - active-background: #6272a4; - urgent-background: #ff5555; - selected-background: @active-background; - selected-urgent-background: @urgent-background; - selected-active-background: @active-background; - separatorcolor: @active-background; - bordercolor: @active-background; + font: "Ubuntu Mono Nerd Font 16"; + /* Theme settings */ + highlight: bold italic; + scrollbar: true; + + /* Gruvbox dark colors */ + gruvbox-dark-bg0-hard: #1d2021; + gruvbox-dark-bg0: #282828; + gruvbox-dark-bg2: #504945; + gruvbox-dark-fg0: #fbf1c7; + gruvbox-dark-fg1: #ebdbb2; + gruvbox-dark-red-dark: #cc241d; + gruvbox-dark-red-light: #fb4934; + gruvbox-dark-yellow-dark: #d79921; + gruvbox-dark-yellow-light: #fabd2f; + gruvbox-dark-gray: #a89984; + + /* Theme colors */ + background: @gruvbox-dark-bg0-hard; + background-color: @background; + foreground: @gruvbox-dark-fg1; + border-color: @gruvbox-dark-gray; + separatorcolor: @border-color; + scrollbar-handle: @border-color; + + normal-background: @background; + normal-foreground: @foreground; + alternate-normal-background: @gruvbox-dark-bg0; + alternate-normal-foreground: @foreground; + selected-normal-background: @gruvbox-dark-bg2; + selected-normal-foreground: @gruvbox-dark-fg0; + + active-background: @gruvbox-dark-yellow-dark; + active-foreground: @background; + alternate-active-background: @active-background; + alternate-active-foreground: @active-foreground; + selected-active-background: @gruvbox-dark-yellow-light; + selected-active-foreground: @active-foreground; + + urgent-background: @gruvbox-dark-red-dark; + urgent-foreground: @background; + alternate-urgent-background: @urgent-background; + alternate-urgent-foreground: @urgent-foreground; + selected-urgent-background: @gruvbox-dark-red-light; + selected-urgent-foreground: @urgent-foreground; } -#window { - background-color: @background; - border: 1; - border-radius: 6; - border-color: @bordercolor; - padding: 5; -} -#mainbox { - border: 0; - padding: 0; -} -#message { - border: 1px dash 0px 0px ; - border-color: @separatorcolor; - padding: 1px ; -} -#textbox { - text-color: @foreground; -} -#listview { - fixed-height: 0; - border: 2px dash 0px 0px ; - border-color: @bordercolor; - spacing: 2px ; - scrollbar: false; - padding: 2px 0px 0px ; -} -#element { - border: 0; - padding: 1px ; -} -#element.normal.normal { - background-color: @background; - text-color: @foreground; -} -#element.normal.urgent { - background-color: @urgent-background; - text-color: @urgent-foreground; -} -#element.normal.active { - background-color: @active-background; - text-color: @foreground; -} -#element.selected.normal { - background-color: @selected-background; - text-color: @foreground; -} -#element.selected.urgent { - background-color: @selected-urgent-background; - text-color: @foreground; -} -#element.selected.active { - background-color: @selected-active-background; - text-color: @foreground; -} -#element.alternate.normal { - background-color: @background; - text-color: @foreground; -} -#element.alternate.urgent { - background-color: @urgent-background; - text-color: @foreground; -} -#element.alternate.active { - background-color: @active-background; - text-color: @foreground; -} -#scrollbar { - width: 2px ; - border: 0; - handle-width: 8px ; - padding: 0; -} -#sidebar { - border: 2px dash 0px 0px ; - border-color: @separatorcolor; -} -#button.selected { - background-color: @selected-background; - text-color: @foreground; -} -#inputbar { - spacing: 0; - text-color: @foreground; - padding: 1px ; -} -#case-indicator { - spacing: 0; - text-color: @foreground; -} -#entry { - spacing: 0; - text-color: @foreground; -} -#prompt { - spacing: 0; - text-color: @foreground; -} -#inputbar { - children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; -} -#textbox-prompt-colon { - expand: false; - str: ":"; - margin: 0px 0.3em 0em 0em ; - text-color: @foreground; -} +@import "gruvbox-common.rasi" diff --git a/screen-layout/.screenlayout/layout.sh b/screen-layout/.screenlayout/layout.sh index e365681..79a2eab 100755 --- a/screen-layout/.screenlayout/layout.sh +++ b/screen-layout/.screenlayout/layout.sh @@ -1,2 +1,2 @@ #!/bin/sh -xrandr --output DVI-I-0 --primary --mode 1440x900 --pos 2080x0 --rotate normal --output DVI-I-1 --off --output HDMI-0 --mode 1920x1080 --pos 0x566 --rotate left --output DP-0 --off --output DP-1 --off --output DP-2 --mode 3440x1440 --pos 1080x900 --rotate normal --output DP-3 --off --output DP-4 --off --output DP-5 --off +xrandr --output DVI-I-0 --primary --mode 1440x900 --pos 2080x0 --rotate normal --output DVI-I-1 --off --output HDMI-0 --mode 1920x1080 --pos 0x660 --rotate left --output DP-0 --mode 3440x1440 --pos 1080x900 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --off --output DP-5 --off diff --git a/termite/.config/termite/config b/termite/.config/termite/config deleted file mode 100644 index 0e4ab16..0000000 --- a/termite/.config/termite/config +++ /dev/null @@ -1,42 +0,0 @@ -[options] -font = UbuntuMono 14 - -[colors] - -# special -foreground = #f8f8f2 -foreground_bold = #f8f8f2 -cursor = #f8f8f2 -background = rgba(40, 42, 54, 1) - -# black -color0 = #000000 -color8 = #4d4d4d - -# red -color1 = #ff5555 -color9 = #ff6e67 - -# green -color2 = #50fa7b -color10 = #5af78e - -# yellow -color3 = #f1fa8c -color11 = #f4f99d - -# blue -color4 = #bd93f9 -color12 = #caa9fa - -# magenta -color5 = #ff79c6 -color13 = #ff92d0 - -# cyan -color6 = #8be9fd -color14 = #9aedfe - -# white -color7 = #bfbfbf -color15 = #e6e6e6 \ No newline at end of file diff --git a/zathura/.config/zathura/zathurarc b/zathura/.config/zathura/zathurarc new file mode 100644 index 0000000..2967a32 --- /dev/null +++ b/zathura/.config/zathura/zathurarc @@ -0,0 +1 @@ +set synctex true diff --git a/zsh/.oh-my-zsh/custom/plugins/zsh-autosuggestions b/zsh/.oh-my-zsh/custom/plugins/zsh-autosuggestions new file mode 160000 index 0000000..a411ef3 --- /dev/null +++ b/zsh/.oh-my-zsh/custom/plugins/zsh-autosuggestions @@ -0,0 +1 @@ +Subproject commit a411ef3e0992d4839f0732ebeb9823024afaaaa8 diff --git a/zsh/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting b/zsh/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting new file mode 160000 index 0000000..dffe304 --- /dev/null +++ b/zsh/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit dffe304567c86f06bf1be0fce200077504e79783