mirror of
https://github.com/Phantop/dotfiles
synced 2025-07-26 23:21:19 +00:00
Compare commits
3 commits
26f7354585
...
cfe1558f8c
Author | SHA1 | Date | |
---|---|---|---|
|
cfe1558f8c | ||
|
1621747cd0 | ||
|
d4e1e23469 |
|
@ -1,3 +1,4 @@
|
||||||
function wallp -w readlink
|
# Defined in /tmp/fish.UKii9e/wallp.fish @ line 2
|
||||||
gsettings set org.gnome.desktop.background picture-uri "file://(readlink -f $argv)"
|
function wallp --wraps=readlink
|
||||||
|
gsettings set org.gnome.desktop.background picture-uri file://(readlink -f $argv)
|
||||||
end
|
end
|
||||||
|
|
|
@ -14,14 +14,14 @@ config.bind('<Ctrl-Shift-M>', 'mpv --ytdl-format=bestvideo[vcodec^=avc1]+bestaud
|
||||||
|
|
||||||
config.bind('sq', 'open qr {url}')
|
config.bind('sq', 'open qr {url}')
|
||||||
config.bind('sa', 'open https://archive.is/?run=1&url={url}')
|
config.bind('sa', 'open https://archive.is/?run=1&url={url}')
|
||||||
#config.bind('sw', 'open https://conifer.rhizome.org/record/{url}')
|
config.bind('sw', 'open https://conifer.rhizome.org/record/{url}')
|
||||||
|
|
||||||
c.aliases['dotepub'] = "open javascript:(function()%7Btry%7Bvar%20d=document,w=window;if(!d.body%7C%7Cd.body.innerHTML=='')throw(0);var%20s=d.createElement('link'),h=d.getElementsByTagName('head')[0],i=d.createElement('div'),j=d.createElement('script');s.rel='stylesheet';s.href='//dotepub.com/s/dotEPUB-favlet.css';s.type='text/css';s.media='screen';h.appendChild(s);i.setAttribute('id','dotepub');i.innerHTML='%3Cdiv%20id=%22status%22%3E%3Cp%3EConversion%20in%20progress...%3C/p%3E%3C/div%3E';d.body.appendChild(i);j.type='text/javascript';j.charset='utf-8';j.src='//dotepub.com/j/dotepub.js?v=1.2&s=ask&t=epub&g=en';h.appendChild(j);%7Dcatch(e)%7Bw.alert('The%20page%20has%20no%20content%20or%20it%20is%20not%20fully%20loaded.%20Please,%20wait%20till%20the%20page%20is%20loaded.');%7D%7D)();"
|
c.aliases['dotepub'] = "open javascript:(function()%7Btry%7Bvar%20d=document,w=window;if(!d.body%7C%7Cd.body.innerHTML=='')throw(0);var%20s=d.createElement('link'),h=d.getElementsByTagName('head')[0],i=d.createElement('div'),j=d.createElement('script');s.rel='stylesheet';s.href='//dotepub.com/s/dotEPUB-favlet.css';s.type='text/css';s.media='screen';h.appendChild(s);i.setAttribute('id','dotepub');i.innerHTML='%3Cdiv%20id=%22status%22%3E%3Cp%3EConversion%20in%20progress...%3C/p%3E%3C/div%3E';d.body.appendChild(i);j.type='text/javascript';j.charset='utf-8';j.src='//dotepub.com/j/dotepub.js?v=1.2&s=ask&t=epub&g=en';h.appendChild(j);%7Dcatch(e)%7Bw.alert('The%20page%20has%20no%20content%20or%20it%20is%20not%20fully%20loaded.%20Please,%20wait%20till%20the%20page%20is%20loaded.');%7D%7D)();"
|
||||||
config.bind('se', "dotepub")
|
config.bind('se', "dotepub")
|
||||||
c.aliases['remove-sticky'] = "open javascript:(function()%7B%20let%20i%2C%20elements%20%3D%20document.querySelectorAll('body%20*')%3B%20for%20(i%20%3D%200%3B%20i%20%3C%20elements.length%3B%20i%2B%2B)%20%7B%20if(getComputedStyle(elements%5Bi%5D).position%20%3D%3D%3D%20'fixed'%20%7C%7C%20getComputedStyle(elements%5Bi%5D).position%20%3D%3D%3D%20'sticky')%7B%20elements%5Bi%5D.parentNode.removeChild(elements%5Bi%5D)%3B%20%7D%20%7D%20%7D)()"
|
c.aliases['remove-sticky'] = "open javascript:(function()%7B%20let%20i%2C%20elements%20%3D%20document.querySelectorAll('body%20*')%3B%20for%20(i%20%3D%200%3B%20i%20%3C%20elements.length%3B%20i%2B%2B)%20%7B%20if(getComputedStyle(elements%5Bi%5D).position%20%3D%3D%3D%20'fixed'%20%7C%7C%20getComputedStyle(elements%5Bi%5D).position%20%3D%3D%3D%20'sticky')%7B%20elements%5Bi%5D.parentNode.removeChild(elements%5Bi%5D)%3B%20%7D%20%7D%20%7D)()"
|
||||||
config.bind('sr', "remove-sticky")
|
config.bind('sr', "remove-sticky")
|
||||||
|
|
||||||
#config.bind('st', 'config-cycle -t content.proxy socks://localhost:9050/ system')
|
config.bind('st', 'config-cycle -t content.proxy socks://localhost:9050/ system')
|
||||||
config.bind('sca', 'config-cycle -t content.user_stylesheets "[normalize/normalize.css, adapta.css]" normalize/normalize.css')
|
config.bind('sca', 'config-cycle -t content.user_stylesheets "[normalize/normalize.css, adapta.css]" normalize/normalize.css')
|
||||||
|
|
||||||
# BEGIN MAIN CONFIGURATION #
|
# BEGIN MAIN CONFIGURATION #
|
||||||
|
|
33
.local/bin/acmus
Executable file
33
.local/bin/acmus
Executable file
|
@ -0,0 +1,33 @@
|
||||||
|
#!/usr/bin/fish
|
||||||
|
cd ~/Music/ACMUS
|
||||||
|
|
||||||
|
#set rofi rofi -sort -
|
||||||
|
|
||||||
|
if test "$argv"
|
||||||
|
if test -d "$argv"
|
||||||
|
cd "$argv"
|
||||||
|
else
|
||||||
|
set num (ls -d */ | sed -n 's/\(.\)[^ ]* */\L\1/g;/'"$argv"'/=')
|
||||||
|
set dir (ls -d */)
|
||||||
|
cd ./$dir[$num]
|
||||||
|
end
|
||||||
|
else
|
||||||
|
cd (ls -d */ |cut -f1 -d/ | eval "$rofi"dmenu -i)
|
||||||
|
end
|
||||||
|
|
||||||
|
xargs kill (pgrep (basename (status -f)) | grep -v $fish_pid) < ../.p
|
||||||
|
|
||||||
|
if not test (dirname $PWD) = (dirname (realpath (status -f)))
|
||||||
|
exit
|
||||||
|
end
|
||||||
|
|
||||||
|
if test (basename $PWD) = Kill
|
||||||
|
exit
|
||||||
|
end
|
||||||
|
|
||||||
|
while echo
|
||||||
|
mpv --no-video --loop (date +%H)* &\
|
||||||
|
jobs -p > ../.p &\
|
||||||
|
sleep (math 3600 - (date +%s) % 3600)
|
||||||
|
xargs kill < ../.p
|
||||||
|
end
|
3
.local/bin/waifu2x
Executable file
3
.local/bin/waifu2x
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
echo Usage: file scale noise
|
||||||
|
waifu2x-vulkan -i $1 -o "${1%.*}"-x$2-l$3.png -s $2 -n $3
|
Loading…
Reference in a new issue