First few new slackware configs
This commit is contained in:
parent
2f46871e56
commit
585cc29048
9 changed files with 215 additions and 9 deletions
|
|
@ -5,3 +5,10 @@ starship init fish | source
|
|||
|
||||
# Load aliases if they exist
|
||||
test -f ~/.config/fish/aliases.fish && source ~/.config/fish/aliases.fish
|
||||
|
||||
# Parse Slackware's system locale setup cleanly into Fish configuration
|
||||
if test -f /etc/profile.d/lang.sh
|
||||
set -gx LANG (string match -r '(?<=export LANG=).*' < /etc/profile.d/lang.sh | string trim -c '"\'')
|
||||
end
|
||||
|
||||
set -gx LANG en_US.UTF-8
|
||||
|
|
|
|||
3
config/fish/functions/nyxt.fish
Normal file
3
config/fish/functions/nyxt.fish
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
function nyxt
|
||||
flatpak run engineer.atlas.Nyxt $argv
|
||||
end
|
||||
43
config/kanata/kanata.kbd
Normal file
43
config/kanata/kanata.kbd
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
;; Kanata Configuration
|
||||
|
||||
(defcfg
|
||||
process-unmapped-keys yes
|
||||
)
|
||||
|
||||
;; Source layout - matches physical key positions
|
||||
(defsrc
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
caps a s d f g h j k l ; ' ret
|
||||
lsft z x c v b n m , . / rsft
|
||||
lctl lmet lalt spc ralt rmet rctl up
|
||||
left down rght
|
||||
)
|
||||
|
||||
;; Aliases for cleaner configuration
|
||||
(defalias
|
||||
;; Modifiers and special keys
|
||||
ctl lctl ;; Regular control key
|
||||
cps (tap-hold 200 150 esc lctl) ;; Caps = Esc on tap, Ctrl on hold
|
||||
met (layer-toggle meta) ;; Meta (Windows/Command) key with layer
|
||||
)
|
||||
|
||||
;; Default layer
|
||||
(deflayer default
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
@cps a s d f g h j k l ; ' ret
|
||||
lsft z x c v b n m , . / rsft
|
||||
@ctl lalt lmet spc rmet ralt rmet _
|
||||
_ _ _
|
||||
)
|
||||
|
||||
;; Meta (Windows/Command) layer
|
||||
(deflayer meta
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ _ _ _ _ left down up rght _ _ _
|
||||
_ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ _ _ _ _ _ _
|
||||
_ _ _
|
||||
)
|
||||
26
config/kanata/rc.kanata
Normal file
26
config/kanata/rc.kanata
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
KANATA_BIN="/usr/local/bin/kanata"
|
||||
KANATA_CFG="/home/green/.config/kanata/kanata.kbd"
|
||||
PIDFILE="/var/run/kanata.pid"
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Starting kanata..."
|
||||
$KANATA_BIN --cfg $KANATA_CFG &
|
||||
echo $! > $PIDFILE
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping kanata..."
|
||||
kill $(cat $PIDFILE) && rm -f $PIDFILE
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
41
config/nyxt/config.lisp
Normal file
41
config/nyxt/config.lisp
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
;; Nyxt Configuration
|
||||
|
||||
;; Theme - OceanicNext
|
||||
(define-configuration browser
|
||||
((theme (make-instance 'theme:theme
|
||||
:dark-p t
|
||||
:background-color "#1B2B34"
|
||||
:on-background-color "#CDD3DE"
|
||||
:primary-color "#6699CC"
|
||||
:on-primary-color "#1B2B34"
|
||||
:secondary-color "#4F5B66"
|
||||
:on-secondary-color "#CDD3DE"
|
||||
:accent-color "#99C794"
|
||||
:on-accent-color "#1B2B34"))))
|
||||
|
||||
;; Enable vi keybindings and dark mode globally
|
||||
(define-configuration web-buffer
|
||||
((default-modes (append '(nyxt/mode/vi:vi-normal-mode
|
||||
nyxt/mode/force-https:force-https-mode)
|
||||
%slot-value%))
|
||||
;; Request dark mode from sites that support it
|
||||
(prefers-color-scheme :dark)))
|
||||
|
||||
;; Default search engine
|
||||
(define-configuration context-buffer
|
||||
((search-engines (list (make-instance 'search-engine
|
||||
:shortcut "ddg"
|
||||
:search-url "https://duckduckgo.com/?q=~a"
|
||||
:fallback-url (quri:uri "https://duckduckgo.com"))))))
|
||||
|
||||
;; Send video URLs to mpv
|
||||
(define-command-global mpv-current-url ()
|
||||
"Open the current page URL in mpv."
|
||||
(uiop:launch-program (list "mpv" (render-url (url (current-buffer))))))
|
||||
|
||||
(define-configuration web-buffer
|
||||
((context-menu-commands (append %slot-value%
|
||||
(list (make-instance 'command :name "Open in mpv"
|
||||
:fn (lambda ()
|
||||
(uiop:launch-program
|
||||
(list "mpv" (render-url (url (current-buffer)))))))))))))
|
||||
|
|
@ -2,8 +2,18 @@ local wezterm = require 'wezterm'
|
|||
local config = {}
|
||||
|
||||
config.color_scheme = 'OceanicNext (base16)'
|
||||
config.font = wezterm.font 'FiraCode Nerd Font Mono'
|
||||
config.font_size = 12
|
||||
-- config.font = wezterm.font 'FiraCode Nerd Font Mono'
|
||||
|
||||
config.font = wezterm.font_with_fallback {
|
||||
"FiraCode Nerd Font Mono",
|
||||
{ family = "Noto Color Emoji", assume_emoji_presentation = true },
|
||||
}
|
||||
|
||||
config.font_size = 14
|
||||
config.enable_tab_bar = false
|
||||
|
||||
-- Wayland-specific settings
|
||||
config.enable_wayland = true
|
||||
config.window_decorations = "NONE"
|
||||
|
||||
return config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue