summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/inkscape/pages.csv47
-rw-r--r--user/sway/config11
-rw-r--r--user/vim/vimrc19
-rw-r--r--user/zed/settings.json22
-rw-r--r--user/zsh/.zshenv1
-rw-r--r--user/zsh/.zshrc1
-rw-r--r--user/zsh/zshrc-workstation.sh2
7 files changed, 98 insertions, 5 deletions
diff --git a/user/inkscape/pages.csv b/user/inkscape/pages.csv
new file mode 100644
index 0000000..75f8696
--- /dev/null
+++ b/user/inkscape/pages.csv
@@ -0,0 +1,47 @@
+#Inkscape page sizes
+#NAME, WIDTH, HEIGHT, UNIT
+Big embroidery hoop, 200, 280, mm
+Medium embroidery hoop, 200, 200, mm
+Small embroidery hoop, 140, 200, mm
+A4, 210, 297, mm
+A0, 841, 1189, mm
+A1, 594, 841, mm
+A2, 420, 594, mm
+A3, 297, 420, mm
+A5, 148, 210, mm
+A6, 105, 148, mm
+A7, 74, 105, mm
+A8, 52, 74, mm
+A9, 37, 52, mm
+A10, 26, 37, mm
+B0, 1000, 1414, mm
+B1, 707, 1000, mm
+B2, 500, 707, mm
+B3, 353, 500, mm
+B4, 250, 353, mm
+B5, 176, 250, mm
+B6, 125, 176, mm
+B7, 88, 125, mm
+B8, 62, 88, mm
+B9, 44, 62, mm
+B10, 31, 44, mm
+C0, 917, 1297, mm
+C1, 648, 917, mm
+C2, 458, 648, mm
+C3, 324, 458, mm
+C4, 229, 324, mm
+C5, 162, 229, mm
+C6, 114, 162, mm
+C7, 81, 114, mm
+C8, 57, 81, mm
+C9, 40, 57, mm
+C10, 28, 40, mm
+D1, 545, 771, mm
+D2, 385, 545, mm
+D3, 272, 385, mm
+D4, 192, 272, mm
+D5, 136, 192, mm
+D6, 96, 136, mm
+D7, 68, 96, mm
+ID Card (ISO 7810), 85.60, 53.98, mm
+Business Card (Europe), 85, 55, mm
diff --git a/user/sway/config b/user/sway/config
index 2fafff8..cf9101f 100644
--- a/user/sway/config
+++ b/user/sway/config
@@ -18,7 +18,7 @@ set $term foot
set $menu wmenu-run
### Output configuration
-exec_always <~/repos/pad/roadmap.md sed 's/(.\+)//' | set-wallpaper
+exec_always <~/repos/notes/roadmap.md sed 's/(.\+)//' | set-wallpaper
# Example configuration:
#
@@ -57,6 +57,13 @@ input "type:keyboard" {
xkb_file "~/config/colematik/colematik.xkb"
}
+input "10429:2395:UGTABLET_Artist_Pro_16_(Gen2)" {
+ map_to_output "DP-1"
+}
+input "10429:514:Hanvon_Ugee_Shortcut_Remote_Keyboard" {
+ xkb_layout "us"
+}
+
### Key bindings
#
# Basics:
@@ -82,6 +89,8 @@ input "type:keyboard" {
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+q exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
+
+ bindsym $mod+m exec foot zsh -c 'cd ~/repos/notes && ed --blank'
#
# Moving around:
#
diff --git a/user/vim/vimrc b/user/vim/vimrc
index b65deb0..952f863 100644
--- a/user/vim/vimrc
+++ b/user/vim/vimrc
@@ -1,4 +1,23 @@
syntax on
+" Don't break words in the middle.
+set linebreak
+
+" Enable easy copying between different vim instances.
+set clipboard=unnamed
+
+" Wayland clipboard workaround (see https://github.com/vim/vim/issues/5157).
+if !empty($WAYLAND_DISPLAY) && executable('wl-copy') && executable('wl-paste')
+ " enable focus reporting
+ let &t_fe = "\<Esc>[?1004h"
+ let &t_fd = "\<Esc>[?1004l"
+
+ augroup wl-clipboard
+ autocmd!
+ autocmd FocusLost * if @" != '' | call system('wl-copy --trim-newline', @") | endif
+ autocmd FocusGained * let @" = system('wl-paste -n')
+ augroup END
+endif
+
" Enable pasting with middle mouse click in insert mode.
set mouse=
diff --git a/user/zed/settings.json b/user/zed/settings.json
index 8614205..d2945a4 100644
--- a/user/zed/settings.json
+++ b/user/zed/settings.json
@@ -25,6 +25,24 @@
}
]
},
+ // By default Zed autoformats a lot of file formats (e.g. HTML, TOML, SQL) with
+ // formatters that aren't used by most projects. So I'm turning format_on_save
+ // off by default and then on for the programming languages that I use.
+ "format_on_save": "off",
+ "languages": {
+ "Go": {
+ "format_on_save": "on"
+ },
+ "Nix": {
+ "language_servers": ["nixd"]
+ },
+ "Rust": {
+ "format_on_save": "on"
+ },
+ "TypeScript": {
+ "format_on_save": "on"
+ }
+ },
"lsp": {
"rust-analyzer": {
"binary": {
@@ -52,7 +70,7 @@
"features": {
"edit_prediction_provider": "none"
},
- "assistant": {
+ "agent": {
"enabled": false,
"version": "2"
},
@@ -61,7 +79,7 @@
"button": false
},
"chat_panel": {
- "button": false
+ "button": "never"
},
"notification_panel": {
"button": false
diff --git a/user/zsh/.zshenv b/user/zsh/.zshenv
new file mode 100644
index 0000000..56a09b1
--- /dev/null
+++ b/user/zsh/.zshenv
@@ -0,0 +1 @@
+export VISUAL=vim
diff --git a/user/zsh/.zshrc b/user/zsh/.zshrc
index bc9fe0c..aa65059 100644
--- a/user/zsh/.zshrc
+++ b/user/zsh/.zshrc
@@ -48,7 +48,6 @@ SAVEHIST=1000000000
export XDG_CACHE_HOME=$HOME/.cache
export XDG_CONFIG_HOME=$HOME/.config
-export VISUAL=vim
export INPUTRC=$XDG_CONFIG_HOME/readline/inputrc
export PYTHON_BASIC_REPL=1 # use readline (Python >=3.13 defaults to its own REPL which has no vi keybindings)
diff --git a/user/zsh/zshrc-workstation.sh b/user/zsh/zshrc-workstation.sh
index e027208..93ac430 100644
--- a/user/zsh/zshrc-workstation.sh
+++ b/user/zsh/zshrc-workstation.sh
@@ -3,7 +3,7 @@
## Aliases
alias code='codium'
alias zed=zeditor
-alias tokei='tokei -s code -n commas'
+alias scc='scc --no-cocomo --no-size --no-gen --sort code'
## Environment variables
export CARGO_HOME="$HOME/.local/share/cargo"