Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
kbtz committed Aug 7, 2022
1 parent 32089d3 commit 9b66ab9
Show file tree
Hide file tree
Showing 13 changed files with 207 additions and 35 deletions.
3 changes: 0 additions & 3 deletions cfg/nvim/kbd.vim
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ NLL r :silent\ w\ <bar>\ source\ $MYVIMRC<CR>
NL n :tabe quickOpen
NL N none createFileFromExplorer workbench.files

NL t :tabn<CR> nextEditorInGroup
NL T :tabp<CR> previousEditorInGroup

NL <ESC> :q!<CR> closeActiveEditor

NL s :w<CR> files.save
Expand Down
2 changes: 1 addition & 1 deletion cfg/rc.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export OLDPATH=$PATH
export PATH="/usr/bin:~/.local/bin"
export PATH="/usr/bin:~/.local/bin:./bin"

source .f
cd ~f
Expand Down
9 changes: 6 additions & 3 deletions cfg/vs/cfg.jsonc
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
{
"[html]": {
"editor.defaultFormatter": "Vue.volar"
"editor.defaultFormatter": "vscode.html-language-features"
},
"[raku]": {
"editor.bracketPairColorization.enabled": false,
"editor.unicodeHighlight.ambiguousCharacters": false,
"editor.wordSeparators": "`~!#^&*()=+[{]}\\|;:'\",.<>/?"
},
"editor.wordSeparators": "`~!#^&*()=+[{]}\\|;:'\",.<>/?",
"editor.detectIndentation": false,
"editor.minimap.enabled": false,
"editor.fontFamily": "Fira Code, monospace",
"editor.fontLigatures": "'onum', 'ss01', 'ss02', 'ss03', 'ss07', 'ss08', 's09', 'cv02', 'cv16', 'cv19', 'cv23', 'cv29', 'cv30'",
"editor.fontSize": 16,
"editor.lineNumbers": "relative",
"editor.formatOnSave": true,
"editor.insertSpaces": false,
"editor.scrollBeyondLastLine": false,
Expand Down Expand Up @@ -40,6 +43,6 @@
],
"vscode-neovim.neovimExecutablePaths.linux": "/usr/bin/nvim",
"window.menuBarVisibility": "toggle",
"window.zoomLevel": 2,
"workbench.colorTheme": "Default Dark+"
"workbench.colorTheme": "Default Dark+",
"window.zoomLevel": 1
}
14 changes: 10 additions & 4 deletions cfg/vs/kbd.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@
"command": "workbench.action.navigateEditorGroups"
},
/*
nvim related */
vscome leader */
{
"key": "ctrl+t",
"command": "workbench.action.gotoSymbol",
"when": "editorFocus"
},
{
"key": "- n",
"command": "workbench.action.quickOpen",
"when": "!editorFocus"
"key": "ctrl+shift+t",
"command": "editor.gotoNextSymbolFromResult",
},
/*
nvim related */
{
"key": "alt+enter",
"command": "vscode-neovim.send",
Expand Down
155 changes: 155 additions & 0 deletions cfg/wfdesk.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
[core]
plugins = \
alpha \
autostart \
command \
animate \
cube \
fast-switcher \
invert \
move \
place \
resize \
rounded-corners \
simple-tile \
switcher \
vswitch \
wallpaper \
window-rules \
wf-info \
wm-actions \
wobbly \
zoom

close_top_view = <super> KEY_Q
vwidth = 3
vheight = 2

[wallpaper:A]
path = /home/safe/wall/sisyphus-up.jpeg
workspaces = 0

[wallpaper:B]
path = /home/safe/wall/sadko-up.jpeg
workspaces = 1

[wallpaper:C]
path = /home/safe/wall/diogenes-up.jpeg
workspaces = 2

[wallpaper:a]
path = /home/safe/wall/sisyphus-down.jpeg
workspaces = 3

[wallpaper:b]
path = /home/safe/wall/sadko-down.jpeg
workspaces = 4

[wallpaper:c]
path = /home/safe/wall/diogenes-down.jpeg
workspaces = 5

[wallpaper:break]
path = /home/safe/wall/live/break.glsl
workspaces = 9

[move]
activate = <super> BTN_LEFT

[resize]
activate = <super> BTN_RIGHT

[zoom]
modifier = <super>

[alpha]
modifier = <super> <ctrl>

[invert]
toggle = <super> KEY_N

[autostart]
notifications = mako
scheduler = doas atd

[simple-tile]
animation_duration = 0
inner_gap_size = 8
outer_horiz_gap_size = 16
outer_vert_gap_size = 16
key_toggle = <super> KEY_T

[switcher]
next_view = <super> KEY_RIGHT
prev_view = <super> KEY_LEFT

[fast-switcher]
activate = <super> KEY_J
inactive_alpha = 0.3

[vswitch]
duration = 150
wraparound = true
binding_up = <super> KEY_L
binding_down = <super> KEY_E
with_win_up = <super> <shift> KEY_L
with_win_down = <super> <shift> KEY_E
with_win_left = <super> <shift> KEY_O
with_win_right = <super> <shift> KEY_U

[cube]
rotate_left = <super> KEY_O
rotate_right = <super> KEY_U
activate = <ctrl> <alt> BTN_LEFT
initial_animation = 150

[command]
binding_terminal = <super> KEY_ENTER
command_terminal = kitty

binding_launcher = <super> KEY_D
command_launcher = dmenu_run

binding_date = <super> KEY_2
command_date = notify-send "$(date +%r)"

binding_regap = <super> KEY_3
command_regap = ~f/bin/swap ~f/cfg/wfdesk.ini simple-tile outer_horiz_gap_size 256 16

binding_regap_h = <super> <shift> KEY_3
command_regap_h = ~f/bin/swap ~f/cfg/wfdesk.ini simple-tile outer_vert_gap_size 172 16

binding_web = <super> KEY_6
command_web = chromium

binding_code = <super> KEY_7
command_code = code

binding_music = <super> KEY_8
command_music = youtube-music

binding_blanket = <super> KEY_9
command_blanket = blanket

binding_gimp = <super> KEY_0
command_gimp = gimp

binding_screenshot = <super> KEY_S
command_screenshot = slurp | grim -g - $(date '+%F_%T').jpeg

repeatable_binding_volume_up = KEY_VOLUMEUP
repeatable_binding_volume_down = KEY_VOLUMEDOWN
command_volume_up = amixer set Master 5%+
command_volume_down = amixer set Master 5%-
binding_mute = KEY_MUTE
command_mute = amixer set Master toggle

[window-rules]
alpha_ytm = on created if app_id is "YouTube Music" then set alpha 0.9
alpha_code = on created if app_id is "Code" then set alpha 0.9
alpha_blanket = on created if app_id contains "Blanket" then set alpha 0.8

[wm-actions]
toggle_sticky = <super> KEY_G
toggle_fullscreen = <super> KEY_F
toggle_always_on_top = <super> KEY_H
19 changes: 4 additions & 15 deletions cfg/wayfire.ini → cfg/wfgame.ini
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
[core]
plugins = \
alpha \
autostart \
command \
animate \
cube \
fast-switcher \
invert \
move \
place \
resize \
rounded-corners \
simple-tile \
switcher \
vswitch \
wallpaper \
window-rules \
wf-info \
wm-actions \
wobbly \
zoom
wm-actions

close_top_view = <super> KEY_Q
vwidth = 3
vheight = 2
close_top_view = <super> <shift> KEY_Q
vwidth = 1
vheight = 1

[wallpaper:A]
path = /home/safe/wall/sisyphus-up.jpeg
Expand Down
14 changes: 14 additions & 0 deletions src/dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
d() {
[ $# -ne 1 ] && cd /home/code && return
ff d $1 /home/code && cd $match
}

alias dd='vite'
alias db='build'
alias dbd='build-data'

di() {
cwd=`npm prefix`/lib
mkdir -p $cwd
ni -g --prefix $cwd
}
2 changes: 1 addition & 1 deletion src/env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export \
HISTCONTROL=ignoreboth \
LANG=en_US.UTF-8 \
LC_COLLATE=C \
PS1="==< \W> "
PS1="\001\e[1;38;5;14m\002==< \W> \001\e[1;38;5;12m\002"

sleep .1
tabs 2
3 changes: 1 addition & 2 deletions src/file
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ ch() {
}

cc() {
[ $# -ne 1 ] && cd /home/code && return
c /home/code/$1
echo use d
}

cr() {
Expand Down
8 changes: 6 additions & 2 deletions src/misc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ alias rot31="tr 'N-ZA-Mn-za-m5-90-4' 'A-Za-z0-9'"

alias wfl="tail -f /tmp/wflog"

alias gn='cya "tomorrow 04:00"'
alias gn='cya "tomorrow 05:30"'
alias nap='cya "14:30"'

alias ytd='youtube-dl'
Expand All @@ -19,7 +19,11 @@ hex() {

mus() {
ff d $1 /home/safe/music
mpv `ffm`
mpv `ffm` ${@:2}
}

musr() {
mus $1 --shuffle
}

snd() {
Expand Down
3 changes: 2 additions & 1 deletion src/node
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ nrt() { n remove @types/$1; }
nrwt() { nr $1 && nrt $1; }

nlk() {
nl @kbtz/$1
names=" $*"
nl ${names// / @kbtz/}
}

nIk() {
Expand Down
2 changes: 1 addition & 1 deletion src/sys
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cya() {
loginctl suspend
while true; do
sleep 5
snd bell
sndl bell
done
}

Expand Down
8 changes: 6 additions & 2 deletions src/wf
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
alias wfi='wf-info'
alias wft='swap ~f/cfg/wayfire.ini'
alias \
wfi='wf-info' \
wft='swap ~f/cfg/wayfire.ini' \
wfd='ln -f -s ~f/cfg/wfdesk.ini ~/.config/wayfire.ini' \
wfg='ln -f -s ~f/cfg/wfgame.ini ~/.config/wayfire.ini'

function wf() {
wayfire > ~f/run/wf-log
Expand All @@ -8,3 +11,4 @@ function wf() {
wfn() {
notify-send "$*"
}

0 comments on commit 9b66ab9

Please sign in to comment.