11 changed files with 137 additions and 47 deletions
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh |
||||
wall_path=$HOME/.wallpaper |
||||
cmd='hsetroot -full' |
||||
[ -n "$1" ] && printf %s "$1" >"$wall_path" |
||||
$cmd "$(cat "$wall_path")" |
@ -1,30 +1,42 @@
@@ -1,30 +1,42 @@
|
||||
conf = (get-env XDG_CONFIG_HOME) |
||||
dot = (get-env DOTS_DIR) |
||||
ntrtmp = $conf/ntr/templates |
||||
setini = ['-e' 'set buffer filetype ini'] |
||||
fn e [@a]{ kak $@a } |
||||
|
||||
fn profile { e $E:HOME/.profile } |
||||
fn sx { e $conf/sx/sxrc } |
||||
fn git { e $conf/git/config } |
||||
fn xbps-src { e -e 'set buffer filetype sh' $E:XBPS_DISTDIR/etc/conf } |
||||
fn bspwm { e $conf/bspwm/bspwmrc } |
||||
fn sxhkd { e $conf/sxhkd/sxhkdrc; pkill -USR1 -x sxhkd } |
||||
fn polybar { e $ntrtmp/polybar } |
||||
fn rofi { e $conf/rofi/config.rasi } |
||||
fn dunst { e $ntrtmp/dunst } |
||||
fn elvish { pwd=~/.elvish e (fd . -L -e elv | fzy) } |
||||
fn nim { e $conf/nim/config.nims } |
||||
fn min { e $E:HOME/.minrc } |
||||
fn ntr { pwd=$conf/ntr e (fd . -L | fzy) } |
||||
fn splug { e $conf/splug/config.toml } |
||||
fn kitty { e $@setini $conf/kitty/kitty.conf } |
||||
fn kitty-diff { e $@setini $conf/kitty/diff.conf } |
||||
fn kitty-colors { e $@setini $dot/ntr/templates/kitty-colors } |
||||
fn ranger { e $conf/ranger/rc.conf } |
||||
fn rifle { e $conf/ranger/rifle.conf } |
||||
fn kak { e $conf/kak/kakrc } |
||||
fn pqiv { e $conf/pqivrc } |
||||
fn mpv { e $conf/mpv/mpv.conf } |
||||
fn ncmpcpp { e $@setini $conf/ncmpcpp/config } |
||||
fn bedrock { e /bedrock/etc/bedrock.conf } |
||||
fn list [@a]{ |
||||
fd . -L -t f $@a |
||||
} |
||||
fn select [@a]{ |
||||
sk --height=35% --layout=reverse -m $@a |
||||
} |
||||
fn edit [&type='' @a]{ |
||||
settype = [] |
||||
if (not-eq $type '') { |
||||
settype = ['-e' 'set buffer filetype '$type] |
||||
} |
||||
kak $@settype $@a |
||||
} |
||||
|
||||
fn profile { edit $E:HOME/.profile } |
||||
fn sx { edit &type=sh $conf/sx/sxrc } |
||||
fn git { edit $conf/git/config } |
||||
fn xbps-src { edit &type=sh $E:XBPS_DISTDIR/etc/conf } |
||||
fn bspwm { edit &type=sh $conf/bspwm/bspwmrc } |
||||
fn sxhkd { edit $conf/sxhkd/sxhkdrc; pkill -USR1 -x sxhkd } |
||||
fn polybar { edit $ntrtmp/polybar } |
||||
fn rofi { edit &type=css $conf/rofi/config.rasi } |
||||
fn dunst { edit $ntrtmp/dunst } |
||||
fn elvish { pwd=~/.elvish edit (list -edit elv | select) } |
||||
fn nim { edit $conf/nim/config.nims } |
||||
fn min { edit $E:HOME/.minrc } |
||||
fn ntr { pwd=$conf/ntr edit (list | select) } |
||||
fn splug { edit $conf/splug/config.toml } |
||||
fn kitty { edit &type=ini $conf/kitty/kitty.conf } |
||||
fn kitty-diff { edit &type=ini $conf/kitty/diff.conf } |
||||
fn kitty-colors { edit &type=ini $dot/ntr/templates/kitty-colors } |
||||
fn ranger { edit $conf/ranger/rc.conf } |
||||
fn rifle { edit $conf/ranger/rifle.conf } |
||||
fn kak { edit $conf/kak/kakrc } |
||||
fn pqiv { edit $conf/pqivrc } |
||||
fn mpv { edit $conf/mpv/mpv.conf } |
||||
fn ncmpcpp { edit &type=ini $conf/ncmpcpp/config } |
||||
fn bedrock { edit /bedrock/etc/bedrock.conf; sudo brl apply } |
||||
|
@ -1,2 +1,2 @@
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh |
||||
[ -n "$NTR_wallpaper" ] && setroot --store -z "$NTR_wallpaper" || return 0 |
||||
[ -n "$NTR_wallpaper" ] && wlp "$NTR_wallpaper" |
||||
|
@ -0,0 +1,70 @@
@@ -0,0 +1,70 @@
|
||||
from pygments.style import Style |
||||
from pygments.token import ( |
||||
Comment, |
||||
Error, |
||||
Keyword, |
||||
Literal, |
||||
Name, |
||||
Number, |
||||
Operator, |
||||
String, |
||||
Text, |
||||
) |
||||
|
||||
|
||||
class NTRStyle(Style): |
||||
base00 = "<{color0}>" |
||||
base01 = "<{color1}>" |
||||
base02 = "<{color2}>" |
||||
base03 = "<{color3}>" |
||||
base04 = "<{color4}>" |
||||
base05 = "<{color5}>" |
||||
base06 = "<{color6}>" |
||||
base07 = "<{color7}>" |
||||
base08 = "<{color8}>" |
||||
base09 = "<{color9}>" |
||||
base0a = "<{color10}>" |
||||
base0b = "<{color11}>" |
||||
base0c = "<{color12}>" |
||||
base0d = "<{color13}>" |
||||
base0e = "<{color14}>" |
||||
base0f = "<{color15}>" |
||||
|
||||
default_style = "" |
||||
|
||||
background_color = base00 |
||||
highlight_color = base02 |
||||
|
||||
styles = { |
||||
Text: base05, |
||||
Error: base08, # .err |
||||
Comment: base03, # .c |
||||
Comment.Preproc: base0f, # .cp |
||||
Comment.PreprocFile: base0b, # .cpf |
||||
Keyword: base0e, # .k |
||||
Keyword.Type: base08, # .kt |
||||
Name.Attribute: base0d, # .na |
||||
Name.Builtin: base0d, # .nb |
||||
Name.Builtin.Pseudo: base08, # .bp |
||||
Name.Class: base0d, # .nc |
||||
Name.Constant: base09, # .no |
||||
Name.Decorator: base09, # .nd |
||||
Name.Function: base0d, # .nf |
||||
Name.Namespace: base0d, # .nn |
||||
Name.Tag: base0e, # .nt |
||||
Name.Variable: base0d, # .nv |
||||
Name.Variable.Instance: base08, # .vi |
||||
Number: base09, # .m |
||||
Operator: base0c, # .o |
||||
Operator.Word: base0e, # .ow |
||||
Literal: base0b, # .l |
||||
String: base0b, # .s |
||||
String.Interpol: base0f, # .si |
||||
String.Regex: base0c, # .sr |
||||
String.Symbol: base09, # .ss |
||||
} |
||||
|
||||
|
||||
NTRStyle.__name__ = "NTRStyle" |
||||
globals()[NTRStyle.__name__] = globals()["NTRStyle"] |
||||
del globals()["NTRStyle"] |
Loading…
Reference in new issue