commit 39254e5c3be9671a86cd29f43f5621fed9e44e73 Author: cătălin Date: Tue Nov 9 12:16:41 2021 +0100 add base dotfiles diff --git a/.dotter/global.toml b/.dotter/global.toml new file mode 100644 index 0000000..649f65c --- /dev/null +++ b/.dotter/global.toml @@ -0,0 +1,14 @@ +[default.files] +fish = "~/.config/fish/" +bspwm = "~/.config/bspwm/" +sxhkd = "~/.config/sxhkd/" +rofi = "~/.config/rofi/" +dunst = "~/.config/dunst/" +kermit = "~/.config/kermit.conf" +polybar = "~/.config/polybar" +walls = "~/Pictures/walls" +utils = "~/.local/bin/185504a9-utils/" +ideavim = "~/.ideavimrc" +qute = "~/.config/qutebrowser/config.py" +quickmarks = "~/.config/qutebrowser/quickmarks" +chaakoo = "~/.config/chaakoo/" diff --git a/.dotter/local.toml b/.dotter/local.toml new file mode 100644 index 0000000..9cb7215 --- /dev/null +++ b/.dotter/local.toml @@ -0,0 +1,6 @@ +includes = [] +packages = ["default"] + +[files] + +[variables] diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a9117be --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.dotter/cache.toml +.dotter/cache diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..3ea7a56 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "polybar/polybar-themes"] + path = polybar/polybar-themes + url = https://github.com/kiddae/polybar-themes diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc new file mode 100755 index 0000000..a6e42a0 --- /dev/null +++ b/bspwm/bspwmrc @@ -0,0 +1,31 @@ +#! /bin/sh + +#### +#### misc tools +#### + +sxhkd & +wal -i ~/Pictures/walls/odin-dark.jpg +. "${HOME}/.cache/wal/colors.sh" +compton & +~/.config/polybar/launch.sh +pidof dunst && killall dunst && dunst &-c ~/.config/dunst/dunstrc > /dev/null 2>&1 & +xsetroot -cursor_name left_ptr & +wmname LG3D & + +bspc monitor -d eDP-1 1 2 3 4 +bspc monitor -d HDMI-1 5 6 7 8 9 + +#### +#### bspwm +#### + +~/.builds/bin/set-monitors.sh + +bspc config border_width 5 +bspc config window_gap 8 + +bspc config split_ratio 0.52 +bspc config borderless_monocle true +bspc config gapless_monocle true + diff --git a/chaakoo/sls_offline.yml b/chaakoo/sls_offline.yml new file mode 100644 index 0000000..fe13792 --- /dev/null +++ b/chaakoo/sls_offline.yml @@ -0,0 +1,26 @@ +name: sls-offline +windows: + - grid: | + term term + sls-start docs-serve + name: window1 + commands: + - pane: term + command: | + source .venv/bin/activate.fish + source ../.env-prod.fish + set -x AWS_DEFAULT_REGION "eu-west-1" + clear + workdir: /home/catalin/dev/ceco/valexa + - pane: sls-start + command: | + source ../.env-prod.fish + make sls-stop + make sls-start + make sls-flog + workdir: /home/catalin/dev/ceco/valexa + - pane: docs-serve + command: | + source .venv/bin/activate.fish + make docs-serve + workdir: /home/catalin/dev/ceco/valexa diff --git a/dunst/dunstrc b/dunst/dunstrc new file mode 100644 index 0000000..7f92ab7 --- /dev/null +++ b/dunst/dunstrc @@ -0,0 +1,54 @@ +[global] +monitor = 0 +follow = mouse +geometry = "300x60-20+48" +indicate_hidden = yes +shrink = no +separator_height = 0 +padding = 32 +horizontal_padding = 32 +frame_width = 2 +sort = no +idle_threshold = 120 +font = rissole 8 +line_height = 4 +markup = full +format = %s\n%b +alignment = left +show_age_threshold = 60 +word_wrap = yes +ignore_newline = no +stack_duplicates = false +hide_duplicate_count = yes +show_indicators = no +icon_position = off +sticky_history = yes +history_length = 20 +browser = /usr/bin/firefox -new-tab +always_run_script = true +title = Dunst +class = Dunst + +[shortcuts] +close = ctrl+space +close_all = ctrl+shift+space +history = ctrl+grave +context = ctrl+shift+period + +[urgency_low] +timeout = 4 +background = "#141c21" +foreground = "#93a1a1" +frame_color = "#8bc34a" + +[urgency_normal] +timeout = 8 +background = "#141c21" +foreground = "#93a1a1" +frame_color = "#ba68c8" + +[urgency_critical] +timeout = 0 +background = "#141c21" +foreground = "#93a1a1" +frame_color = "#ff7043" diff --git a/fish/conf.d/aliases.fish b/fish/conf.d/aliases.fish new file mode 100644 index 0000000..e1bbc80 --- /dev/null +++ b/fish/conf.d/aliases.fish @@ -0,0 +1,3 @@ +alias ls 'exa -alh' +alias cat 'batcat' +alias cva 'chaakoo -c $HOME/.config/chaakoo/sls_offline.yml 2> /dev/null ; tmux a -t sls-offline' diff --git a/fish/conf.d/common.fish b/fish/conf.d/common.fish new file mode 100644 index 0000000..bc6fd5d --- /dev/null +++ b/fish/conf.d/common.fish @@ -0,0 +1,2 @@ +set -gx EDITOR vim + diff --git a/fish/conf.d/paths.fish b/fish/conf.d/paths.fish new file mode 100644 index 0000000..000fe48 --- /dev/null +++ b/fish/conf.d/paths.fish @@ -0,0 +1,8 @@ +set -gx PATH ~/.local/bin $PATH +set -gx PATH ~/.local/bin/185504a9-utils/ $PATH +set -gx PATH $ANDROID_HOME/emulator $PATH +set -gx PATH $ANDROID_HOME/tools $PATH +set -gx PATH $ANDROID_HOME/tools/bin $PATH +set -gx PATH $ANDROID_HOME/platform-tools $PATH + + diff --git a/fish/conf.d/rust.fish b/fish/conf.d/rust.fish new file mode 100644 index 0000000..98d36e9 --- /dev/null +++ b/fish/conf.d/rust.fish @@ -0,0 +1 @@ +set -gx PATH "$HOME/.cargo/bin" $PATH; diff --git a/ideavim b/ideavim new file mode 100644 index 0000000..6ed5420 --- /dev/null +++ b/ideavim @@ -0,0 +1,29 @@ +"" Source your .vimrc +"source ~/.vimrc +set clipboard+=unnamed + +"" -- Suggested options -- +" Show a few lines of context around the cursor. Note that this makes the +" text scroll if you mouse-click near the start or end of the window. +set scrolloff=5 + +" Do incremental searching. +set incsearch + +" Don't use Ex mode, use Q for formatting. +map Q gq + + +"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t +"" Map \r to the Reformat Code action +"map \r (ReformatCode) + +"" Map d to start debug +"map d (Debug) + +"" Map \b to toggle the breakpoint on the current line +"map \b (ToggleLineBreakpoint) + + +" Find more examples here: https://jb.gg/share-ideavimrc +set ideajoin diff --git a/kermit b/kermit new file mode 100644 index 0000000..eb2137a --- /dev/null +++ b/kermit @@ -0,0 +1,73 @@ +# kermit ~ terminal configuration file + +# Locale (numeric) +locale en_US.UTF-8 + +# Word char exceptions +char "-./?%&#_=+@~" + +# Action key binding (alt/shift) +key shift + +# Cursor shape (block/ibeam/underline) +cursor_shape block + +# Custom command key bindings +# bind/bindx [KEY]~"[COMMAND]" +# bindx f~"df -h" + +# Tab position (top/bottom) +tab bottom + +# Terminal font +font monospace 16 + +# Terminal transparency +opacity 0.75 + +# Foreground color +foreground 0xbfd6d1 +foreground_bold 0xffffff + +# Cursor color +cursor 0x00cc00 +cursor_foreground 0xefecf4 + +# Background color +background 0x030C0E + +# Color palette (16) +#color0 0x3f3f3f +#color1 0xcf0000 +#color2 0xa8ff60 +#color3 0xf3f828 +#color4 0x3c70a4 +#color5 0xcc00ff +#color6 0x3c70a4 +#color7 0xdcdccc +#color8 0x808080 +#color9 0xcf0000 +#color10 0xa8ff60 +#color11 0x6b6b6b +#color12 0x3c70a4 +#color13 0xcc00ff +#color14 0x3c70a4 +#color15 0xdcdccc + +color0 0x030C0E +color1 0x28504C +color2 0x1E6B61 +color3 0x496F6F +color4 0x278E72 +color5 0x427788 +color6 0x4CBFA4 +color7 0xbfd6d1 +color8 0x859592 +color9 0x28504C +color10 0x1E6B61 +color11 0x496F6F +color12 0x278E72 +color13 0x427788 +color14 0x4CBFA4 +color15 0xbfd6d1 + diff --git a/polybar/config b/polybar/config new file mode 100644 index 0000000..c070b67 --- /dev/null +++ b/polybar/config @@ -0,0 +1,200 @@ +[colors] + +background = ${xrdb:color0:#222} +color1 = ${xrdb:color2} +color2 = ${xrdb:color4} +color3 = ${xrdb:color6} + +; _ +; | |__ __ _ _ __ ___ +; | '_ \ / _` | '__/ __| +; | |_) | (_| | | \__ \ +; |_.__/ \__,_|_| |___/ + +[bar/base] +enable-ipc = true +font-0=cherry:size=14;3 +font-1=FontAwesome5Free:style=Regular:pixelsize=8:antialias=true;2 +font-2=FontAwesome5Free:style=Solid:pixelsize=8:antialias=true;2 +font-3=IPAGothic:style=Regular:size=11:antialias=true;3 + +bottom = true +border-size = 0 +border-color = ${self.foreground} + +height = 50 + +background = ${colors.background} +override-redirect=false +offset-y = 10 + +wm-restack = bspwm + +[bar/ws] +inherit = bar/base +width = 36% +bottom = true + +foreground = ${colors.color1} + +offset-x = 10 + +; bspwm +modules-left = bspwm xwindow +scroll-up = bspwm-desknext +scroll-down = bspwm-deskprev + + +[bar/music] +inherit = bar/base +enable-ipc = true +width = 32% + +foreground = ${colors.color2} +offset-x = 50.7% + +modules-left = battery +modules-right= network +padding = 10 + +[bar/tray] +inherit = bar/base +width = 16.2% + +offset-x = 83.3% +foreground = ${colors.color3} + +;tray-position = right + +modules-left = pulseaudio time power + +[bar/dummy] +height = 60 +background = #0000 +modules-center = dummy-module +override-redirect = false +bottom = true + +; _ _ +; _ __ ___ ___ __| |_ _| | ___ ___ +; | '_ ` _ \ / _ \ / _` | | | | |/ _ \/ __| +; | | | | | | (_) | (_| | |_| | | __/\__ \ +; |_| |_| |_|\___/ \__,_|\__,_|_|\___||___/ + +[module/wsnumber] +type = custom/script +exec = ~/.config/polybar/get_workspace +tail = true +interval = 0 +format-padding = 0 +format = "