Merge branch 'master' of git.greyserv.net:marrub/scripts

master
Alison G. Watson 2020-10-02 13:42:18 -06:00
commit d9ef6acfda
12 changed files with 72 additions and 72 deletions

View File

@ -5,3 +5,5 @@
editor = vi editor = vi
[gui] [gui]
spellingdictionary = none spellingdictionary = none
[pull]
ff = only

View File

@ -1,4 +1 @@
.include /etc/pulse/default.pa .include /etc/pulse/default.pa
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
#load-module module-rtp-send source=rtp.monitor destination_ip=224.0.0.56 port=4777 loop=1

View File

@ -51,11 +51,6 @@
(agw-set-key "b d" #'kill-this-buffer) (agw-set-key "b d" #'kill-this-buffer)
(agw-set-key "b e" #'ibuffer) (agw-set-key "b e" #'ibuffer)
(agw-set-key "h" #'windmove-left)
(agw-set-key "j" #'windmove-down)
(agw-set-key "k" #'windmove-up)
(agw-set-key "l" #'windmove-right)
(agw-set-key "m j" #'agw-create-back-link) (agw-set-key "m j" #'agw-create-back-link)
(agw-set-key "m k" #'agw-create-memb-link) (agw-set-key "m k" #'agw-create-memb-link)
(agw-set-key "m l" #'agw-create-mthd-link) (agw-set-key "m l" #'agw-create-mthd-link)
@ -63,6 +58,8 @@
(agw-set-key "a" #'org-archive-to-archive-sibling) (agw-set-key "a" #'org-archive-to-archive-sibling)
(agw-set-key "A" #'org-force-cycle-archived) (agw-set-key "A" #'org-force-cycle-archived)
(agw-set-key "k" #'deadgrep)
(agw-key-map-mode) (agw-key-map-mode)
(global-set-key (kbd "C-x C-<tab>") #'agw-key-map-mode) (global-set-key (kbd "C-x C-<tab>") #'agw-key-map-mode)
@ -104,6 +101,15 @@
:init :init
(defvaralias 'js-indent-level 'tab-width)) (defvaralias 'js-indent-level 'tab-width))
(use-package css-mode
:init
(defvaralias 'css-indent-offset 'tab-width))
(use-package lua-mode
:ensure t
:init
(setq lua-indent-nested-block-content-align nil))
(use-package json-mode (use-package json-mode
:ensure t :ensure t
:after js :after js
@ -111,24 +117,17 @@
(defvaralias 'json-reformat:indent-width 'tab-width)) (defvaralias 'json-reformat:indent-width 'tab-width))
(use-package mmm-mode (use-package mmm-mode
:ensure t :ensure t)
(use-package mmm-auto
:init :init
(setq mmm-submode-decoration-level 0) (setq mmm-submode-decoration-level 0)
:config :config
(require 'mmm-auto) (mmm-add-mode-ext-class 'ruby-mode nil 'here-doc))
(mmm-add-group 'rust-doc
'((rust-doc-line (use-package python
:submode markdown-mode :init
:face mmm-comment-submode-face (defvaralias 'python-indent-offset 'tab-width))
:front "///\s+"
:back "\n")
(rust-doc-block
:submode markdown-mode
:face mmm-comment-submode-face
:front "/\\*\\*"
:back "\\*\\*/")))
(mmm-add-mode-ext-class 'ruby-mode nil 'here-doc)
(mmm-add-mode-ext-class 'rust-mode nil 'rust-doc))
(use-package cc-mode (use-package cc-mode
:mode (("\\.zsc\\'" . c-mode) :mode (("\\.zsc\\'" . c-mode)
@ -167,7 +166,6 @@
(use-package rust-mode (use-package rust-mode
:ensure t :ensure t
:hook ((rust-mode . mmm-mode))
:init :init
(defvaralias 'rust-indent-offset 'tab-width)) (defvaralias 'rust-indent-offset 'tab-width))
@ -231,7 +229,7 @@
;; adjustments ;; adjustments
(use-package smart-tabs-mode (use-package smart-tabs-mode
:ensure t :ensure t
:after (fish-mode glsl-mode rust-mode) :after (fish-mode glsl-mode rust-mode lua-mode)
:config :config
(smart-tabs-add-language-support powershell powershell-mode-hook (smart-tabs-add-language-support powershell powershell-mode-hook
((powershell-indent-line . powershell-indent))) ((powershell-indent-line . powershell-indent)))
@ -242,12 +240,15 @@
(smart-tabs-add-language-support glsl glsl-mode-hook (smart-tabs-add-language-support glsl glsl-mode-hook
((c-indent-line . c-basic-offset) ((c-indent-line . c-basic-offset)
(c-indent-region . c-basic-offset))) (c-indent-region . c-basic-offset)))
(smart-tabs-add-language-support lua lua-mode-hook
((lua-indent-line . lua-indent-level)))
(smart-tabs-insinuate (smart-tabs-insinuate
'c 'c
'fish 'fish
'glsl
'javascript 'javascript
'rust 'lua
'glsl)) 'rust))
(use-package ialign (use-package ialign
:ensure t :ensure t
@ -365,8 +366,6 @@
:config :config
(evil-mode t) (evil-mode t)
(evil-global-set-key 'normal (kbd "K w") #'deadgrep)
(evil-global-set-key 'visual (kbd "g s") #'sort-lines) (evil-global-set-key 'visual (kbd "g s") #'sort-lines)
(evil-global-set-key 'visual (kbd "g a") #'ialign)) (evil-global-set-key 'visual (kbd "g a") #'ialign))

7
fish/llvmenv Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env fish
if type -q llvmenv
set -gxa PATH (llvmenv prefix)/bin
end
## EOF

View File

@ -15,6 +15,7 @@ left_side_panel_visible = False
right_side_panel_visible = False right_side_panel_visible = False
hide-wine-non-esync-version-warning = True hide-wine-non-esync-version-warning = True
hide-wine-systemwide-install-warning = True hide-wine-systemwide-install-warning = True
show_hidden_games = false
[list view] [list view]
name_column_width = 200 name_column_width = 200

View File

@ -5,6 +5,8 @@ events {
} }
http { http {
disable_symlinks off;
include mime.types; include mime.types;
default_type application/octet-stream; default_type application/octet-stream;
sendfile on; sendfile on;
@ -12,53 +14,38 @@ http {
gzip on; gzip on;
charset utf-8; charset utf-8;
server {
listen 80;
server_name heavenisin.space;
include common.conf;
location /gopher/ {
root /srv;
index index.html index.htm;
autoindex on;
}
location / {
root /srv/http/pub;
index index.html index.htm;
}
}
server {
listen 80;
server_name mu.heavenisin.space;
include common.conf;
location / {
proxy_pass http://127.0.0.1:8000/;
}
}
upstream php-handler { upstream php-handler {
server unix:/run/php-fpm/php-fpm.sock; server unix:/run/php-fpm.sock;
}
server {
listen 80;
server_name heavenisin.space;
index index.html index.htm;
include common.conf;
root /var/www/pub_http/;
location /temp {
alias /tmp/hosting/;
}
} }
server { server {
listen 81; listen 81;
listen [::]:81; listen [::]:81;
server_name rain; root /media/store/nextcloud/;
root /usr/share/webapps/nextcloud/;
client_max_body_size 512M; client_max_body_size 512M;
fastcgi_buffers 64 4K; fastcgi_buffers 64 8K;
fastcgi_read_timeout 5m;
add_header X-Content-Type-Options nosniff; add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block"; add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none; add_header X-Robots-Tag none;
add_header X-Download-Options noopen; add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none; add_header X-Permitted-Cross-Domain-Policies none;
add_header X-Frame-Options sameorigin;
location = /robots.txt { location = /robots.txt {
allow all; allow all;

View File

@ -5,18 +5,18 @@ function notify
end end
function run_spectacle function run_spectacle
set f "$HOME/Pictures/"(date "+%y%m%d-%H%M%S")".png" set f "/tmp/"(date "+%y%m%d-%H%M%S")".png"
spectacle -b $argv -n -o "$f" spectacle -b $argv -n
if test -f "$f" if test -f "/tmp/temp.png"
mv "/tmp/temp.png" "$f"
notify -u low -c transfer "Uploading..." notify -u low -c transfer "Uploading..."
if sharenix -s Greyserv "$f" if sharenix -s Greyserv "$f"
notify -u low -c transfer.complete "Upload completed" notify -u low -c transfer.complete "Upload completed"
else else
notify -u normal -c transfer.error "Upload failed" notify -u normal -c transfer.error "Upload failed"
end end
rm "$f"
end end
rm "$f"
end end

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
exec ibus-daemon exec ibus-daemon --replace --xim --daemonize

View File

@ -12,7 +12,7 @@ export KRITA_NO_STYLE_OVERRIDE=1
# misc # misc
export PATH=$HOME/.local/bin:$HOME/.gem/ruby/2.6.0/bin:$HOME/.cabal/bin:$PATH export PATH=$HOME/.local/bin:$HOME/.gem/ruby/2.6.0/bin:$HOME/.cabal/bin:$PATH
export DOOMWADDIR=/media/store/games/doom/iwads export DOOMWADDIR=/media/store/games/doom/iwads
export EDITOR=vim export EDITOR=vi
export WINEPREFIX=$HOME/progs/winepfx export WINEPREFIX=$HOME/progs/winepfx
## EOF ## EOF

View File

@ -44,7 +44,7 @@
<string>monospace</string> <string>monospace</string>
</test> </test>
<edit name="family" mode="prepend" binding="same"> <edit name="family" mode="prepend" binding="same">
<string>Go Mono</string> <string>Courier Prime Code</string>
</edit> </edit>
</match> </match>
@ -69,7 +69,8 @@
<alias> <alias>
<family>monospace</family> <family>monospace</family>
<prefer> <prefer>
<family>Go Mono</family> <family>Courier Prime Code</family>
<family>Iosevka</family>
<family>Noto Sans Mono</family> <family>Noto Sans Mono</family>
</prefer> </prefer>
</alias> </alias>

View File

@ -1,4 +1,4 @@
Section "InputClass" Section "InputClass"
Identifier "Keyboard0" Identifier "Keyboard0"
Option "XkbOptions" "caps:ctrl_modifier,compose:ralt" Option "XkbOptions" "compose:ralt"
EndSection EndSection

View File

@ -8,11 +8,17 @@ Section "Monitor"
Option "Primary" "true" Option "Primary" "true"
EndSection EndSection
Section "Monitor"
Identifier "HDMI0"
Option "Above" "DisplayPort0"
EndSection
Section "Device" Section "Device"
Identifier "Device0" Identifier "Device0"
Driver "amdgpu" Driver "amdgpu"
Option "Monitor-DisplayPort-1" "DisplayPort0" Option "Monitor-DisplayPort-1" "DisplayPort0"
Option "Monitor-DVI-D-0" "DVI0" Option "Monitor-DVI-D-0" "DVI0"
Option "Monitor-HDMI-A-1" "HDMI0"
Option "TearFree" "true" Option "TearFree" "true"
EndSection EndSection