tweaking...
This commit is contained in:
parent
0cff311b08
commit
e7cb43f865
|
|
@ -0,0 +1,42 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Source generated colors.
|
||||
. "${HOME}/.cache/wal/colors.sh"
|
||||
|
||||
while [ true ]
|
||||
do
|
||||
|
||||
reload_pscircle() {
|
||||
pscircle \
|
||||
--max-children=60 \
|
||||
--cpulist-center=700.0:-200.0 \
|
||||
--memlist-center=700.0:200.0 \
|
||||
--output-width=1920 \
|
||||
--output-height=1080 \
|
||||
--tree-radius-increment=90 \
|
||||
--dot-radius=3 \
|
||||
--link-width=1.3 \
|
||||
--tree-font-size=12 \
|
||||
--tree-font-face=TamzenForPowerline \
|
||||
--toplists-font-size=12 \
|
||||
--toplists-font-face=TamzenForPowerline \
|
||||
--background-color=${color0:1} \
|
||||
--tree-font-color=${color6:1} \
|
||||
--link-color-min=${color6:1} \
|
||||
--link-color-max=${color6:1} \
|
||||
--toplists-font-color=${color6:1} \
|
||||
--toplists-pid-font-color=${color10:1} \
|
||||
--toplists-bar-background=${color0:1} \
|
||||
--toplists-bar-color=${color2:1} \
|
||||
--output=${HOME}/.config/wall.png &
|
||||
}
|
||||
|
||||
main() {
|
||||
reload_pscircle &
|
||||
feh --bg-scale ${HOME}/.config/wall.png &
|
||||
}
|
||||
|
||||
main
|
||||
|
||||
sleep 10
|
||||
done
|
||||
|
|
@ -0,0 +1,168 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import cairo
|
||||
from math import pi
|
||||
from time import sleep
|
||||
from subprocess import run
|
||||
from datetime import datetime
|
||||
from tempfile import NamedTemporaryFile
|
||||
|
||||
WIDTH, HEIGHT = 1920, 1080
|
||||
|
||||
FC1 = "#9aa7bd"
|
||||
FC2 = "#51617d"
|
||||
BC1 = "#ffffff"
|
||||
DC1 = "#608cc3"
|
||||
DC2 = "#b15e7c"
|
||||
LC1 = "#323c4d"
|
||||
LC2 = "#b5a262"
|
||||
BG1 = "#232936"
|
||||
|
||||
|
||||
def pointer(c: cairo.Context, t: float, r1: float, r2: float):
|
||||
o = c.get_current_point()
|
||||
c.save()
|
||||
c.rotate(t - pi / 2)
|
||||
c.rel_move_to(r1, 0)
|
||||
c.rel_line_to(r2 - r1, 0)
|
||||
c.stroke()
|
||||
c.restore()
|
||||
c.move_to(*o)
|
||||
|
||||
|
||||
def ngram(c: cairo.Context, n: int, d: int, t: float, r: float, w: float,
|
||||
h: float):
|
||||
lw = h / (2 * d - 1)
|
||||
o = c.get_current_point()
|
||||
c.save()
|
||||
c.set_line_width(lw)
|
||||
c.rotate(t)
|
||||
x, y = c.get_current_point()
|
||||
y = y + (h - lw) / 2 - r
|
||||
for i in range(d):
|
||||
z = not (n >> i) & 1
|
||||
c.move_to(x + z * lw / 2, y - i * 2 * lw)
|
||||
c.rel_line_to(w / 2 - z * lw / 2, 0)
|
||||
c.move_to(x - z * lw / 2, y - i * 2 * lw)
|
||||
c.rel_line_to(-w / 2 + z * lw / 2, 0)
|
||||
c.stroke()
|
||||
c.restore()
|
||||
c.move_to(*o)
|
||||
|
||||
|
||||
def ultimate(c: cairo.Context, t, r, e):
|
||||
o = c.get_current_point()
|
||||
c.save()
|
||||
c.rotate(t - pi / 2)
|
||||
x, y = c.get_current_point()
|
||||
c.set_source_rgb(0, 0, 0)
|
||||
c.arc(x, y, r, 0, pi)
|
||||
c.fill()
|
||||
c.set_source_rgb(1, 1, 1)
|
||||
c.arc(x, y, r, pi, 0)
|
||||
c.fill()
|
||||
c.set_source_rgb(0, 0, 0)
|
||||
c.arc(x - r / 2, y, r / 2, pi, 0)
|
||||
c.fill()
|
||||
c.set_source_rgb(1, 1, 1)
|
||||
c.arc(x + r / 2, y, r / 2, 0, pi)
|
||||
c.fill()
|
||||
c.set_source_rgb(1, 1, 1)
|
||||
c.arc(x - r / 2, y, e, 0, 2 * pi)
|
||||
c.fill()
|
||||
c.set_source_rgb(0, 0, 0)
|
||||
c.arc(x + r / 2, y, e, 0, 2 * pi)
|
||||
c.fill()
|
||||
c.restore()
|
||||
c.move_to(*o)
|
||||
|
||||
|
||||
def main():
|
||||
w, h = WIDTH, HEIGHT
|
||||
|
||||
bg1 = (int(BG1[1:3], 16) / 256, int(BG1[3:5], 16) / 256,
|
||||
int(BG1[5:7], 16) / 256)
|
||||
fc1 = FC1[1:]
|
||||
fc2 = FC2[1:]
|
||||
fc3 = (int(BC1[1:3], 16) / 256, int(BC1[3:5], 16) / 256,
|
||||
int(BC1[5:7], 16) / 256)
|
||||
dc1 = DC1[1:]
|
||||
dc2 = DC2[1:]
|
||||
lc1 = LC1[1:]
|
||||
lc2 = LC2[1:]
|
||||
|
||||
s = cairo.ImageSurface(cairo.FORMAT_ARGB32, w, h)
|
||||
c = cairo.Context(s)
|
||||
|
||||
b = 0.13 * min(w, h)
|
||||
c.translate((w - b) / 2, (h - b) / 2)
|
||||
c.scale(b, b)
|
||||
|
||||
with NamedTemporaryFile(suffix='.png') as wp:
|
||||
while True:
|
||||
c.move_to(0.5, 0.5)
|
||||
|
||||
c.set_source_rgb(*bg1)
|
||||
c.paint()
|
||||
|
||||
c.set_source_rgb(*fc3)
|
||||
|
||||
for i, n in enumerate([5, 0, 3, 7, 2, 4, 1, 6]):
|
||||
ngram(c, n, 3, i * pi / 4, 0.5, 0.25, 0.21)
|
||||
|
||||
c.set_line_width(0.01)
|
||||
t = datetime.now()
|
||||
pointer(c, pi * (t.hour / 6 + t.minute / 360), 0.08, 0.28)
|
||||
pointer(c, pi * t.minute / 30, 0.08, 0.35)
|
||||
|
||||
ultimate(c, 0, 0.04, 0.006)
|
||||
|
||||
s.write_to_png(wp.name)
|
||||
|
||||
run([
|
||||
'pscircle',
|
||||
'--output-width=%d' % w,
|
||||
'--output-height=%d' % h,
|
||||
'--root-pid=1',
|
||||
'--max-children=90',
|
||||
'--dot-radius=2',
|
||||
'--dot-border-width=1',
|
||||
'--dot-color-min=' + dc1,
|
||||
'--dot-color-max=' + dc2,
|
||||
'--dot-border-color-min=' + lc1,
|
||||
'--dot-border-color-max=' + lc2,
|
||||
'--link-width=1.25',
|
||||
'--link-convexity=0.4',
|
||||
'--background-image=~/.config/wall.png',
|
||||
'--link-color-min=' + lc1,
|
||||
'--link-color-max=' + lc2,
|
||||
'--tree-font-size=12',
|
||||
'--tree-font-face=TamzenForPowerline',
|
||||
'--tree-font-color=' + fc1,
|
||||
'--tree-anchor-proc-name=kthreadd',
|
||||
'--tree-radius-increment=%f' % (0.8547 * b),
|
||||
'--toplists-row-height=20',
|
||||
'--toplists-font-size=12',
|
||||
'--toplists-font-color=' + fc1,
|
||||
'--toplists-pid-font-color=' + fc2,
|
||||
'--toplists-font-face=TamzenForPowerline',
|
||||
'--toplists-column-padding=15',
|
||||
'--toplists-bar-width=60',
|
||||
'--toplists-bar-height=3',
|
||||
'--toplists-bar-background=' + lc1,
|
||||
'--toplists-bar-color=' + dc1,
|
||||
'--cpulist-center=%f:%f' % (0.34 * w, -0.39 * h),
|
||||
'--memlist-center=%f:%f' % (0.34 * w, 0.39 * h),
|
||||
'--background-image=' + wp.name,
|
||||
'--output=' + wp.name
|
||||
])
|
||||
|
||||
run(['feh', '--no-fehbg', '--bg-fill', wp.name])
|
||||
sleep(30)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
main()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
|
@ -317,7 +317,7 @@ for_window [instance="^package-update$" class="^URxvt$"] floating enable, move p
|
|||
bindsym $mod+F1 exec --no-startup-id mupdf ~/.config/i3/i3_guide.md.pdf
|
||||
bindsym $mod+F2 exec --no-startup-id python ~/.config/Scripts/shortcuts.py
|
||||
bindsym $mod+F3 exec --no-startup-id arandr
|
||||
bindsym $mod+F4 exec --no-startup-id systemctl hibernate
|
||||
bindsym $mod+F4 exec --no-startup-id sudo systemctl hibernate
|
||||
bindsym $mod+F5 exec --no-startup-id sudo systemctl restart NetworkManager
|
||||
bindsym $mod+F6 exec --no-startup-id urxvt -e transmission-remote-cli
|
||||
bindsym $mod+F7 exec transset -a --dec .15
|
||||
|
|
|
|||
|
|
@ -32,24 +32,20 @@ Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
|||
Plug 'dylanaraps/wal'
|
||||
Plug 'Xuyuanp/nerdtree-git-plugin'
|
||||
Plug 'mhinz/vim-startify'
|
||||
Plug 'itchyny/lightline.vim'
|
||||
Plug 'tpope/vim-fugitive'
|
||||
Plug 'tpope/vim-sensible'
|
||||
Plug 'tpope/vim-obsession'
|
||||
Plug 'junegunn/gv.vim'
|
||||
Plug 'junegunn/goyo.vim'
|
||||
Plug 'edkolev/tmuxline.vim'
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
call plug#end()
|
||||
|
||||
map <C-n> :NERDTreeToggle<CR>
|
||||
|
||||
colorscheme wal
|
||||
let g:lightline = {
|
||||
\ 'colorscheme': 'solarized',
|
||||
\ 'active': {
|
||||
\ 'right': [ [ 'lineinfo' ],
|
||||
\ [ 'percent' ],
|
||||
\ [ 'fileformat', 'fileencoding', 'filetype', 'charvaluehex' ] ]
|
||||
\ },
|
||||
\ 'component': {
|
||||
\ 'charvaluehex': '0x%B'
|
||||
\ },
|
||||
\ }
|
||||
|
||||
let g:airline_powerline_fonts = 1
|
||||
let g:airline_theme='minimalist'
|
||||
let g:tmuxline_preset = 'full'
|
||||
|
|
|
|||
|
|
@ -17,5 +17,4 @@ module-margin-right = 1
|
|||
font-0 = TamzenForPowerline:pixelsize=12;1
|
||||
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
||||
font-2 = FontAwesome:size=10.5;1
|
||||
font-3 = OpenLogos:size=12;3
|
||||
font-4 = Material Icons:size=12;3
|
||||
font-3 = Material Icons:size=12;3
|
||||
|
|
|
|||
|
|
@ -501,9 +501,9 @@ map ya shell yadm add %f
|
|||
|
||||
#Image commands
|
||||
map bk shell cp %f ~/.config/wall.png && feh --bg-scale %f
|
||||
map bg shell wpg -a %f && wpg -s %f
|
||||
map bg shell wpg -an %f && wpg -s %f
|
||||
map bt shell wal -g -f %f
|
||||
map bc shell wal --backend colorz -g -i %f && cp %f ~/.config/wall.png
|
||||
map bc shell wal --backend colorz -g -i %f && systemctl --user restart wallpaper.service
|
||||
map bw shell wal -c -a "90" -g -i %f && cp %f ~/.config/wall.png && ~/.config/Scripts/wal-set
|
||||
map bv shell wal -c -a "90" -g -l -i %f && cp %f ~/.config/wall.png && ~/.config/Scripts/wal-set
|
||||
map C shell killall w3mimgdisplay && convert -rotate 90 %s %s
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ Unit]
|
|||
Description=Continuously update the desktop wallpaper
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/python3 '${HOME}/.config/Scripts/wallpaper'
|
||||
#ExecStart=/usr/bin/python3 '${HOME}/.config/Scripts/wallpaper'
|
||||
ExecStart=/home/hate/.config/Scripts/pywall-circle.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
|
|||
|
|
@ -0,0 +1,34 @@
|
|||
[gui]
|
||||
absolute_position=
|
||||
always_on_top=true
|
||||
background_color=#<COLOR0>
|
||||
bounce=true
|
||||
bounce_duration=500
|
||||
font=TamzenForPowerline
|
||||
font_size=12
|
||||
font_variant=medium
|
||||
foreground_color=#999999
|
||||
height=18
|
||||
in_animation=38
|
||||
in_animation_duration=2000
|
||||
max_length=-1
|
||||
offset_x=0
|
||||
offset_y=0
|
||||
opacity=100
|
||||
out_animation=13
|
||||
out_animation_duration=1000
|
||||
position=top_right
|
||||
screen=
|
||||
|
||||
[icons]
|
||||
critical_icon=
|
||||
info_icon=
|
||||
warning_icon=
|
||||
|
||||
[main]
|
||||
activate_command=
|
||||
duration=6000
|
||||
enable_shortcuts=true
|
||||
host=127.0.0.1
|
||||
port=9797
|
||||
sound_command=
|
||||
|
|
@ -66,7 +66,7 @@ set -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
|||
# info on right
|
||||
set -g status-right-length 100
|
||||
#set -g status-right '#(~/.config/Scripts/status.sh)'
|
||||
set -g status-right '#(rainbarf)#(~/.config/Scripts/status.sh)'
|
||||
#set -g status-right '#(rainbarf)#(~/.config/Scripts/status.sh)'
|
||||
# info on left (no session display)
|
||||
set -g status-left-length 70
|
||||
set -g status-left " #[fg=black]#h #[fg=black]#(ip addr show dev wlp11s0 | grep "inet[^6]" | awk '{print $2}') Continuum status: #{continuum_status}"
|
||||
|
|
@ -78,6 +78,9 @@ set-option -g set-titles on
|
|||
set-option -g set-titles-string '#H:#S.#I.#P #W #T'
|
||||
set-option -g status-justify centre
|
||||
|
||||
###########################################################################
|
||||
#Tmuxline
|
||||
###########################################################################
|
||||
|
||||
############################################################################
|
||||
# Unbindings
|
||||
|
|
@ -185,8 +188,7 @@ set -g @resurrect-capture-pane-contents 'on'
|
|||
set -g @resurrect-processes ':all:'
|
||||
set -g @continuum-restore 'on'
|
||||
set -g @continuum-save-interval '10'
|
||||
# for vim
|
||||
set -g @resurrect-strategy-vim 'session'
|
||||
|
||||
# for neovim
|
||||
set -g @resurrect-strategy-nvim 'session'
|
||||
|
||||
|
|
|
|||
|
|
@ -2,4 +2,5 @@ xinput set-prop 9 289 1
|
|||
xinput set-prop 9 297 1
|
||||
xinput set-prop 14 307 1
|
||||
xinput set-prop 14 289 1
|
||||
#wal -R
|
||||
wal -R
|
||||
#$HOME/.config/wpg/wp-init.sh
|
||||
|
|
|
|||
2
.zshrc
2
.zshrc
|
|
@ -106,7 +106,7 @@ export ARCHFLAGS="-arch x86_64"
|
|||
# Import colorscheme from 'wal' asynchronously
|
||||
# & # Run the process in the background.
|
||||
# ( ) # Hide shell job control messages.
|
||||
(cat ~/.cache/wal/sequences &)
|
||||
#(cat ~/.cache/wal/sequences &)
|
||||
|
||||
# Wpg restore on terminals
|
||||
#(cat $HOME/.config/wpg/sequences &)
|
||||
|
|
|
|||
Loading…
Reference in New Issue