1
0
Fork 0

add base dotfiles

This commit is contained in:
cătălin 2021-11-09 12:16:41 +01:00
commit 39254e5c3b
No known key found for this signature in database
GPG key ID: F7DF0BC66B3C7F8D
35 changed files with 699 additions and 0 deletions

14
.dotter/global.toml Normal file
View file

@ -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/"

6
.dotter/local.toml Normal file
View file

@ -0,0 +1,6 @@
includes = []
packages = ["default"]
[files]
[variables]

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.dotter/cache.toml
.dotter/cache

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "polybar/polybar-themes"]
path = polybar/polybar-themes
url = https://github.com/kiddae/polybar-themes

31
bspwm/bspwmrc Executable file
View file

@ -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

26
chaakoo/sls_offline.yml Normal file
View file

@ -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

54
dunst/dunstrc Normal file
View file

@ -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"

3
fish/conf.d/aliases.fish Normal file
View file

@ -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'

2
fish/conf.d/common.fish Normal file
View file

@ -0,0 +1,2 @@
set -gx EDITOR vim

8
fish/conf.d/paths.fish Normal file
View file

@ -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

1
fish/conf.d/rust.fish Normal file
View file

@ -0,0 +1 @@
set -gx PATH "$HOME/.cargo/bin" $PATH;

29
ideavim Normal file
View file

@ -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 <Action>(ReformatCode)
"" Map <leader>d to start debug
"map <leader>d <Action>(Debug)
"" Map \b to toggle the breakpoint on the current line
"map \b <Action>(ToggleLineBreakpoint)
" Find more examples here: https://jb.gg/share-ideavimrc
set ideajoin

73
kermit Normal file
View file

@ -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

200
polybar/config Normal file
View file

@ -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 = "<label> "
format-foreground = ${colors.background}
format-background = ${colors.color1}
scroll-up = i3 workspace next
scroll-down = i3 workspace prev
[module/dummy-module]
type = custom/text
content = " "
[module/xwindow]
type = internal/xwindow
label = %title:0:40:...%
label-foreground = ${colors.color1}
label-background = ${colors.background}
label-padding = 5
[module/bspwm]
type = internal/bspwm
format = <label-state>
format-padding = 5
format-background = ${colors.color1}
format-foreground = ${colors.background}
enable-click = true
enable-scroll = true
reverse-scroll = false
label-focused = a
label-focused-font = 5
label-focused-foreground = ${colors.background}
label-focused-padding = 1
label-empty =
label-occupied = s
label-occupied-font = 2
label-occupied-padding = 1
label-occupied-foreground = ${colors.background}
label-urgent = 
label-urgent-font = 1
label-urgent-padding = 1
label-urgent-foreground = ${colors.background}
ws-icon-0 = 1;
ws-icon-1 = 2;
ws-icon-2 = 3;
ws-icon-9 = 10;
ws-icon-default = 
[module/power]
type = custom/text
content = 
content-foreground = ${colors.color3}
click-left = powermenu
content-margin = 0
[module/time]
type = internal/date
interval = 10
format-margin = 5
time = "%H:%M"
date = "%d %b"
label = %date%, %time%
label-foreground = ${colors.color3}
label-background = ${colors.background}
[module/pulseaudio]
type = internal/pulseaudio
format-volume-padding = 5
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage:3:3%%
format-volume-background = ${colors.color3}
format-volume-foreground = ${colors.background}
use-ui-max = false
interval = 5
ramp-volume-0 = ""
ramp-volume-1 = ""
ramp-volume-2 = ""
label-muted = " muted"
label-muted-background = ${colors.background}
label-muted-foreground = ${colors.color3}
label-muted-padding = 4
[module/network]
type = internal/network
interface = wlp0s20f3
interval = 3.0
ping-interval = 3.0
[module/battery]
type = internal/battery
full-at = 99
battery = BAT0
adapter = ADP1
poll-interval = 5
[settings]
screenchange-reload = true
[global/wm]
margin-top = 0
margin-bottom = 0

5
polybar/get_workspace Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
# depends on `jq'
i3-msg -t get_workspaces \
| jq '.[] | select(.focused==true).name' \
| cut -d"\"" -f2

14
polybar/launch.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
polybar -rq music &
polybar -rq tray &
polybar -rq ws &
echo "Polybar launched..."

BIN
polybar/scrot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 792 KiB

BIN
polybar/scrot2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

13
quickmarks Normal file
View file

@ -0,0 +1,13 @@
cecochat https://chat.cecotec.cloud/home
cecogoogle https://mail.google.com/mail/u/0/#inbox
cecobitrix https://cecotecinn.bitrix24.es/stream/
cecofichaje https://ingress.cecotec.cloud/login
cecogitlab https://gitlab.com/dashboard/merge_requests?assignee_username=airimitoaie
consoleaws https://eu-west-1.console.aws.amazon.com/console/home?region=eu-west-1#
ask https://developer.amazon.com/alexa/console/ask
awsapps-api https://eu-west-1.console.aws.amazon.com/apigateway/main/apis?region=eu-west-1
awsapps-watch https://eu-west-1.console.aws.amazon.com/cloudwatch/home?region=eu-west-1#
awsapps-lambda https://eu-west-1.console.aws.amazon.com/lambda/home?region=eu-west-1#/functions
valexa-pipelines https://gitlab.com/cecotec/producto/va/AlexaIntegration/-/pipelines
chalice makefile https://github.com/aws/chalice/blob/master/Makefile
smarthome https://gitlab.com/cecotec/producto/CecoSmartHome_Backend

2
qute Normal file
View file

@ -0,0 +1,2 @@
config.load_autoconfig(True)
config.source('qutewal.py')

1
rofi/config.rasi Normal file
View file

@ -0,0 +1 @@
@import "~/.cache/wal/colors-rofi-dark"

140
sxhkd/sxhkdrc Executable file
View file

@ -0,0 +1,140 @@
#
# wm independent hotkeys
#
#prtscr
Print
flameshot gui
# terminal emulator
ctrl + alt + t
kermit -c "$HOME/.config/kermit.conf" -e "ufetch && $SHELL"
ctrl + shift + alt + l
i3lock-fancy -p
# program launcher
super + d
rofi -show run
super + alt + p
bwmenu
super + alt + a
asciify.sh
# make sxhkd reload its configuration files:
super + Escape
pkill -USR1 -x sxhkd
ctrl + alt + b
firefox
ctrl + super + space
~/.builds/bin/toggle-keyboard-layout.sh
#
# bspwm hotkeys
#
# quit/restart bspwm
super + alt + {q,r}
bspc {quit,wm -r}
# close and kill
super + {_,shift + }w
bspc node -{c,k}
# alternate between the tiled and monocle layout
super + m
bspc desktop -l next
# send the newest marked node to the newest preselected node
super + y
bspc node newest.marked.local -n newest.!automatic.local
# swap the current node and the biggest window
super + g
bspc node -s biggest.window
#
# state/flags
#
# set the window state
super + {t,shift + t,s,f}
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
# set the node flags
super + ctrl + {m,x,y,z}
bspc node -g {marked,locked,sticky,private}
#
# focus/swap
#
# focus the node in the given direction
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
# focus the node for the given path jump
super + {p,b,comma,period}
bspc node -f @{parent,brother,first,second}
# focus the next/previous window in the current desktop
super + {_,shift + }c
bspc node -f {next,prev}.local.!hidden.window
# focus the next/previous desktop in the current monitor
super + bracket{left,right}
bspc desktop -f {prev,next}.local
# focus the last node/desktop
super + {grave,Tab}
bspc {node,desktop} -f last
# focus the older or newer node in the focus history
super + {o,i}
bspc wm -h off; \
bspc node {older,newer} -f; \
bspc wm -h on
# focus or send to the given desktop
super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}'
#
# preselect
#
# 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}
# 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
#
# move/resize
#
# expand a window by moving one of its side outward
super + alt + {h,j,k,l}
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
# contract a window by moving one of its side inward
super + alt + shift + {h,j,k,l}
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
# move a floating window
super + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0}

4
utils/asciify.sh Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT=$(dirname "$(readlink -f "$0")")
tail +3 $ROOT/asciify.txt | rofi -eh 2 -dmenu | cut -f1 -d'|' | xargs | xclip -selection clipboard

31
utils/asciify.txt Normal file
View file

@ -0,0 +1,31 @@
EMOTE| TAG
===============================
¯\\_(ツ)_/¯| shrug
( ͡° ͜ʖ ͡°) | lemmyface
ಠ_ಠ| angry
(╯°□°)╯| more angry
༼ つ ◕_◕ ༽つ| gib
ᕕ( ᐛ )ᕗ | walk
(◉-◉)| nerd
(⌐⊙_⊙)| nerd2
(ᄒ︹ᄒ)| sad
(῏Ṵ῏) | serious
(⌐■_■)| coolguy
( ႎ _ ႎ | sigh
( ၜ 𝄩 ၜ | kewl
ဨ(ၜ ͜ ၜ)| im listenin
(⨪_⨪)| meh
(⨪ˬ⨪)| :v
(𐨨𐭃𐨨)| hmpf
(৲ဓ―ဓ)৲| surething
(☞゚ヮ゚)☞| mahman
ԅ(≖‿≖ԅ)| creepy look
[̲̅$̲̅(̲̅ ͡° ͜ʖ ͡°̲̅)̲̅$̲̅]| skrilla
[̲̅$̲̅(̲̅ιο̲̅̅)̲̅$̲̅]| dollar
ಥ_ಥ| cryin
(⊙_☉)| derp
ლ(ಠ_ಠლ)| why
(ง •̀_•́)ง| fite me
(👁 ͜ʖ👁)| im looking, respectfully
†| cross

12
utils/clone-and-install.py Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env python3
repos = {
"https://github.com/str4d/rage": _install_rage,
"https://github.com/vinceliuice/WhiteSur-gtk-theme": _install_whitesur_gtk,
"https://github.com/vinceliuice/WhiteSur-icon-theme": _install_whitesur_icon,
"https://github.com/mattydebie/bitwarden-rofi": _install_bw_rofi,
"https://gitlab.com/jallbrit/cbonsai": _install_cbonsai,
"https://gitlab.com/orhun/kermit": _install_kermit,
"https://gitlab.com/jschx/ufetch.git": _install_ufetch,
"https://github.com/anhsirk0/fetch-master-6000.git": _install_fetch_master,
}

4
utils/curl2tar.sh Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -eou pipefail
curl -L $1 | tar xvzf -

14
utils/set-monitors.sh Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -eou pipefail
base_command="xrandr -q | grep connected"
monitors=$(bash -c "$base_command")
monitors_len=$(bash -c "$base_command" | grep -w 'connected' | wc -l)
if [[ "$monitors_len" -eq 2 ]];
then
xrandr --auto --output eDP-1 --mode 1920x1080 --right-of HDMI-1
bspc monitor eDP-1 -d I II III IV V
bspc monitor HDMI-1 -d VI VII VIII IX X
else
bspc monitor eDP-1 -d I II III IV V VI VII VIII IX X
fi

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
(setxkbmap -query | grep -q "layout:\s\+us") && setxkbmap es || setxkbmap us
notify-send "layout: $(setxkbmap -query | tail -1 | awk '{print $2}')"

BIN
walls/00-80s.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

BIN
walls/653118.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 771 KiB

BIN
walls/vapor1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

BIN
walls/vapor2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

BIN
walls/vapor3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 KiB

BIN
walls/vapor4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

BIN
walls/wp4601789.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB