config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 77409fb4f33379e56ca735e1dfbbc52f73ba3c62
parent 452b8b41c59dc5801f2a46cb6abb47e08d9e0fbb
Author: jacobsGit <JacobDoesLinux@protonmail.com>
Date:   Sat, 21 Dec 2019 12:12:40 -0800

dotfiles

Diffstat:
Mdunst/.config/dunst/dunstrc | 18+++++++++---------
Mkitty/.config/kitty/kitty.conf | 4++--
Msxhkd/.config/sxhkd/sxhkdrc | 11++++++++---
Mvim/.vimrc | 4+++-
Mxinitrc-laptop/.xinitrc | 20+++++++++++++-------
Mxmobar/.xmobar/xmb-battery | 7++++++-
Mxmonad/.xmonad/xmonad-x86_64-linux | 0
Mxmonad/.xmonad/xmonad.errors | 33++++++++++++++++++++-------------
Mxmonad/.xmonad/xmonad.hs | 33+++++++++++++++++----------------
Mxmonad/.xmonad/xmonad.o | 0
Mzsh/.zshrc | 28++++++++++++++++------------
11 files changed, 94 insertions(+), 64 deletions(-)

diff --git a/dunst/.config/dunst/dunstrc b/dunst/.config/dunst/dunstrc @@ -14,7 +14,7 @@ # width is 0. shrink = yes - transparency = 0 + transparency = 0 # The height of the entire notification. If the height is smaller # than the font height and padding combined, it will be raised @@ -80,7 +80,7 @@ ignore_newline = no stack_duplicates = true - hide_duplicate_count = false + hide_duplicate_count = true # Display indicators for URLs (U) and actions (A). show_indicators = yes @@ -142,7 +142,7 @@ # corners. # The radius will be automatically lowered if it exceeds half of the # notification height to avoid clipping text and/or icons. - corner_radius = 1 + corner_radius = 1 ### Legacy @@ -223,7 +223,7 @@ background = "#000000" foreground = "#ff1111" frame_color = "#000000" - timeout = 0 + timeout = 30 # Icon for notifications with critical urgency, uncomment to enable #icon = /path/to/icon @@ -289,11 +289,11 @@ # If the notification is already drawn, it won't get undrawn. # pushback: same as delay, but when switching into fullscreen, the notification will get # withdrawn from screen again and will get delayed like a new notification -#[fullscreen_delay_everything] -# fullscreen = delay -#[fullscreen_show_critical] -# msg_urgency = critical -# fullscreen = show +[fullscreen_delay_everything] + fullscreen = pushback +[fullscreen_show_critical] + msg_urgency = critical + fullscreen = show #[espeak] # summary = "*" diff --git a/kitty/.config/kitty/kitty.conf b/kitty/.config/kitty/kitty.conf @@ -434,7 +434,7 @@ tab_fade 0.25 0.5 0.75 1 #: can change the number of cells used by adding/removing entries to #: this list. -tab_separator " ┇" +tab_separator " ┇" #: The separator between tabs in the tab bar when using separator as #: the tab_bar_style. @@ -464,7 +464,7 @@ background #111111 #: The foreground and background colors -background_opacity 1 +background_opacity .6 #: The opacity of the background. A number between 0 and 1, where 1 is #: opaque and 0 is fully transparent. This will only work if diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc @@ -1,8 +1,5 @@ # sxkhd config shift + alt + Return - "$TERMINAL" -e tmux -2u - -shift + alt + k "$TERMINAL" shift + alt + m @@ -46,3 +43,11 @@ super + s alt + shift + q wmctrl -c :ACTIVE: + +ctrl + shift + c + toggle 'xcompmgr' +fi + +ctrl + shift + m + toggle 'mpd' +fi diff --git a/vim/.vimrc b/vim/.vimrc @@ -21,9 +21,11 @@ Plugin 'dusans/vim-hardmode' " Plugin 'vim-airline/vim-airline' Plugin 'mbbill/undotree' Plugin 'severin-lemaignan/vim-minimap' +Plugin 'konfekt/vim-detectspelllang' call vundle#end() " required filetype plugin indent on " required +let g:guesslang_langs = [ 'en_US', 'es' ] unlet! skip_defaults_vim source $VIMRUNTIME/defaults.vim @@ -44,7 +46,7 @@ set mouse="" " Visual "set colorcolumn=81 -set tabstop=2 +set tabstop=4 set shiftwidth=2 set nowrap diff --git a/xinitrc-laptop/.xinitrc b/xinitrc-laptop/.xinitrc @@ -1,5 +1,4 @@ #!/bin/sh vim: foldmethod=marker - #{{{ userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap @@ -34,13 +33,20 @@ fi PATH="/home/jacob/.xmobar/scripts/:$PATH" export PATH #}}} -$HOME/bin/color-sync #14 -xsetroot -xcf ~/.icons/Quintom/cursors/left_ptr 1 & # cursor -xwallpaper --zoom $HOME/.wallpaper # wallpaper -# xcompmgr & # compositing -dunst & # notifications -sxhkd & # keybinding + +xsetroot -xcf ~/.icons/Quintom/cursors/left_ptr 13 & +xwallpaper --zoom $HOME/.wallpaper & +xcompmgr & +xbanish & + + +#/usr/bin/gnome-keyring-daemon & # lbry + + +mpd-notification & +dunst & +sxhkd & #exec bspwm exec xmonad diff --git a/xmobar/.xmobar/xmb-battery b/xmobar/.xmobar/xmb-battery @@ -5,7 +5,7 @@ #batteryP -O option would not work suspendAt=10 # percent -suspendDelay=30 # in seconds +suspendDelay=130 # in seconds batteryPrefix='-' batterySuffix='%%' @@ -48,7 +48,12 @@ fi if [[ "$percentage" -le "$suspendAt" ]] && [[ "$status" = 'off-line' ]]; then + brightness="$(xbacklight -get)" + xbacklight -set 0 -time 0 + notify-send " suspending in $suspendDelay seconds due to low battery " + sleep .1 + xbacklight -set "$brightness" -time 120 sleep "$suspendDelay" status="$(acpi -a | awk '{print $3}')" diff --git a/xmonad/.xmonad/xmonad-x86_64-linux b/xmonad/.xmonad/xmonad-x86_64-linux Binary files differ. diff --git a/xmonad/.xmonad/xmonad.errors b/xmonad/.xmonad/xmonad.errors @@ -7,33 +7,40 @@ xmonad.hs:14:12: warning: [-Wdeprecations] 14 | myConfig = defaultConfig | ^^^^^^^^^^^^^ -xmonad.hs:41:42: warning: [-Wdeprecations] +xmonad.hs:41:46: warning: [-Wdeprecations] In the use of `spacing' (imported from XMonad.Layout.Spacing): Deprecated: "Use spacingRaw instead." | -41 | gaps [(L,0), (R,0), (U,0), (D,0)] $ spacing 0 $ Tall 1 (3/100) (1/2) ||| - | ^^^^^^^ +41 | gaps [(L,25), (R,25), (U,25), (D,25)] $ spacing 0 $ Tall 1 (3/100) (1/2) ||| + | ^^^^^^^ -xmonad.hs:82:101: warning: [-Wdeprecations] +xmonad.hs:68:1: warning: [-Wtabs] + Tab character found here. + Please use spaces instead. + | +68 | , ((controlMask, xK_equal), (decWindowSpacing 8)) + | ^^^^^^^^ + +xmonad.hs:83:86: warning: [-Wdeprecations] In the use of `defaultConfig' (imported from XMonad, but defined in XMonad.Config): Deprecated: "Use def (from Data.Default, and re-exported by XMonad and XMonad.Config) instead." | -82 | [((myModMask , k), (windows $ S.greedyView i)) | (i, k) <- zip (XMonad.workspaces defaultConfig) [xK_q, xK_w, xK_e, xK_o, xK_p ]]++ - | ^^^^^^^^^^^^^ +83 | [((myModMask, k), (windows $ S.greedyView i)) | (i, k) <- zip (XMonad.workspaces defaultConfig) [xK_q, xK_w, xK_e, xK_o, xK_p ]]++ + | ^^^^^^^^^^^^^ -xmonad.hs:83:131: warning: [-Wdeprecations] +xmonad.hs:84:116: warning: [-Wdeprecations] In the use of `defaultConfig' (imported from XMonad, but defined in XMonad.Config): Deprecated: "Use def (from Data.Default, and re-exported by XMonad and XMonad.Config) instead." | -83 | [((mod4Mask , k), (windows $ S.shift i ) >> (windows $ S.greedyView i)) | (i, k) <- zip (XMonad.workspaces defaultConfig) [xK_q, xK_w, xK_e, xK_o, xK_p ] - | ^^^^^^^^^^^^^ +84 | [((mod4Mask, k), (windows $ S.shift i ) >> (windows $ S.greedyView i)) | (i, k) <- zip (XMonad.workspaces defaultConfig) [xK_q, xK_w, xK_e, xK_o, xK_p ] + | ^^^^^^^^^^^^^ -xmonad.hs:99:78: warning: [-Wdeprecations] +xmonad.hs:100:78: warning: [-Wdeprecations] In the use of `defaultConfig' (imported from XMonad, but defined in XMonad.Config): Deprecated: "Use def (from Data.Default, and re-exported by XMonad and XMonad.Config) instead." - | -99 | myManageHook = manageDocks <+> (isFullscreen --> doFullFloat) <+> manageHook defaultConfig - | ^^^^^^^^^^^^^ + | +100 | myManageHook = manageDocks <+> (isFullscreen --> doFullFloat) <+> manageHook defaultConfig + | ^^^^^^^^^^^^^ diff --git a/xmonad/.xmonad/xmonad.hs b/xmonad/.xmonad/xmonad.hs @@ -15,7 +15,7 @@ myConfig = defaultConfig myModMask = mod1Mask -myBorderWidth = 1 +myBorderWidth = 2 myNormalBorderColor = "#000000" myFocusedBorderColor = "#111195" @@ -38,7 +38,7 @@ myPP = xmobarPP { ppCurrent = xmobarColor "#000000" "#dddddd" . wrap " " " " myLayoutHook = avoidStruts ( - gaps [(L,0), (R,0), (U,0), (D,0)] $ spacing 0 $ Tall 1 (3/100) (1/2) ||| + gaps [(L,25), (R,25), (U,25), (D,25)] $ spacing 0 $ Tall 1 (3/100) (1/2) ||| noBorders (fullscreenFull Full)) @@ -64,23 +64,24 @@ myKeys conf = M.fromList $ , ((myModMask , xK_period ), sendMessage (IncMasterN (-1))) , ((myModMask , xK_z ), restart "xmonad" True) -- gaps -- - , ((myModMask .|. controlMask, xK_minus), (incWindowSpacing 8)) - , ((myModMask .|. controlMask, xK_equal), (decWindowSpacing 8)) - , ((mod4Mask .|. myModMask .|. controlMask, xK_minus), (incWindowSpacing 8) >> (sendMessage $ IncGap 25 R) >> (sendMessage $ IncGap 25 L)) - , ((mod4Mask .|. myModMask .|. controlMask, xK_equal), (decWindowSpacing 8) >> (sendMessage $ DecGap 25 R) >> (sendMessage $ DecGap 25 L)) - -- left/right -- - , ((myModMask .|. controlMask, xK_bracketleft), (sendMessage $ IncGap 150 R) >> (sendMessage $ DecGap 150 L)) - , ((myModMask .|. controlMask, xK_bracketright), (sendMessage $ DecGap 150 R) >> (sendMessage $ IncGap 150 L)) - , ((myModMask .|. controlMask, xK_bracketright), (sendMessage $ DecGap 150 R) >> (sendMessage $ IncGap 150 L)) + , ((controlMask, xK_minus), (incWindowSpacing 8)) + , ((controlMask, xK_equal), (decWindowSpacing 8)) + , ((mod1Mask, xK_equal), (sendMessage $ DecGap 8 R) >> (sendMessage $ DecGap 8 L) >> (sendMessage $ DecGap 8 U) >> (sendMessage $ DecGap 8 D)) + , ((mod1Mask, xK_minus), (sendMessage $ IncGap 8 R) >> (sendMessage $ IncGap 8 L) >> (sendMessage $ IncGap 8 U) >> (sendMessage $ IncGap 8 D)) + , ((mod4Mask, xK_equal), (decWindowSpacing 8) >> (sendMessage $ DecGap 8 R) >> (sendMessage $ DecGap 8 L) >> (sendMessage $ DecGap 8 U) >> (sendMessage $ DecGap 8 D)) + , ((mod4Mask, xK_minus), (incWindowSpacing 8) >> (sendMessage $ IncGap 8 R) >> (sendMessage $ IncGap 8 L) >> (sendMessage $ IncGap 8 U) >> (sendMessage $ IncGap 8 D)) + -- toggle -- + , ((mod4Mask, xK_0), (sendMessage $ ToggleGaps) >> (toggleWindowSpacingEnabled)) + , ((mod1Mask, xK_0), (sendMessage $ ToggleGaps)) + , ((controlMask, xK_0), (toggleWindowSpacingEnabled)) -- reset -- - , ((mod4Mask .|. myModMask .|. controlMask, xK_0 ), (sendMessage $ ToggleGaps) >> (toggleWindowSpacingEnabled)) - , ((myModMask .|. controlMask, xK_0), (sendMessage $ ToggleGaps) >> (toggleWindowSpacingEnabled)) - , ((myModMask .|. controlMask, xK_backslash), (setScreenWindowSpacing 0) >> (sendMessage $ setGaps [(L,0), (R,0), (U,0), (D,0)])) - , ((mod4Mask .|. myModMask .|. controlMask, xK_backslash), (setScreenWindowSpacing 0) >> (sendMessage $ setGaps [(L,0), (R,0), (U,0), (D,0)])) + , ((mod1Mask, xK_backslash), (setScreenWindowSpacing 0) >> (sendMessage $ setGaps [(L,0), (R,0), (U,0), (D,0)])) + , ((mod4Mask, xK_backslash), (setScreenWindowSpacing 0) >> (sendMessage $ setGaps [(L,0), (R,0), (U,0), (D,0)])) + , ((controlMask, xK_backslash), (setScreenWindowSpacing 0) >> (sendMessage $ setGaps [(L,0), (R,0), (U,0), (D,0)])) ]++ -- workspaces -- - [((myModMask , k), (windows $ S.greedyView i)) | (i, k) <- zip (XMonad.workspaces defaultConfig) [xK_q, xK_w, xK_e, xK_o, xK_p ]]++ - [((mod4Mask , k), (windows $ S.shift i ) >> (windows $ S.greedyView i)) | (i, k) <- zip (XMonad.workspaces defaultConfig) [xK_q, xK_w, xK_e, xK_o, xK_p ] + [((myModMask, k), (windows $ S.greedyView i)) | (i, k) <- zip (XMonad.workspaces defaultConfig) [xK_q, xK_w, xK_e, xK_o, xK_p ]]++ + [((mod4Mask, k), (windows $ S.shift i ) >> (windows $ S.greedyView i)) | (i, k) <- zip (XMonad.workspaces defaultConfig) [xK_q, xK_w, xK_e, xK_o, xK_p ] ] diff --git a/xmonad/.xmonad/xmonad.o b/xmonad/.xmonad/xmonad.o Binary files differ. diff --git a/zsh/.zshrc b/zsh/.zshrc @@ -2,6 +2,8 @@ source "$HOME/.profile" #>completion {{{ alias ls='ls --color=always --group-directories-first' + +fpath=(~/.zsh/completion $fpath) autoload autoload -Uz compinit zmodload zsh/complist @@ -30,6 +32,7 @@ bindkey -v bindkey "^[[1;5C" forward-word #crtl+left bindkey "^[[1;5D" backward-word #crtl+rigth +WORDCHARS='*?_-.[]~=&;!#$%^(){}<>' bindkey '^H' backward-delete-word #crtl+backspace typeset -g -A key @@ -61,7 +64,6 @@ key[ShiftTab]="${terminfo[kcbt]}" [[ -n "${key[PageDown]}" ]] && bindkey -- "${key[PageDown]}" end-of-buffer-or-history [[ -n "${key[ShiftTab]}" ]] && bindkey -- "${key[ShiftTab]}" reverse-menu-complete [[ -n "${key[Ctrl+Backspace]}" ]] && bindkey -- "${key[Crtl+Backspace]}" delete-word -[[ -n "${key[Ctrl+Backspace]}" ]] && bindkey -- "${key[Crtl+Backspace]}" delete-word if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then @@ -79,13 +81,13 @@ fi #>history {{{ HISTFILE=~/.histfile -HISTSIZE=5000 -SAVEHIST=1000 +HISTSIZE=15000 +SAVEHIST=15000 # }}} #>alias {{{ # expansion funciton - typeset -a ealiases + typeset -a ealiases ealiases=() function ealias() @@ -111,15 +113,19 @@ SAVEHIST=1000 # end ealias diff=' diff -Naur' + alias grep='grep --color' + alias sudo='sudo -E' alias mv='mv --no-clobber' alias cp='cp --no-clobber' + alias standby='xset dpms force standby' + alias suspend='systemctl suspend' alias hibernate='systemctl hibernate' alias restart='sudo systemctl restart' alias pacman='pacman-colors' - alias ls='ls --color=always --group-directories-first' + alias ls='ls --hide 'Downloads' --color=always --group-directories-first' function icat() { kitty +kitten icat "$@" } function dp() { xrandr --output DP-4 --brightness .$1 } @@ -149,14 +155,12 @@ SAVEHIST=1000 # simple oneline -PROMPT='%?%F{4} ->%f' -RPROMPT='%F{4}[%f%F{109}%~%F{4}]%f' - +#PROMPT='%?%F{4} ->%f' +#RPROMPT='%F{4}[%f%F{109}%~%F{4}]%f' -# minimal -#RPROMPT='' -#PROMPT='%?%F{1}[%F{109}%~%F{1}]%f -#' +# round minimal prompt +PROMPT='%F{4}(%f%~%F{4})%f ' +RPROMPT='' # }}}