Browse Source

Switch pager to kak where possible. Switch lockscreen to xsecurelock. Misc changes.

master
SolitudeSF 2 weeks ago
parent
commit
63487ef12e
No known key found for this signature in database
11 changed files with 44 additions and 20 deletions
  1. 9
    0
      bin/saver_mpv
  2. 7
    7
      kak.kak
  3. 2
    2
      kitty/kitty.conf
  4. 3
    1
      lc
  5. 2
    1
      nim.nim
  6. 2
    0
      ntr/finishers/lockscreen
  7. 1
    0
      ntr/profiles/default
  8. 10
    0
      ntr/templates/lockscreen
  9. 1
    1
      profile
  10. 5
    6
      sxhkd
  11. 2
    2
      xbps-src

+ 9
- 0
bin/saver_mpv View File

@@ -0,0 +1,9 @@
#!/bin/sh
exec mpv \
--wid="${XSCREENSAVER_WINDOW}" \
--no-input-terminal \
--really-quiet \
--no-stop-screensaver \
--no-audio \
--pause \
"$(cat ~/.wallpaper)"

+ 7
- 7
kak.kak View File

@@ -33,13 +33,13 @@ alias global c connect-terminal

face global LineNumbersWrapped black

addhl global/ number-lines -hlcursor -separator ' '
addhl global/ column 80 default,rgb:303030
addhl global/ regex '\h+$' 0:default,red
addhl global/ regex \b(TODO|FIXME|XXX|NOTE)\b 0:default+rb
addhl global/ show-matching
addhl global/ wrap -word -indent -marker ''
addhl global/ dynregex '%opt{curword}' 0:+b
addhl global/number-lines number-lines -hlcursor -separator ' '
addhl global/ruler column 80 default,rgb:303030
addhl global/trailing-whitespace regex '\h+$' 0:default,red
addhl global/todo regex \b(TODO|FIXME|XXX|NOTE)\b 0:default+rb
addhl global/matching-brackets show-matching
addhl global/wrap wrap -word -indent -marker ''
addhl global/current-word dynregex '%opt{curword}' 0:+b

# Keybinds


+ 2
- 2
kitty/kitty.conf View File

@@ -15,7 +15,7 @@ cursor_stop_blinking_after 15.0

scrollback_lines 2000
scrollback_pager_history_size 10
scrollback_pager less --chop-long-lines -R +INPUT_LINE_NUMBER
scrollback_pager kak -e "rmhl global/number-lines;rmhl global/wrap;exec INPUT_LINE_NUMBERg"

wheel_scroll_multiplier 5.0
click_interval 0.5
@@ -201,7 +201,7 @@ map kitty_mod+a>d set_background_opacity default
# target: os_window window tab overlay none
# new_{window,tab,os_window}{,_with_cwd} $program? $source?
# pipe $source $target $program
map kitty_mod+f1 pipe @ansi_alternate overlay less +g -R
map kitty_mod+f1 pipe @ansi_alternate overlay kakpager
# map f2 pipe @selection overlay less +g -R
map ctrl+alt+enter new_os_window_with_cwd
map ctrl+g new_tab_with_cwd tig

+ 3
- 1
lc View File

@@ -1,6 +1,6 @@
kind = "numeric cset 0123456789-_.:,%"
kind = "capsdoc cset ABCDEFGHIJKLMNOPQRSTUVWXYZ_-."
kind = "object SFX .o .a .la .so core .pyc .pyo .dvi .elc .obj"
kind = "object SFX .o .a .la .so .pyc .pyo .dvi .elc .obj"
kind = "script SFX .pl .awk .elv .sh .csh .gpi akefile .log .nims .R .js .scm .lsp .cfg .cf .conf"
kind = "compress SFX .z .gz .bz .bz2 .lz .Lz .xz 4z .zs .zs"
kind = "tarchive SFX .tar .tgz .tbz .tbz2 .tlz .txz .tLz .tzs"
@@ -15,6 +15,7 @@ kind = "audio sfx .opus .au .mp3 .wav .ogg .m4a"
kind = "video sfx .mpg .mpeg .mp4 .avi .flv .ogm .mkv .m4v .mts .m2ts .wmv .mov .swf .asf .rm .webm"
kind = "dot PFX ." #classic Unix dot file/dir/ln/etc.
kind = "onOutErr PFX o. e." #outputs from cb's "on hosts cmd" system
kind = "core PFX core"

colors = "fhot- = black"
colors = "fhot0 = PURPLE"
@@ -65,6 +66,7 @@ color="pointer:0x50:0:ɷ FHOT0"
color="header:0x58:0 fhot2"
color="source:0x60:0 fhot3"
color="object:0x68:0 fhot5"
color="core:0x68:0 fhot5"
color="backup:0x80:0 FHOT4"
color="capsdoc:0x23:0 fhot+"
color="numeric:0x21:0 fhot+"

+ 2
- 1
nim.nim View File

@@ -2,7 +2,7 @@ from macros import error

type Compiler = enum gcc = "gcc", clang = "clang"

proc setCompiler(s: string, compiler = gcc, cpp = false) =
proc setCompiler(s: string, compiler = gcc, cpp = false) {.used.} =
let c = findExe s
let cpp = (if cpp: ".cpp" else: "")
if c.len == 0:
@@ -52,3 +52,4 @@ when defined(hotcodereloading):
switch "nimcache", "nimcache"

switch "styleCheck", "hint"
switch "parallelBuild", "0"

+ 2
- 0
ntr/finishers/lockscreen View File

@@ -0,0 +1,2 @@
#!/bin/sh
chmod +x "$HOME/.local/bin/lockscreen"

+ 1
- 0
ntr/profiles/default View File

@@ -4,3 +4,4 @@ dunst: <{$XDG_CONFIG_HOME}>/dunst/dunstrc
zathura: <{$XDG_CONFIG_HOME}>/zathura/zathurarc
polybar: <{$XDG_CONFIG_HOME}>/polybar/config
rofi-theme: <{$XDG_CONFIG_HOME}>/rofi/theme.rasi
lockscreen: <{$HOME}>/.local/bin/lockscreen

+ 10
- 0
ntr/templates/lockscreen View File

@@ -0,0 +1,10 @@
#!/bin/sh
XSECURELOCK_SAVER="$DOTS_DIR/bin/saver_mpv" \
XSECURELOCK_FONT='Iosevka SS04' \
XSECURELOCK_AUTH_BACKGROUND_COLOR='<{color.bg}>' \
XSECURELOCK_AUTH_FOREGROUND_COLOR='<{color.fg}>' \
XSECURELOCK_AUTH_WARNING_COLOR='<{color1}>' \
XSECURELOCK_SHOW_HOSTNAME=0 \
XSECURELOCK_SHOW_USERNAME=0 \
XSECURELOCK_SHOW_DATETIME=1 \
exec xsecurelock

+ 1
- 1
profile View File

@@ -17,7 +17,7 @@ GPG_TTY=$(tty)
TERMINAL='kitty -1'
EDITOR=kak
VISUAL=kak
PAGER=less
PAGER=kakpager
MANPAGER=less
QT_QPA_PLATFORMTHEME=gtk2


+ 5
- 6
sxhkd View File

@@ -4,13 +4,13 @@

# power operations
super + End ; {s,S,alt + s}
i3lock && loginctl {suspend,hibernate,hybrid-sleep}
lockscreen && loginctl {suspend,hibernate,hybrid-sleep}

super + End ; {r,p}
loginctl {reboot,poweroff}

super + End ; {l,b}
{i3lock,xset dpms force off}
{lockscreen,xset dpms force off}

alt + Tab
rofi-windowswitcher
@@ -25,6 +25,9 @@ super + {_,shift + }Print
super + Return
exec kitty -1

super + Home
exec rofi -modi calc -show calc

super + space
exec rofi -show drun

@@ -149,10 +152,6 @@ super + ctrl + {1-9}
super + ctrl + space
bspc node -p cancel

# cancelthe 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
#

+ 2
- 2
xbps-src View File

@@ -1,9 +1,9 @@
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block"
CFLAGS="-flto=8 ${GRAPHITE} -ftree-vectorize"
CFLAGS="-flto=6 ${GRAPHITE} -ftree-vectorize"
CXXFLAGS="${CFLAGS}"
LDFLAGS="${CFLAGS} -fuse-linker-plugin"

XBPS_MAKEJOBS=8
XBPS_MAKEJOBS=6
XBPS_CCACHE=yes
XBPS_ALLOW_RESTRICTED=yes


Loading…
Cancel
Save