~andreafeletto/dotfiles

0706e65e782df389749aca6a59e000c50ddb6092 — Andrea Feletto 2 years ago f845290
update
13 files changed, 28 insertions(+), 250 deletions(-)

D amfora/.config/amfora/config.toml
D kakoune/.config/kak-lsp/kak-lsp.toml
D kakoune/.config/kak/autoload/detection
D kakoune/.config/kak/autoload/filetype
D kakoune/.config/kak/autoload/new-client.kak
D kakoune/.config/kak/autoload/tools
D kakoune/.config/kak/autoload/wayland.kak
D kakoune/.config/kak/kakrc
R packages => packages.md
D services
A services.md
D waybar/.config/waybar/config
D waybar/.config/waybar/style.css
D amfora/.config/amfora/config.toml => amfora/.config/amfora/config.toml +0 -84
@@ 1,84 0,0 @@

[a-general]
home = "gemini://andreafeletto.com"
auto_redirect = true
http = 'default'
search = 'gemini://geminispace.info/search'
color = true
ansi = true
bullets = true
show_link = false
left_margin = 0.15
max_width = 80
downloads = ''
page_max_size = 2097152  # 2 MiB
page_max_time = 10
scrollbar = 'never'
underline = false

[keybindings]
bind_home         = '0'
bind_bookmarks    = 'b'
bind_add_bookmark = 'n'

bind_tab1 = 'Alt-1'
bind_tab2 = 'Alt-2'
bind_tab3 = 'Alt-3'
bind_tab4 = 'Alt-4'
bind_tab5 = 'Alt-5'
bind_tab6 = 'Alt-6'
bind_tab7 = 'Alt-7'
bind_tab8 = 'Alt-8'
bind_tab9 = 'Alt-9'
bind_tab0 = 'Alt-0'

bind_link1 = '1'
bind_link2 = '2'
bind_link3 = '3'
bind_link4 = '4'
bind_link5 = '5'
bind_link6 = '6'
bind_link7 = '7'
bind_link8 = '8'
bind_link9 = '9'

bind_back     = 'h'
bind_forward  = 'l'

bind_reload    = 'R'
bind_bottom    = '/'
bind_edit      = 'e'
bind_new_tab   = 't'
bind_close_tab = 'T'
bind_quit      = 'q'
bind_help      = '?'

bind_sub     = 's'
bind_add_sub = 'Ctrl-S'
bind_save    = 'S'

[url-handlers]
other = 'xdg-open'

[[mediatype-handlers]]
cmd = ['mpv', '--force-window', '-']
types = ["audio", "video"]
stream = true

[cache]
max_size = 0  # no limit
max_pages = 30
timeout = 300

[subscriptions]
popup = true
update_interval = 300
workers = 3
entries_per_page = 20

[auth]
[auth.certs]
"astrobotany.mozz.us" = "~/.local/share/amfora/astrobotany-cert.pem"
[auth.keys]
"astrobotany.mozz.us" = "~/.local/share/amfora/astrobotany-key.pem"


D kakoune/.config/kak-lsp/kak-lsp.toml => kakoune/.config/kak-lsp/kak-lsp.toml +0 -4
@@ 1,4 0,0 @@
[language.zig]
filetypes = ["zig"]
roots = ["build.zig"]
command = "zls"

D kakoune/.config/kak/autoload/detection => kakoune/.config/kak/autoload/detection +0 -1
@@ 1,1 0,0 @@
/usr/share/kak/autoload/detection
\ No newline at end of file

D kakoune/.config/kak/autoload/filetype => kakoune/.config/kak/autoload/filetype +0 -1
@@ 1,1 0,0 @@
/usr/share/kak/autoload/filetype
\ No newline at end of file

D kakoune/.config/kak/autoload/new-client.kak => kakoune/.config/kak/autoload/new-client.kak +0 -1
@@ 1,1 0,0 @@
/usr/share/kak/autoload/windowing/new-client.kak
\ No newline at end of file

D kakoune/.config/kak/autoload/tools => kakoune/.config/kak/autoload/tools +0 -1
@@ 1,1 0,0 @@
/usr/share/kak/autoload/tools
\ No newline at end of file

D kakoune/.config/kak/autoload/wayland.kak => kakoune/.config/kak/autoload/wayland.kak +0 -14
@@ 1,14 0,0 @@
provide-module wayland %{

define-command wayland-terminal -params 1.. -shell-completion %{
    evaluate-commands -save-regs 'a' %{
        set-register a %arg{@}
        evaluate-commands %sh{
            setsid foot sh -c "$kak_quoted_reg_a" < /dev/null > /dev/null 2>&1 &
        }
    }
}

alias global terminal wayland-terminal

}

D kakoune/.config/kak/kakrc => kakoune/.config/kak/kakrc +0 -29
@@ 1,29 0,0 @@

## Editor

hook global WinSetOption filetype=zig %{
    set-option window formatcmd 'zig fmt --stdin'

    lsp-enable-window
    hook window -group semantic-tokens BufReload .* lsp-semantic-tokens
    hook window -group semantic-tokens NormalIdle .* lsp-semantic-tokens
    hook window -group semantic-tokens InsertIdle .* lsp-semantic-tokens
    hook -once -always window WinSetOption filetype=.* %{
        remove-hooks window semantic-tokens
    }
}

## WM

require-module wayland

## LSP

eval %sh{kak-lsp --kakoune -s $kak_session}

hook global WinSetOption filetype=(c|zig) %{
    lsp-enable-window
    lsp-auto-hover-enable
    lsp-auto-signature-help-enable
    lsp-auto-hover-insert-mode-disable
}

R packages => packages.md +14 -10
@@ 2,20 2,22 @@
greetd
greetd-tuigreet-bin

# obs
obs-studio
xdg-desktop-portal-wlr

# desktop
river-git
waybar-git
levee-git
fuzzel
amfora
firefox
1password
1password-beta

# desktop daemons
gammastep
mako
blueman
network-manager-applet
udiskie
polkit-gnome

# crypto


@@ 23,18 25,23 @@ signify
age

# spellcheck
nuspell
enchant
hunspell-en_US
hunspell-it

# fonts
ttf-jetbrains-mono
adobe-source-code-pro-fonts
gnu-free-fonts
ttf-dejavu
ttf-jetbrains-mono
ttf-liberation
ttf-ms-fonts
ttf-opensans
ttf-symbola
ttf-windows

# drivers
bluez
networkmanager
openssh
pipewire
pipewire-alsa


@@ 56,7 63,6 @@ pulsemixer
rmtrash
stow
tree
vis
words
xdg-user-dirs
xdg-utils


@@ 68,14 74,12 @@ imv

# vis plugins
vis-base16-git
vis-cscope-git
vis-fzf-open-git
vis-open_rej-git
vis-pairs-git
vis-smart-backspace-git
vis-spellcheck-git
vis-surround-git
vis-toggler-git

# programming
bash-completion

D services => services +0 -4
@@ 1,4 0,0 @@
bluetooth
NetworkManager
greetd
systemd-timesyncd

A services.md => services.md +14 -0
@@ 0,0 1,14 @@
# system

* bluetooth
* docker
* greetd
* iwd
* libvirtd
* systemd-resolved
* systemd-timesyncd
* transmission

# user

* spotifyd

D waybar/.config/waybar/config => waybar/.config/waybar/config +0 -56
@@ 1,56 0,0 @@
{
	"layer": "top",
	"position": "top",
	"height": 32,

	"modules-left": [
		"river/tags"
	],
	"modules-center": [
		"clock"
	],
	"modules-right": [
		"backlight",
		"pulseaudio",
		"battery",
		"tray"
	],

	"river/tags": {
	},
	"clock": {
		"interval": 30,
		"format": "{:%d %b %Y - %H:%M}",
		"tooltip": false
	},
	"backlight": {
		"format": "💡 {percent}%"
	},
	"pulseaudio": {
		"format": "{icon} {volume:2}%",
		"format-bluetooth": "{icon}  {volume}%",
		"format-muted": "   🔇  ",
		"format-icons": {
			"headphones": "",
			"default": [
				"🔊",
				"🔊"
			]
		},
		"tooltip": false
	},
	"battery": {
		"states": {
			"good": 95,
			"warning": 30,
			"critical": 15
		},
		"format": "{icon} {capacity}%",
		"format-icons": ["", "", "", "", ""],
		"tooltip": false
	},
	"tray": {
		"icon-size": 22,
		"spacing": 6
	}
}

D waybar/.config/waybar/style.css => waybar/.config/waybar/style.css +0 -45
@@ 1,45 0,0 @@
* {
	font-size: 16px;
	font-family: JetBrainsMono;
	border: none;
	border-radius: 0;
}

window#waybar {
	background: black;
	color: ghostwhite;
}

#clock,
#battery,
#backlight,
#pulseaudio {
	padding: 0 10px;
	margin: 0 4px;
}

#window,
#tags {
	padding: 0 0;
	margin: 0 0;
}

#tags button {
	padding: 0 10px;
	margin: 0;
}

#tags button.occupied {
	border: 2px solid lightgrey;
	padding: 0 8px;
}

#tags button.focused {
	background: lightgrey;
	color: black;
}

#battery.critical:not(.charging) {
    background-color: darkred;
    color: #ffffff;
}