diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index 5152ad4..fdbae12 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc @@ -1,20 +1,30 @@ -#! /bin/sh +#!/bin/sh +setxkbmap 'br(dvorak)' +hsetroot -solid '#202020' + +#env SXHKD_SHELL sxhkd & polybar main & picom & -bspc monitor -d I II III IV V VI VII VIII IX X +bspc monitor HDMI-1 -d I II III IV V VI VII VIII IX X +bspc config remove_disabled_monitors true bspc config border_width 2 -bspc config window_gap 12 +bspc config window_gap 5 bspc config split_ratio 0.52 bspc config borderless_monocle true bspc config gapless_monocle true +bspc config focus_follows_pointer true +# bspc config pointer_follows_focus true + +bspc config focused_border_color '#cc5757' + bspc rule -a Gimp desktop='^8' state=floating follow=on bspc rule -a Chromium desktop='^2' bspc rule -a mplayer2 state=floating diff --git a/bspwm/.config/sxhkd/sxhkdrc b/bspwm/.config/sxhkd/sxhkdrc index 23c53ef..16010ac 100644 --- a/bspwm/.config/sxhkd/sxhkdrc +++ b/bspwm/.config/sxhkd/sxhkdrc @@ -7,11 +7,11 @@ super + Return alacritty # program launcher -super + d - rofi -show drun +super + e + launcher # make sxhkd reload its configuration files: -super + Escape +super + alt + s pkill -USR1 -x sxhkd # @@ -42,9 +42,11 @@ super + g # state/flags # -# set the window state -super + {t,shift + t,s,f} - bspc node -t {tiled,pseudo_tiled,floating,fullscreen} +# # set the window state +# super + {t,shift + t,s,f} +# bspc node -t {tiled,pseudo_tiled,floating,fullscreen} +super + {space,f} + bspc node -t ~{floating,fullscreen} # set the node flags super + ctrl + {m,x,y,z} @@ -55,7 +57,7 @@ super + ctrl + {m,x,y,z} # # focus the node in the given direction -super + {_,shift + }{h,j,k,l} +super + {_,shift + }{h,t,n,s} bspc node -{f,s} {west,south,north,east} # focus the node for the given path jump @@ -88,21 +90,21 @@ super + {_,shift + }{1-9,0} # preselect # -# preselect the direction -super + ctrl + {h,j,k,l} - bspc node -p {west,south,north,east} +# # preselect the direction +# super + ctrl + {h,j,k,l} +# bspc node -p {west,south,north,east} -# preselect the ratio -super + ctrl + {1-9} - bspc node -o 0.{1-9} +# # preselect the ratio +# super + ctrl + {1-9} +# bspc node -o 0.{1-9} -# cancel the preselection for the focused node -super + ctrl + space - bspc node -p cancel +# # cancel the preselection for the focused node +# super + ctrl + space +# bspc node -p cancel -# cancel the preselection for the focused desktop -super + ctrl + shift + space - bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel +# # cancel the preselection for the focused desktop +# super + ctrl + shift + space +# bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel # # move/resize diff --git a/code/.config/Code - OSS/User/settings.json b/code/.config/Code - OSS/User/settings.json index f41c42e..62bd681 100644 --- a/code/.config/Code - OSS/User/settings.json +++ b/code/.config/Code - OSS/User/settings.json @@ -11,8 +11,7 @@ "workbench.editor.tabCloseButton": "off", "explorer.openEditors.visible": 0, "debug.openDebug": "openOnDebugBreak", - "debug.internalConsoleOptions": "none", - Don't ask + // Don't ask "git.autofetch": true, "git.confirmSync": false, "git.enableSmartCommit": true, @@ -26,6 +25,7 @@ "window.zoomLevel": 0, "vim.foldfix": true, "editor.minimap.renderCharacters": false, + "editor.lineNumbers": "relative", // Fonts "terminal.integrated.fontFamily": "'Fira Code', 'Hack', 'Roboto Mono'", "editor.fontFamily": "'Fira Code', 'Hack','Roboto Mono', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'", @@ -35,6 +35,167 @@ "vim.useSystemClipboard": true, "vim.enableNeovim": true, "vim.neovimPath": "/usr/bin/nvim", + "vim.normalModeKeyBindingsNonRecursive": [ + { + "before": [ + "t" + ], + "after": [ + "g", + "j" + ] + }, + { + "before": [ + "n" + ], + "after": [ + "g", + "k" + ] + }, + { + "before": [ + "h" + ], + "after": [ + "h" + ] + }, + { + "before": [ + "s" + ], + "after": [ + "l" + ] + }, + { + "before": [ + "S" + ], + "after": [ + "L" + ] + }, + { + "before": [ + "j" + ], + "after": [ + "s" + ] + }, + { + "before": [ + "J" + ], + "after": [ + "S" + ] + }, + { + "before": [ + "T" + ], + "after": [ + "J" + ] + }, + { + "before": [ + "l" + ], + "after": [ + "t" + ] + }, + { + "before": [ + "L" + ], + "after": [ + "T" + ] + }, + { + "before": [ + "k" + ], + "after": [ + "n" + ] + }, + { + "before": [ + "K" + ], + "after": [ + "N" + ] + }, + { + "before": [ + "" + ], + "after": [ + "" + ] + }, + { + "before": [ + "" + ], + "after": [ + "" + ] + }, + { + "before": [ + "" + ], + "after": [ + "o", + "" + ] + }, + ], + "vim.visualModeKeyBindingsNonRecursive": [ + { + "before": [ + "t" + ], + "after": [ + "g", + "j" + ] + }, + { + "before": [ + "n" + ], + "after": [ + "g", + "k" + ] + }, + { + "before": [ + "h" + ], + "after": [ + "h" + ] + }, + { + "before": [ + "s" + ], + "after": [ + "l" + ] + }, + ], "vim.normalModeKeyBindings": [ { "before": [ @@ -52,21 +213,13 @@ "commands": [ "workbench.action.showCommands" ] - }, - { - "before": [ - "t", - "t" - ], - "commands": [ - "workbench.action.terminal.focus" - ] } ], "materialTheme.accent": "Red", "workbench.iconTheme": "material-icon-theme", "material-icon-theme.folders.color": "#cc5757", "workbench.colorCustomizations": { + "editorLineNumber.activeForeground": "#cc5757", "minimap.selectionHighlight": "#CC5757", "editorCursor.background": "#fff", "editorCursor.foreground": "#cc5757dd", @@ -145,4 +298,4 @@ }, "workbench.startupEditor": "newUntitledFile", "workbench.colorTheme": "Community Material Theme Darker High Contrast" -} +} \ No newline at end of file diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 58bd73b..f1bdd71 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -12,19 +12,20 @@ set -x PATH $PATH ~/.local/bin set -x EDITOR nvim set -x VISUAL nvim -# set -x BROWSER=qutebrowser +set -x BROWSER qutebrowser set -x PAGER less if test -n "$XDG_VTRN"; and test -z "$DISPLAY" or command -qs systemctl;and systemctl -q is-enabled ly + export _JAVA_AWT_WM_NONREPARENTING=1 export GTK_CSD=0 - export LD_PRELOAD=/usr/lib/libgtk3-nocsd.so.0 + export LD_PRELOAD='/usr/lib/libgtk3-nocsd.so.0' export XCURSOR_THEME=capitaine-cursors export GTK_THEME=materia-custom-accent:dark # export XDG_CURRENT_DESKTOP=Unity - export QT_SCALE_FACTOR=1 + export QT_WAYLAND_FORCE_DPI=physical export QPA_PLATFORM=wayland export QT_QPA_PLATFORM=wayland end @@ -124,6 +125,9 @@ end set SPACEFISH_USER_SHOW always set SPACEFISH_USER_COLOR "#cc5757" set SPACEFISH_DIR_COLOR "#cc5757" + set SPACEFISH_USER_COLOR "#D9534F" + set SPACEFISH_DIR_COLOR "#D9534F" + set SPACEFISH_PROMPT_ADD_NEWLINE false set SPACEFISH_CHAR_COLOR_SUCCESS white diff --git a/i3/.config/polybar/config b/i3/.config/polybar/config index 4c3f4b8..e4015bd 100644 --- a/i3/.config/polybar/config +++ b/i3/.config/polybar/config @@ -113,7 +113,7 @@ label-urgent = %index%! label-urgent-background = ${colors.alert} label-urgent-padding = 2 -label-empty = %index% +label-empty = label-empty-foreground = ${colors.foreground-alt} label-empty-padding = 2 diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py index 10110fb..686037c 100644 --- a/qutebrowser/.config/qutebrowser/config.py +++ b/qutebrowser/.config/qutebrowser/config.py @@ -140,7 +140,7 @@ c.completion.shrink = True # CSS border value for hints. # Type: String -c.hints.border = '2px solid #cc5757' +c.hints.border = '2px solid #D9534F' # Characters used for hint strings. # Type: UniqueCharString @@ -219,7 +219,7 @@ c.colors.completion.category.bg = '#303030' # Background color of the selected completion item. # Type: QssColor -c.colors.completion.item.selected.bg = '#cc5757' +c.colors.completion.item.selected.bg = '#D9534F' # Top border color of the selected completion item. # Type: QssColor @@ -260,11 +260,11 @@ c.colors.hints.bg = '#303030' # Font color for the matched part of hints. # Type: QtColor -c.colors.hints.match.fg = '#cc5757' +c.colors.hints.match.fg = '#D9534F' # Highlight color for keys to complete the current keychain. # Type: QssColor -c.colors.keyhint.suffix.fg = '#cc5757' +c.colors.keyhint.suffix.fg = '#D9534F' # Background color of the keyhint widget. # Type: QssColor @@ -284,7 +284,7 @@ c.colors.statusbar.command.bg = '#202020' # Background color of the statusbar in caret mode with a selection. # Type: QssColor -c.colors.statusbar.caret.selection.bg = '#cc5757' +c.colors.statusbar.caret.selection.bg = '#D9534F' # Foreground color of the URL in the statusbar on successful load # (https). @@ -309,7 +309,7 @@ c.colors.tabs.selected.odd.fg = 'white' # Background color of selected odd tabs. # Type: QtColor -c.colors.tabs.selected.odd.bg = '#cc5757' +c.colors.tabs.selected.odd.bg = '#D9534F' # Foreground color of selected even tabs. # Type: QtColor @@ -317,7 +317,7 @@ c.colors.tabs.selected.even.fg = 'white' # Background color of selected even tabs. # Type: QtColor -c.colors.tabs.selected.even.bg = '#cc5757' +c.colors.tabs.selected.even.bg = '#D9534F' # Background color of pinned selected odd tabs. # Type: QtColor diff --git a/scripts/.local/bin/checkmail b/scripts/.local/bin/checkmail index d40c6a2..c942ffc 100755 --- a/scripts/.local/bin/checkmail +++ b/scripts/.local/bin/checkmail @@ -1,9 +1,19 @@ #!/bin/sh set -e +getnew(){ + find ~/.mail/INBOX{,.{Contas,Faculdade,Git,Trabalhos}}/new -type f | wc -l +} + +OLD=$(getnew) + [ "$1" = "update" ] && mbsync -a -NEW=$(find ~/.mail/INBOX{,.{Contas,Faculdade,Git,Trabalhos}}/new -type f | wc -l) +NEW=$(getnew) + +if [ "$NEW" -gt "$OLD" ];then + notify-send "Novos Emails!" +fi echo $NEW | sed 's/^0$//' diff --git a/scripts/.local/bin/windows10 b/scripts/.local/bin/windows10 index 92a1a9a..d66c801 100755 --- a/scripts/.local/bin/windows10 +++ b/scripts/.local/bin/windows10 @@ -10,10 +10,11 @@ end # -nic none\ # -usb -device usb-tablet \ -qemu-system-x86_64 \ - -enable-kvm \ - -m 2G \ - -display sdl,gl=on \ - -audiodev pa,id=pa\ - -drive file="$HOME/.local/share/windows10.img",format=raw \ - & disown +qemu-system-x86_64 \ + -enable-kvm \ + -m 4G \ + -cpu host \ + -smp (nproc) \ + -display sdl,gl=on \ + -audiodev pa,id=pa \ + -drive file="$HOME/.local/share/windows10.img",format=raw diff --git a/scripts/.local/bin/wpass b/scripts/.local/bin/wpass index 863f16f..7a65f9b 100755 --- a/scripts/.local/bin/wpass +++ b/scripts/.local/bin/wpass @@ -25,7 +25,11 @@ entry=$(printf '%s\n' "${password_files[@]}" | username=$( pass show "$entry" 2>/dev/null | perl -ne 'print $1 if /^login: (.*)/' ) password=$( pass show "$entry" 2>/dev/null | head -n 1 ) -case $(echo -e "Autotype\nUsername -> $username\nPassword" | wdmenu -p Action) in +action=$(echo -e "Autotype\nUsername -> $username\nPassword" | wdmenu -p Action) + +swaymsg input \* xkb_layout 'us' + +case $action in Autotype) ydotool type "$username" ydotool key tab @@ -36,3 +40,5 @@ case $(echo -e "Autotype\nUsername -> $username\nPassword" | wdmenu -p Action) i Password) printf '%s' "$password" | wl-copy;; esac + +swaymsg input \* xkb_layout 'br(dvorak)' diff --git a/sway/.config/sway/config b/sway/.config/sway/config index c10c3e9..6cf11bf 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -248,7 +248,7 @@ # }}} # Visual: {{{ # - set $accent #CC575D + set $accent #D9534F set $fg_color #ffffff set $bg_color #191919 set $bg_darker #151515 @@ -264,13 +264,13 @@ # bar { # icon_theme Papirus - # position top - # gaps 5px - # colors { - # background $bg_color - # focused_workspace $accent $bg_color $fg_color - # } - # } + # position top + # gaps 5px + # colors { + # background $bg_color + # focused_workspace $accent $bg_color $fg_color + # } + # } default_border pixel 2px gaps inner 5px diff --git a/sway/.config/waybar/style.css b/sway/.config/waybar/style.css index a877ad4..e5cde95 100644 --- a/sway/.config/waybar/style.css +++ b/sway/.config/waybar/style.css @@ -27,7 +27,7 @@ window#waybar.empty { } #workspaces button.focused { - border-top: 3px solid #cc5757; + border-top: 3px solid #D9534F; border-bottom: 3px solid transparent; color: #ffffff; }