Compare commits

...

19 Commits

Author SHA1 Message Date
lelgenio ec19c3cc81 indent just like every other file type 2020-12-06 22:22:30 -03:00
lelgenio d293d3167f add russian keyboard layout 2020-12-06 22:13:02 -03:00
lelgenio 5aaeeaa8d1 minimal settings 2020-12-06 22:12:47 -03:00
lelgenio 7184ad6bc5 minor style changes 2020-12-06 22:12:21 -03:00
lelgenio c0ab038414 fix indentation 2020-12-06 22:11:58 -03:00
lelgenio 41a6bcfc47 use LLVM, default 2020-12-06 22:11:26 -03:00
lelgenio 338dc1f627 add tabs option 2020-12-06 22:10:51 -03:00
lelgenio f951ae3f5f add TMUX toggle 2020-12-06 22:06:08 -03:00
lelgenio 2e3a3f572c don't error out when entering .git 2020-12-06 22:05:14 -03:00
lelgenio 406dced465 waybar: new sway keyboard layout indicator 2020-12-06 22:04:29 -03:00
lelgenio 5e57479a7c format 2020-12-06 22:03:05 -03:00
lelgenio 963f605679 fix parameters for kitty 2020-12-06 22:01:37 -03:00
lelgenio c2618dc8ea bind to code 2020-12-06 13:47:37 -03:00
lelgenio 43f78e265e only use vi mode if using vim 2020-12-05 21:38:35 -03:00
lelgenio 4497c3915a assign Jitsi to ws10 2020-12-05 21:31:07 -03:00
lelgenio 71f72e656d add emacs-like insert mode 2020-12-05 21:26:01 -03:00
lelgenio 9bf55a4d06 Only update kitty if using kitty 2020-12-04 17:40:10 -03:00
lelgenio e3d2394149 add vscode 2020-12-04 00:23:34 -03:00
lelgenio daebb1b16b update mutt config 2020-12-03 23:53:41 -03:00
24 changed files with 526 additions and 326 deletions

View File

@ -9,372 +9,380 @@
variables:
###############################################################
username: lelgenio
mail: disroot.org
cursor_size: 24
editor: kak
key_layout: colemak
launcher: bmenu
terminal: kitty
file_manager: thunar
bar: waybar
bar_pos: top
username: lelgenio
mail: disroot.org
cursor_size: 24
editor: kak
tabs: true
key_layout: colemak
launcher: bmenu
terminal: alacritty
file_manager: thunar
bar: waybar
bar_pos: top
tmux: false
font:
mono: FiraCode Nerd Font
interface: Inter
size:
small: 12
medium: 14
big: 16
font:
mono: Hack
interface: Inter
size:
small: 12
medium: 14
big: 16
###############################################################
profiles:
###############################################################
dark:
variables:
opacity: 0.98
dark:
variables:
opacity: 0.98
color:
type: dark
bg: '#202020'
bg_light: '#404040'
bg_dark: '#191919'
txt: '#FFFFFF'
nontxt: '#252525'
color:
type: dark
bg: '#202020'
bg_light: '#404040'
bg_dark: '#191919'
txt: '#FFFFFF'
nontxt: '#252525'
normal:
black: '#404040'
red: '#AB4642'
green: '#A1B56C'
yellow: '#E6C547'
blue: '#6C99DA'
magenta: '#C397D8'
cyan: '#70C0BA'
white: '#EAEAEA'
normal:
black: '#404040'
red: '#AB4642'
green: '#A1B56C'
yellow: '#E6C547'
blue: '#6C99DA'
magenta: '#C397D8'
cyan: '#70C0BA'
white: '#EAEAEA'
light:
variables:
opacity: 0.95
light:
variables:
opacity: 0.95
color:
type: light
bg: '#FAFAFA'
bg_light: '#A0A0A0'
bg_dark: '#EAEAEA'
txt: '#303030'
nontxt: '#E0E0E0'
color:
type: light
bg: '#FAFAFA'
bg_light: '#A0A0A0'
bg_dark: '#EAEAEA'
txt: '#303030'
nontxt: '#E0E0E0'
normal:
black: '#555555'
red: '#D54E53'
green: '#008800'
yellow: '#DBB704'
blue: '#0D68A8'
magenta: '#C397D8'
cyan: '#00A0A5'
white: '#FFFFFF'
normal:
black: '#555555'
red: '#D54E53'
green: '#008800'
yellow: '#DBB704'
blue: '#0D68A8'
magenta: '#C397D8'
cyan: '#00A0A5'
white: '#FFFFFF'
###############################################################
# Accents {{{
###############################################################
accent_red: {variables: {accent_color: "#D9534F"}}
accent_green: {variables: {accent_color: "#159828"}}
accent_blue: {variables: {accent_color: "#3465A3"}}
accent_pink: {variables: {accent_color: "#E91E63"}}
accent_teal: {variables: {accent_color: "#16A085"}}
accent_magenta: {variables: {accent_color: "#9C27B0"}}
accent_orange: {variables: {accent_color: "#D93200"}}
accent_red: {variables: {accent_color: "#D9534F"}}
accent_green: {variables: {accent_color: "#159828"}}
accent_blue: {variables: {accent_color: "#3465A3"}}
accent_pink: {variables: {accent_color: "#E91E63"}}
accent_teal: {variables: {accent_color: "#16A085"}}
accent_magenta: {variables: {accent_color: "#9C27B0"}}
accent_orange: {variables: {accent_color: "#D93200"}}
###############################################################
# Keyboard Layouts
###############################################################
colemak:
variables:
key:
layout: colemak
left: n
down: e
up: i
right: o
next: l
tabL: U
tabR: Y
insertMode: s
insertQuit: kk
colemak:
variables:
key:
layout: colemak
left: n
down: e
up: i
right: o
next: l
tabL: U
tabR: Y
insertMode: s
insertQuit: kk
qwerty:
variables:
key:
layout: qwerty
left: h
down: j
up: k
right: l
next: l
tabL: I
tabR: O
insertMode: i
insertQuit: jj
qwerty:
variables:
key:
layout: qwerty
left: h
down: j
up: k
right: l
next: l
tabL: I
tabR: O
insertMode: i
insertQuit: jj
###############################################################
# Main profile
###############################################################
main:
variables:
gtk_theme: "materia-{{@@ env['USER'] @@}}-{{@@ accent_color_name @@}}-{{@@ color.type @@}}"
kvantum_theme: "Materia{{@@ color.type.capitalize() @@}}"
icon_theme: "Papirus-{{@@ color.type.capitalize() @@}}"
cursor_theme: "capitaine-cursors{{@@ '-light' if color.type == 'light' @@}}"
dotfiles:
- ALL
include:
- "{{@@ key_layout @@}}"
- "{{@@ color_type @@}}"
- "accent_{{@@ accent_color_name @@}}"
main:
variables:
gtk_theme: "materia-{{@@ env['USER'] @@}}-{{@@ accent_color_name @@}}-{{@@ color.type @@}}"
kvantum_theme: "Materia{{@@ color.type.capitalize() @@}}"
icon_theme: "Papirus-{{@@ color.type.capitalize() @@}}"
cursor_theme: "capitaine-cursors{{@@ '-light' if color.type == 'light' @@}}"
dotfiles:
- ALL
include:
- "{{@@ key_layout @@}}"
- "{{@@ color_type @@}}"
- "accent_{{@@ accent_color_name @@}}"
###############################################################
config:
###############################################################
backup: false
banner: false
keepdot: false
link_dotfile_default: nolink
link_on_import: nolink
longkey: false
default_actions:
- notify
func_file:
- funcs.py
filter_file:
- funcs.py
backup: false
banner: false
keepdot: false
link_dotfile_default: nolink
link_on_import: nolink
longkey: false
default_actions:
- notify
func_file:
- funcs.py
filter_file:
- funcs.py
###############################################################
dynvariables:
###############################################################
color_type: test -n "$_COLOR_TYPE" && echo "$_COLOR_TYPE" || echo dark
accent_color_name: test -n "$_ACCENT_COLOR" && echo "$_ACCENT_COLOR" || echo red
blender_version: blender --version | head -n1 | sed -E 's|^Blender (.*)\..*|\1|g'
color_type: test -n "$_COLOR_TYPE" && echo "$_COLOR_TYPE" || echo dark
accent_color_name: test -n "$_ACCENT_COLOR" && echo "$_ACCENT_COLOR" || echo red
blender_version: blender --version | head -n1 | sed -E 's|^Blender (.*)\..*|\1|g'
###############################################################
actions:
###############################################################
notify: >
notify-send
"Updating dotfiles"
"{{@@ _dotfile_abs_dst.lstrip(env['HOME']) @@}}"
notify: >
notify-send
"Updating dotfiles"
"{{@@ _dotfile_abs_dst.lstrip(env['HOME']) @@}}"
reload_mako: makoctl reload
lesskey: lesskey
reload_fish: pkill -SIGHUP fish
reload_mako: makoctl reload
lesskey: lesskey
reload_fish: pkill -SIGHUP fish
vimplug: >
nvim
+PlugUpgrade
+PlugInstall
+PlugUpdate
+qall
&> /dev/null
& disown
vimplug: >
nvim
+PlugUpgrade
+PlugInstall
+PlugUpdate
+qall
&> /dev/null
& disown
crontab_install: |
crontab -r
crontab ~/.local/share/crontab
crontab_install: |
crontab -r
crontab ~/.local/share/crontab
vdirsyncer: |
yes | vdirsyncer discover & disown
vdirsyncer: |
yes | vdirsyncer discover & disown
lnMail: |
ln -fs ~/.config/neomutt/mbsyncrc ~/.mbsyncrc
ln -fs ~/.config/neomutt/urlview ~/.urlview
lnMail: |
ln -fs ~/.config/neomutt/mbsyncrc ~/.mbsyncrc
ln -fs ~/.config/neomutt/urlview ~/.urlview
sponsorblock: >
test -d ~/.config/mpv/scripts/sponsorblock_shared ||
git clone
https://github.com/po5/mpv_sponsorblock
~/.config/mpv/scripts;
sponsorblock: >
test -d ~/.config/mpv/scripts/sponsorblock_shared ||
git clone
https://github.com/po5/mpv_sponsorblock
~/.config/mpv/scripts;
rm -f
~/.config/mpv/scripts/LICENSE
~/.config/mpv/scripts/README.md
rm -f
~/.config/mpv/scripts/LICENSE
~/.config/mpv/scripts/README.md
ranger_icons:
git clone
https://github.com/alexanderjeurissen/ranger_devicons
~/.config/ranger/plugins/ranger_devicons
ranger_icons:
git clone
https://github.com/alexanderjeurissen/ranger_devicons
~/.config/ranger/plugins/ranger_devicons
# bootstrap scripts
pam_gpg: _pam-gpg-strap
make_theme: _make_theme
install_meta: install_meta
# bootstrap scripts
pam_gpg: _pam-gpg-strap
make_theme: _make_theme
install_meta: install_meta
post:
# by having it be the last thing to run
# and quickly disowning,
# we can make it run only once
reload_sway: >
pidof swaymsg &>/dev/null ||
swaymsg reload &
disown
post:
# by having it be the last thing to run
# and quickly disowning,
# we can make it run only once
reload_sway: >
pidof swaymsg &>/dev/null ||
swaymsg reload &
disown
###############################################################
dotfiles: # Just a bunch of paths and action mappings
###############################################################
###############################################################
# Regular programs
###############################################################
###############################################################
# Regular programs
###############################################################
sway:
src: sway
dst: ~/.config/sway
actions:
- reload_sway
sway:
src: sway
dst: ~/.config/sway
actions:
- reload_sway
fish:
src: fish
dst: ~/.config/fish
actions:
- reload_fish
fish:
src: fish
dst: ~/.config/fish
actions:
- reload_fish
mako:
src: mako.conf
dst: ~/.config/mako/config
actions:
- reload_mako
mako:
src: mako.conf
dst: ~/.config/mako/config
actions:
- reload_mako
waybar:
src: waybar
dst: ~/.config/waybar
actions:
- reload_sway
waybar:
src: waybar
dst: ~/.config/waybar
actions:
- reload_sway
kitty:
src: kitty.conf
dst: ~/.config/kitty/kitty.conf
actions:
- reload_fish
kitty:
src: kitty.conf
dst: ~/.config/kitty/kitty.conf
actions:
- reload_fish
nvim:
src: nvim.vim
dst: ~/.config/nvim/init.vim
actions:
- vimplug
nvim:
src: nvim.vim
dst: ~/.config/nvim/init.vim
actions:
- vimplug
mutt:
src: neomutt/
dst: ~/.config/neomutt/
actions:
- lnMail
mutt:
src: neomutt/
dst: ~/.config/neomutt/
actions:
- lnMail
lesskey:
src: lesskey
dst: ~/.lesskey
actions:
- lesskey
lesskey:
src: lesskey
dst: ~/.lesskey
actions:
- lesskey
ranger:
src: ranger
dst: ~/.config/ranger
actions:
- ranger_icons
ranger:
src: ranger
dst: ~/.config/ranger
actions:
- ranger_icons
mpv:
src: mpv.conf
dst: ~/.config/mpv/mpv.conf
actions:
- sponsorblock
mpv:
src: mpv.conf
dst: ~/.config/mpv/mpv.conf
actions:
- sponsorblock
dav:
src: dav/
dst: ~/.config
actions:
- vdirsyncer
dav:
src: dav/
dst: ~/.config
actions:
- vdirsyncer
tmux:
src: tmux.conf
dst: ~/.tmux.conf
tmux:
src: tmux.conf
dst: ~/.tmux.conf
###############################################################
# Other
###############################################################
###############################################################
# Other
###############################################################
scripts:
src: scripts
dst: ~/.local/bin
actions:
- make_theme
scripts:
src: scripts
dst: ~/.local/bin
actions:
- make_theme
wallpapers:
src: wallpapers
dst: ~/.local/share/wallpapers
wallpapers:
src: wallpapers
dst: ~/.local/share/wallpapers
mime:
src: mime/
dst: ~/
mime:
src: mime/
dst: ~/
crontab:
src: crontab
dst: ~/.local/share/crontab
actions:
- crontab_install
crontab:
src: crontab
dst: ~/.local/share/crontab
actions:
- crontab_install
theme:
src: theme
dst: ~/
theme:
src: theme
dst: ~/
clang-format:
src: clang-format
dst: ~/.clang-format
clang-format:
src: clang-format
dst: ~/.clang-format
gpg-agent:
src: gpg-agent.conf
dst: ~/.gnupg/gpg-agent.conf
actions:
- pam_gpg
gpg-agent:
src: gpg-agent.conf
dst: ~/.gnupg/gpg-agent.conf
actions:
- pam_gpg
packages:
src: metaPKGBUILD
dst: ~/.local/share/metapkg/PKGBUILD
actions:
- install_meta
packages:
src: metaPKGBUILD
dst: ~/.local/share/metapkg/PKGBUILD
actions:
- install_meta
###############################################################
# Big pahts
###############################################################
###############################################################
# Big pahts
###############################################################
telegram-theme:
src: ./telegram.palette
dst: ~/.local/share/TelegramDesktop/theme.tdesktop-palette
code-oss:
src: vscode.jsonc
dst: "~/.config/Code - OSS/User/settings.json"
blender:
"src": blenderTheme.xml
"dst": "~/.config/blender/{{@@ blender_version @@}}/scripts/presets/interface_theme/blenderTheme.xml"
telegram-theme:
src: ./telegram.palette
dst: ~/.local/share/TelegramDesktop/theme.tdesktop-palette
blender:
"src": blenderTheme.xml
"dst": "~/.config/blender/{{@@ blender_version @@}}/scripts/presets/interface_theme/blenderTheme.xml"
###############################################################
# .config/, no actions
###############################################################
###############################################################
# .config/, no actions
###############################################################
alacritty: { "src":"alacritty.yml", "dst":"~/.config/alacritty.yml" }
bat: { "src":"bat", "dst":"~/.config/bat/config" }
fusuma: { "src":"fusuma.yml", "dst":"~/.config/fusuma/config.yml" }
git: { "src":"gitconfig", "dst":"~/.config/git/config" }
imv: { "src":"imv.conf", "dst":"~/.config/imv/config" }
kakoune: { "src":"kak", "dst":"~/.config/kak" }
kanshi: { "src":"kanshi", "dst":"~/.config/kanshi/config" }
mpd: { "src":"mpd.conf", "dst":"~/.config/mpd/mpd.conf" }
qutebrowser: { "src":"qutebrowser", "dst":"~/.config/qutebrowser" }
rclone: { "src":"rclone.conf", "dst":"~/.config/rclone/rclone.conf" }
wofi: { "src":"wofi", "dst":"~/.config/wofi" }
zathura: { "src":"zathura.conf", "dst":"~/.config/zathura/zathurarc" }
alacritty: { "src":"alacritty.yml", "dst":"~/.config/alacritty.yml" }
bat: { "src":"bat", "dst":"~/.config/bat/config" }
fusuma: { "src":"fusuma.yml", "dst":"~/.config/fusuma/config.yml" }
git: { "src":"git", "dst":"~/.config/git" }
imv: { "src":"imv.conf", "dst":"~/.config/imv/config" }
kakoune: { "src":"kak", "dst":"~/.config/kak" }
kanshi: { "src":"kanshi", "dst":"~/.config/kanshi/config" }
mpd: { "src":"mpd.conf", "dst":"~/.config/mpd/mpd.conf" }
qutebrowser: { "src":"qutebrowser", "dst":"~/.config/qutebrowser" }
rclone: { "src":"rclone.conf", "dst":"~/.config/rclone/rclone.conf" }
wofi: { "src":"wofi", "dst":"~/.config/wofi" }
zathura: { "src":"zathura.conf", "dst":"~/.config/zathura/zathurarc" }
# vim: tabstop=2

View File

@ -1,2 +1,7 @@
BasedOnStyle: Mozilla
BasedOnStyle: LLVM
IndentWidth: 4
TabWidth: 4
{%@@ if tabs @@%}
UseTab: ForContinuationAndIndentation
{%@@ endif @@%}

View File

@ -17,6 +17,9 @@ source {$__fish_config_dir}/prompt.fish
function _fish_autoreload --on-signal SIGHUP
source {$__fish_config_dir}/config.fish
kitty @ set-colors -a ~/.config/kitty/kitty.conf
kitty @ set-background-opacity "{{@@ opacity @@}}"
if test "$TERM" = "xterm-kitty"
kitty @ set-colors -a ~/.config/kitty/kitty.conf
kitty @ set-background-opacity "{{@@ opacity @@}}"
end
end

View File

@ -5,8 +5,11 @@
# | _| \__ \ | | |
# |_| |_|___/_| |_|
set fish_key_bindings fish_vi_key_bindings
if test "$EDITOR" = vim
fish_vi_key_bindings
else
fish_default_key_bindings
end
if test $fish_key_bindings = fish_vi_key_bindings

View File

@ -42,6 +42,7 @@ function fish_git_prompt
set _git_branch (git branch --show-current 2> /dev/null)
if not test -n "$_git_branch"
or not git status -s &> /dev/null
return
end
@ -89,6 +90,7 @@ end
function fish_vimode_prompt # Not fish_mode_prompt!
if not test $fish_key_bindings = fish_vi_key_bindings
printf '\e[5 q' # Bar
return
end

View File

@ -5,6 +5,10 @@
# | _| \__ \ | | |
# |_| |_|___/_| |_|
{%@@ if not tmux @@%}
set TMUX 1
{%@@ endif @@%}
if test -z "$TMUX" -a -n "$DISPLAY" -a -z "$GNOME_TERMINAL_SCREEN"
and not string match -qr kitty "$TERM"
and status is-interactive

3
dotfiles/git/attributes Normal file
View File

@ -0,0 +1,3 @@
{%@@ if tabs @@%}
* filter=tabspace
{%@@ endif @@%}

23
dotfiles/git/gitconfig Normal file
View File

@ -0,0 +1,23 @@
[user]
name = {{@@ username @@}}
email = {{@@ username @@}}@{{@@ mail @@}}
[init]
defaultBranch = main
[pull]
rebase = false
[pager]
# differ is a program that shows word-by-word diff
log = diffr | less
show = diffr | less
diff = diffr | less
{%@@ if tabs @@%}
[filter "tabspace"]
smudge = unexpand --tabs=4 --first-only
clean = expand --tabs=4 --initial
{%@@ endif @@%}

View File

@ -1,15 +0,0 @@
[user]
name = {{@@ username @@}}
email = {{@@ username @@}}@{{@@ mail @@}}
[init]
defaultBranch = main
[pull]
rebase = false
[pager]
# differ is a program that shows word-by-word diff
log = diffr | less
show = diffr | less
diff = diffr | less

View File

@ -1,7 +1,11 @@
# {{@@ header() @@}}
# {%@@ if not tabs @@%}
# use spaces insted of tabs
hook global InsertChar \t %{ exec -draft -itersel h@ } -group kakrc-replace-tabs-with-spaces
hook global InsertChar \t %{
exec -draft -itersel h@
} -group kakrc-replace-tabs-with-spaces
# {%@@ endif @@%}
hook global NormalIdle .* %{ try %{
git show-diff

View File

@ -7,6 +7,12 @@
set global tabstop 4
{%@@ if tabs @@%}
set global indentwidth 4
{%@@ else @@%}
set global indentwidth 0
{%@@ endif @@%}
set global scrolloff 8,8
add-highlighter global/ wrap

View File

@ -32,3 +32,17 @@
map global normal t e
{%@@ endif @@%}
######################################################
# Emacs-like insert
######################################################
map global insert <c-b> "<a-;>h"
map global insert <c-f> "<a-;>l"
map global insert <a-b> "<a-;>b"
map global insert <a-f> "<a-;>w"
map global insert <c-a> "<a-;>gi"
map global insert <c-e> "<a-;>gl<right>"
map global insert <c-w> "<a-;>b<a-;>d"

View File

@ -27,13 +27,7 @@ set postponed = "+Drafts"
set trash = "+Trash"
mailboxes \
"=INBOX" \
"=INBOX.Faculdade"\
"=INBOX.Trabalhos" \
"=INBOX.Contas"\
"=INBOX.Git" \
"=INBOX.Duolingo" \
"=INBOX.LBRY"\
`echo ~/.local/share/mail/INBOX*` \
"=Sent" \
"=Drafts" \
"=Trash" \
@ -154,7 +148,7 @@ set markers = no # Disables the `+` displayed at line wraps
set date_format="%m/%d %H:%M"
set index_format="%2C %zs %?X?A& ? %D %-15.15F %s"
# set display_filter = 'sed -e "s/&nbsp;*/\n/g"'
set display_filter = 'sed -e "s/&nbsp;*/\n/g"'
#}}}
# colors{{{
@ -196,4 +190,4 @@ color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-
# }}}
# }}}
# vim: filetype=neomuttrc:foldmethod=marker
# vim: ft=sh

View File

@ -0,0 +1,9 @@
#!/bin/sh
swaymsg -t get_inputs |
jq -r '..|
select(.type? == "keyboard")
.xkb_active_layout_name' |
head -n 1 |
sd '\b(..)[\w\s]*' '$1' |
sd '$' '\n'

View File

@ -21,7 +21,7 @@ fi
# s selected
# sc scrollbar
fn="{{@@ font.mono @@}} 12"
fn="{{@@ font.mono @@}} {{@@ font.size.small @@}}"
tb="{{@@ color.bg @@}}"
tf="{{@@ accent_color @@}}"
@ -57,7 +57,7 @@ bemenu \
--bottom\
--no-overlap\
--list 20\
--prefix '->'\
--prefix '>'\
--fn "$fn"\
--tb "$tb" --tf "$tf" \
--fb "$fb" --ff "$ff" \

View File

@ -1,27 +1,36 @@
#!/bin/sh
set -e
test "$XDG_CURRENT_DESKTOP" = "gnome" &&
exit 0
test -z "$XDG_RUNTIME_DIR" &&
export XDG_RUNTIME_DIR=/run/user/$(id -u)
getnew(){
find ~/.local/share/mail/INBOX{,.{Contas,Faculdade,Git,Trabalhos}}/new -type f | wc -l
pushd "~/.local/share/mail/"
find INBOX*/new -type f |
wc -l
popd
}
OLD=$(getnew)
[ "$1" = "update" ] && mbsync -a
[ "$1" = "update" ] &&
mbsync -a
NEW=$(getnew)
if [ "$NEW" -gt "$OLD" ];then
[ "$NEW" -gt "$OLD" ] &&
notify-send " New E-Mails!"
fi
echo $NEW | sed 's/^0$//'
if [ "$(ps -o comm= $PPID)" != "waybar" ] && pidof waybar>/dev/null;then
[ "$(ps -o comm= $PPID)" != "waybar" ] &&
pidof waybar>/dev/null &&
pkill -SIGRTMIN+4 waybar
fi
# vim:ft=sh

View File

@ -13,7 +13,7 @@ test $# -gt 0 &&
} & exit
# {%@@ else @@%} #
command -v kitty > /dev/null &&
exec kitty $cmd "$@"
exec kitty $cmd $@
# {%@@ endif @@%} #
notify-send "Error" "Terminal program missing"

View File

@ -26,6 +26,7 @@ assign [title=^steam] workspace 9
assign [app_id=telegram.?desktop] workspace 10
assign [class=TelegramDesktop] workspace 10
assign [class="Jitsi Meet"] workspace 10
assign [class=discord] workspace 10

View File

@ -17,7 +17,7 @@ input "type:touchpad" {
input * {
{%@@ if key_layout == "colemak" @@%}
xkb_layout "us(colemak),br"
xkb_layout "us(colemak),br,ru"
xkb_options "lv3:lsgt_switch,grp:shifts_toggle"
{%@@ elif key_layout == "dvorak" @@%}
xkb_layout "us(dvorak)"

View File

@ -5,7 +5,7 @@
# |___/ \_/\_/ \__,_|\__, |
# |___/
bindsym {
bindsym --to-code {
# Start a terminal
$mod+Return exec terminal

View File

@ -5,7 +5,7 @@
# |___/ \_/\_/ \__,_|\__, |
# |___/
bindsym {
bindsym --to-code {
###############################################################
# Moving around

117
dotfiles/vscode.jsonc Normal file
View File

@ -0,0 +1,117 @@
{
// Remove clutter teste
"window.titleBarStyle": "custom",
// "window.menuBarVisibility": "toggle",
// "workbench.activityBar.visible": false,
// "workbench.editor.showTabs": false,
// "workbench.editor.enablePreview": false,
// "workbench.editor.enablePreviewFromQuickOpen": true,
// "breadcrumbs.enabled": false,
// "workbench.editor.closeEmptyGroups": true,
// "workbench.editor.tabCloseButton": "off",
// "explorer.openEditors.visible": 0,
// "debug.openDebug": "openOnDebugBreak",
// "debug.internalConsoleOptions": "none",
// Don't ask
"git.autofetch": true,
"git.confirmSync": false,
"git.enableSmartCommit": true,
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"files.autoSave": "off",
"window.closeWhenEmpty": true,
// Rendering
"terminal.integrated.rendererType": "dom",
"editor.renderWhitespace": "none",
"window.zoomLevel": 0,
"vim.foldfix": true,
"editor.minimap.renderCharacters": false,
// Fonts
"terminal.integrated.fontFamily": "'{{@@ font.mono @@}}', 'monospace', monospace",
"editor.fontFamily": "'{{@@ font.mono @@}}', 'monospace', monospace",
"editor.fontSize": 15,
"editor.fontLigatures": true,
// Input
"keyboard.dispatch": "keyCode",
// Gay colors
"workbench.colorTheme": "Community Material Theme Darker",
"materialTheme.accent": "Red",
"workbench.iconTheme": "material-icon-theme",
"material-icon-theme.folders.color": "{{@@ accent_color @@}}",
"workbench.colorCustomizations": {
"minimap.selectionHighlight": "{{@@ accent_color @@}}",
"editorCursor.foreground": "{{@@ accent_color @@}}dd",
"activityBarBadge.background": "{{@@ accent_color @@}}",
"activityBar.activeBorder": "{{@@ accent_color @@}}",
"list.activeSelectionForeground": "{{@@ accent_color @@}}",
"list.inactiveSelectionForeground": "{{@@ accent_color @@}}",
"list.highlightForeground": "{{@@ accent_color @@}}",
"scrollbarSlider.activeBackground": "{{@@ accent_color @@}}50",
"editorSuggestWidget.highlightForeground": "{{@@ accent_color @@}}",
"textLink.foreground": "{{@@ accent_color @@}}",
"progressBar.background": "{{@@ accent_color @@}}",
"pickerGroup.foreground": "{{@@ accent_color @@}}",
"tab.activeBorder": "{{@@ accent_color @@}}",
"notificationLink.foreground": "{{@@ accent_color @@}}",
"editorWidget.resizeBorder": "{{@@ accent_color @@}}",
"editorWidget.border": "{{@@ accent_color @@}}",
"settings.modifiedItemIndicator": "{{@@ accent_color @@}}",
"settings.headerForeground": "{{@@ accent_color @@}}",
"panelTitle.activeBorder": "{{@@ accent_color @@}}",
"breadcrumb.activeSelectionForeground": "{{@@ accent_color @@}}",
"menu.selectionForeground": "{{@@ accent_color @@}}",
"menubar.selectionForeground": "{{@@ accent_color @@}}",
"editor.findMatchBorder": "{{@@ accent_color @@}}",
"selection.background": "{{@@ accent_color @@}}40",
// backgrounds
"activityBar.background": "{{@@ color.bg @@}}",
"editor.background": "{{@@ color.bg @@}}",
"editorWhitespace.foreground": "{{@@ color.bg_light @@}}",
"statusBar.background": "{{@@ color.bg @@}}",
"statusBar.noFolderBackground": "{{@@ color.bg @@}}",
"statusBar.debuggingBackground": "{{@@ color.bg @@}}",
"sideBar.background": "{{@@ color.bg @@}}",
// foregrounds
"editorCursor.background": "{{@@ color.txt @@}}",
"statusBar.foreground": "{{@@ color.txt @@}}",
},
"editor.formatOnType": true,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.suggestSelection": "first",
"debug.allowBreakpointsEverywhere": true,
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true,
"**/__pycache__": true,
".venv": true
},
"files.associations": {
"**/*.html": "html",
"**/templates/**/*.html": "jinja-html",
"**/templates/**/*": "jinja-txt",
"**/requirements{/**,*}.{txt,in}": "pip-requirements"
},
"emmet.includeLanguages": {
"django-html": "html",
"jinja-html": "html"
},
// "editor.defaultFormatter": "HookyQR.beautify",
// "[jinja-html]": {
// "editor.defaultFormatter": "HookyQR.beautify",
// },
// "[jsonc]": {
// "editor.defaultFormatter": "HookyQR.beautify"
// },
// "python.testing.unittestEnabled": true,
// "python.dataScience.enabled": true,
// "python.dataScience.sendSelectionToInteractiveWindow": true,
// "python.linting.mypyEnabled": true,
// "python.linting.pycodestyleEnabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.provider": "black",
"python.linting.pylintUseMinimalCheckers": false,
"python.linting.mypyEnabled": true,
}

View File

@ -5,13 +5,14 @@
"modules-left": [
"sway/workspaces",
"sway/mode",
"sway/window"
"sway/window",
],
"modules-center": [
"clock",
"custom/weather"
"custom/weather",
],
"modules-right": [
"custom/layout",
"custom/mpd",
"custom/recording",
"tray",
@ -157,6 +158,10 @@
"on-click":"pidof caffeinated &&pkill caffeinated||caffeinated -d ",
"interval": 1
},
"custom/layout":{
"exec":"_get-sway-layout",
"interval": 1
}
}
// vim:ft=json

View File

@ -125,3 +125,8 @@ window#waybar.empty {
padding: 0;
margin: 0;
}
#custom-layout {
font-size: {{@@ font.size.medium @@}}px;
color: {{@@ color.bg_light @@}};
}