├── zsh
├── .zprofile
├── .zsh.d
│ ├── hist.zsh
│ ├── syntax.zsh
│ ├── compl.zsh
│ ├── env.zsh
│ ├── alias.zsh
│ └── fuckingstupidkeyshit.zsh
└── .zshrc
├── .gitignore
├── emacs
└── .emacs.d
│ ├── eshell
│ └── alias
│ ├── alias.el
│ ├── snippets
│ ├── java-mode
│ │ ├── sout
│ │ ├── isc
│ │ ├── scni
│ │ ├── psvm
│ │ ├── fxe
│ │ └── fxi
│ └── org-mode
│ │ ├── mintjava
│ │ ├── minthaskell
│ │ ├── mintblockjava
│ │ └── mintblockhaskell
│ ├── init.el.old
│ └── custom
│ └── pkg.el
├── scripts
└── bin
│ ├── ecksdee
│ ├── truebeauty
│ ├── wp
│ ├── ubvps
│ ├── greeting
│ ├── eyes
│ ├── dvp
│ ├── xrq
│ ├── dt
│ ├── edp
│ ├── invert
│ ├── hex2col
│ ├── nbvid
│ ├── dplanck
│ ├── emms-print-metadata
│ ├── psrch
│ ├── stm
│ ├── hdmi
│ ├── incdir.el
│ ├── rofilauncher
│ ├── irc
│ ├── xwait
│ ├── funcbutton
│ ├── edbrowse-dtach
│ ├── hhbsp
│ ├── dvtm-custom
│ ├── popup
│ ├── xrec
│ ├── fplanck
│ ├── dwmclock
│ ├── crc
│ ├── brws
│ ├── hhjp
│ ├── nx
│ ├── panelsrc
│ ├── wpchange
│ ├── compfocus
│ ├── setup-chroot
│ ├── csc
│ ├── projectpi_tmux
│ ├── npaa
│ ├── myterm
│ ├── pulsar
│ ├── drive
│ ├── rainbow
│ ├── timer
│ ├── csc-hlwm
│ ├── clockbarmh
│ ├── simplerscript
│ ├── col2puls
│ ├── mp
│ ├── w3myt
│ ├── piper
│ ├── cpu
│ ├── imgcmp
│ ├── musicart
│ ├── ttycolrc
│ ├── powerbar
│ ├── csc-wc
│ ├── csc-cwm
│ ├── wsnum
│ ├── musicbar
│ ├── csc-2bwm
│ ├── xresawk
│ ├── clockbar
│ ├── mknonsense
│ ├── sbar
│ ├── csc-xmonad
│ ├── syscat
│ ├── ntfyd
│ ├── surf_qsearch
│ └── prtmk
├── tox
└── .config
│ └── tox
│ ├── tox_save.ini
│ ├── utox_save
│ ├── tox_save.tox
│ ├── toxic_profile.db
│ ├── toxic_profile.ini
│ ├── toxic_profile.tox
│ ├── A13A3B52FFC31C8A639E5B23BD3A775635E8C8C41F9A7D4A793329418BB8B864.new.txt
│ ├── A13A3B52FFC31C8A639E5B23BD3A775635E8C8C41F9A7D4A793329418BB8B864.fmetadata
│ ├── avatars
│ └── A13A3B52FFC31C8A639E5B23BD3A775635E8C8C41F9A7D4A793329418BB8B864.png
│ ├── chatlogs
│ └── B3087A-ppleater-78870E.log
│ ├── toxic.conf
│ ├── qtox.log
│ └── qtox.ini
├── mksh
├── .mkshrc
└── .mksh.d
│ ├── hist.sh
│ ├── syntax.sh
│ ├── alias.sh
│ └── env.sh
├── wmrc
└── .config
│ └── wmrc
│ ├── seruvisso
│ ├── rainbow
│ ├── sakura
│ ├── deep_thought
│ ├── bwfade
│ ├── colours
│ ├── dazzle
│ ├── seags
│ ├── thlst
│ ├── molokai
│ ├── vamp_blue
│ ├── vamp_red
│ ├── balci
│ ├── vamp_sea
│ ├── neeasade
│ ├── spacegray
│ ├── vamp_green
│ ├── vamp_sea_dark
│ ├── pnp
│ ├── glacial_urxvt
│ ├── moonbow_urxvt
│ ├── patne
│ ├── chrnbl_urxvt
│ ├── mono
│ └── config
├── sxhkd
└── .config
│ └── sxhkd
│ ├── sxhkdrc_simple
│ ├── .sxhkdrc.swp
│ ├── sxhkdrc_wc_lap
│ ├── sxhkdrc_wc
│ ├── sxhkdrc_wmrc
│ ├── dwm_sxhkdrc
│ ├── old
│ ├── sxhkdrc.old
│ ├── sxhkdrc_fyre
│ ├── sxhkdrc_fyre2
│ └── sxhkdrc_wmutils
│ └── bspwm_sxhkdrc
├── x
├── .config
│ ├── x
│ │ └── colours
│ │ │ ├── .bw.un~
│ │ │ ├── seruvisso
│ │ │ ├── greymin
│ │ │ ├── bw
│ │ │ ├── smear
│ │ │ ├── dazzle
│ │ │ ├── clean
│ │ │ ├── hot
│ │ │ ├── molokai
│ │ │ ├── washed
│ │ │ ├── jbw
│ │ │ ├── neeasade
│ │ │ ├── spacegray
│ │ │ ├── pnp
│ │ │ ├── stormy
│ │ │ ├── bw_urxvt
│ │ │ ├── patne
│ │ │ ├── glacial_urxvt
│ │ │ ├── moonbow_urxvt
│ │ │ ├── chrnbl_urxvt
│ │ │ ├── thlst_grn
│ │ │ ├── sakura
│ │ │ ├── deep_thought
│ │ │ ├── thlst
│ │ │ ├── seags
│ │ │ ├── vamp_red
│ │ │ ├── balci
│ │ │ ├── vamp_blue
│ │ │ ├── vamp_sea
│ │ │ ├── vamp_green
│ │ │ ├── vamp_sea_dark
│ │ │ ├── base16-ashes_urxvt
│ │ │ └── mono
│ └── user-dirs.dirs
├── .xinitrc
└── .Xresources
├── retawq
└── .retawq
│ ├── bookmarks.html
│ └── config
├── zathura
└── .config
│ └── zathura
│ └── zathurarc
├── windowchef
└── .config
│ └── windowchef
│ └── windowchefrc
├── README.md
├── templates
└── etc
│ └── templates
│ ├── Pkgfile
│ └── Pkgfile-git
├── rofi
├── .local
│ └── share
│ │ └── rofi
│ │ └── themes
│ │ ├── slate.rasi
│ │ └── base16-ashes.rasi
└── .config
│ ├── rofimenu
│ └── rofimenu.rasi
│ └── rofi
│ └── config.rasi
├── ncmpcpp
└── .ncmpcpp
│ └── config
├── xmonad
└── .xmonad
│ └── xmobar.conf
├── autoexec.cfg
├── bspwm
└── .config
│ └── bspwm
│ └── bspwmrc
├── vim
└── .vimrc
├── tmux
└── .tmux.conf
├── ribbon.rasi
├── nvim
└── .config
│ └── nvim
│ └── init.vim
├── dwm
└── patches
│ ├── dwm-warp-git-20160626-7af4d43.diff
│ ├── dwm-attachbottom-6.1.diff
│ ├── dwm-actualfullscreen-20191112-cb3f58a.diff
│ ├── dwm-statuspadding-20150524-c8e9479.diff
│ ├── dwm-ru_fibonacci-6.2.diff
│ ├── dwm-notitle-6.2.diff
│ ├── dwm-status2d-6.2.diff
│ ├── dwm-ru_gaps-6.2.diff
│ └── dwm-pertag-20170513-ceac8c9.diff
├── fbterm
└── .fbtermrc
├── picom
└── .config
│ └── picom.conf
├── cwm
└── .cwmrc
├── irssi
└── .irssi
│ ├── allego.theme
│ └── config
├── hlwm
└── .config
│ └── herbstluftwm
│ └── autostart
└── stumpwm
└── .config
└── stumpwm
└── config
/zsh/.zprofile:
--------------------------------------------------------------------------------
1 | . ~/.zsh.d/env.zsh
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *~
2 | emacs/.emacs.d/#*
3 |
--------------------------------------------------------------------------------
/emacs/.emacs.d/eshell/alias:
--------------------------------------------------------------------------------
1 | alias x clear $*
2 |
--------------------------------------------------------------------------------
/scripts/bin/ecksdee:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | sed s/$/" xd"/g $1 >> "$1".xd
--------------------------------------------------------------------------------
/scripts/bin/truebeauty:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | curl -L git.io/unix
3 |
--------------------------------------------------------------------------------
/scripts/bin/wp:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | SRC=$1
3 | hsetroot -fill $SRC
4 |
--------------------------------------------------------------------------------
/tox/.config/tox/tox_save.ini:
--------------------------------------------------------------------------------
1 | [Friends]
2 | Friend\size=0
3 |
--------------------------------------------------------------------------------
/tox/.config/tox/utox_save:
--------------------------------------------------------------------------------
1 | ../../.df/tox/.config/tox/utox_save
--------------------------------------------------------------------------------
/scripts/bin/ubvps:
--------------------------------------------------------------------------------
1 | ssh -i ~/etc/ubvps.pem ubuntu@52.65.74.155
2 |
--------------------------------------------------------------------------------
/tox/.config/tox/tox_save.tox:
--------------------------------------------------------------------------------
1 | ../../.df/tox/.config/tox/tox_save.tox
--------------------------------------------------------------------------------
/mksh/.mkshrc:
--------------------------------------------------------------------------------
1 | for conf in ~/.mksh.d/*.sh; do
2 | . $conf
3 | done
4 |
--------------------------------------------------------------------------------
/scripts/bin/greeting:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | toilet -f future "Welcome ${USER}!"
--------------------------------------------------------------------------------
/scripts/bin/eyes:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | redshift -l -35.29774:149.119444 -b $1 &
3 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/seruvisso:
--------------------------------------------------------------------------------
1 | #ebf5ed
2 | #9e8b47
3 | #ccc8a1
4 | #3c3c3b
5 |
--------------------------------------------------------------------------------
/mksh/.mksh.d/hist.sh:
--------------------------------------------------------------------------------
1 | HISTFILE=~/.histfile
2 | HISTSIZE=1000
3 | SAVEHIST=1000
4 |
--------------------------------------------------------------------------------
/scripts/bin/dvp:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | setxkbmap us -variant dvp -option ctrl:nocaps
3 |
--------------------------------------------------------------------------------
/zsh/.zsh.d/hist.zsh:
--------------------------------------------------------------------------------
1 | HISTFILE=~/.histfile
2 | HISTSIZE=1000
3 | SAVEHIST=1000
4 |
--------------------------------------------------------------------------------
/scripts/bin/xrq:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | xrdb -query | grep -m 1 $1 | rev | cut -b 1-7 | rev
3 |
--------------------------------------------------------------------------------
/sxhkd/.config/sxhkd/sxhkdrc_simple:
--------------------------------------------------------------------------------
1 | mod4 + d
2 | dmenu_run
3 |
4 | mod4 + c
5 | st
--------------------------------------------------------------------------------
/scripts/bin/dt:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # set window title for dvtm
3 | echo -ne "\033]0;$1\007"
4 |
--------------------------------------------------------------------------------
/scripts/bin/edp:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | xrandr --output HDMI-1 --off
3 | xrandr --output eDP-1 --auto
4 |
--------------------------------------------------------------------------------
/scripts/bin/invert:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/justinbloomfield/dotfiles/HEAD/scripts/bin/invert
--------------------------------------------------------------------------------
/emacs/.emacs.d/alias.el:
--------------------------------------------------------------------------------
1 | alias up cd ..
2 | alias c cd $1
3 | alias v find-file $1
4 | alias x clear
5 |
--------------------------------------------------------------------------------
/scripts/bin/hex2col:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/justinbloomfield/dotfiles/HEAD/scripts/bin/hex2col
--------------------------------------------------------------------------------
/zsh/.zsh.d/syntax.zsh:
--------------------------------------------------------------------------------
1 | #. /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
2 |
--------------------------------------------------------------------------------
/mksh/.mksh.d/syntax.sh:
--------------------------------------------------------------------------------
1 | #. /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
2 |
--------------------------------------------------------------------------------
/scripts/bin/nbvid:
--------------------------------------------------------------------------------
1 | youtube-dl --list-formats $1
2 | echo -n "Format: "
3 | read fmt
4 | youtube-dl -f $fmt $1
--------------------------------------------------------------------------------
/zsh/.zsh.d/compl.zsh:
--------------------------------------------------------------------------------
1 | autoload -Uz compinit
2 | compinit
3 | fpath=(/usr/local/share/zsh-completions $fpath)
4 |
--------------------------------------------------------------------------------
/scripts/bin/dplanck:
--------------------------------------------------------------------------------
1 | docker run -e keymap=justin -e keyboard=planck --rm -v $('pwd'):/qmk:rw edasque/qmk_firmware
2 |
--------------------------------------------------------------------------------
/x/.config/x/colours/.bw.un~:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/justinbloomfield/dotfiles/HEAD/x/.config/x/colours/.bw.un~
--------------------------------------------------------------------------------
/retawq/.retawq/bookmarks.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | DDG
4 |
5 |
6 |
--------------------------------------------------------------------------------
/scripts/bin/emms-print-metadata:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/justinbloomfield/dotfiles/HEAD/scripts/bin/emms-print-metadata
--------------------------------------------------------------------------------
/scripts/bin/psrch:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | prt-get search "$1"
3 | #echo -n "prt: "
4 | #read nama
5 | #ports -l | grep $nama
6 |
7 |
--------------------------------------------------------------------------------
/sxhkd/.config/sxhkd/.sxhkdrc.swp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/justinbloomfield/dotfiles/HEAD/sxhkd/.config/sxhkd/.sxhkdrc.swp
--------------------------------------------------------------------------------
/tox/.config/tox/toxic_profile.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/justinbloomfield/dotfiles/HEAD/tox/.config/tox/toxic_profile.db
--------------------------------------------------------------------------------
/tox/.config/tox/toxic_profile.ini:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/justinbloomfield/dotfiles/HEAD/tox/.config/tox/toxic_profile.ini
--------------------------------------------------------------------------------
/tox/.config/tox/toxic_profile.tox:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/justinbloomfield/dotfiles/HEAD/tox/.config/tox/toxic_profile.tox
--------------------------------------------------------------------------------
/emacs/.emacs.d/snippets/java-mode/sout:
--------------------------------------------------------------------------------
1 | # -*- mode: snippet -*-
2 | # name: java sout
3 | # key: sout
4 | # --
5 | System.out.println($0);
--------------------------------------------------------------------------------
/scripts/bin/stm:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | export DBUS_SESSION_BUS_ADDRESS="$(dbus-daemon --session --print-address --fork)"
3 | /usr/bin/steam
4 |
--------------------------------------------------------------------------------
/scripts/bin/hdmi:
--------------------------------------------------------------------------------
1 |
2 | #!/bin/sh
3 | xrandr --output HDMI-1 --auto
4 | xrandr --output HDMI-1 --above eDP-1
5 | xrandr --output eDP-1 --off
6 |
--------------------------------------------------------------------------------
/zathura/.config/zathura/zathurarc:
--------------------------------------------------------------------------------
1 | set recolor
2 | set recolor-darkcolor '#000000'
3 | set recolor-lightcolor '#cccccc'
4 | set guioptions ''
--------------------------------------------------------------------------------
/emacs/.emacs.d/snippets/org-mode/mintjava:
--------------------------------------------------------------------------------
1 | # -*- mode: snippet -*-
2 | # name: mint inline java
3 | # key: mnij
4 | # --
5 | \mintinline{java}{$0}
--------------------------------------------------------------------------------
/scripts/bin/incdir.el:
--------------------------------------------------------------------------------
1 | (defvar count 1)
2 | (while (< count 11)
3 | (mkdir (format "/home/poq/src/hsk/wk%s" count))
4 | (setq count (1+ count)))
--------------------------------------------------------------------------------
/emacs/.emacs.d/snippets/java-mode/isc:
--------------------------------------------------------------------------------
1 | # -*- mode: snippet -*-
2 | # name: java import scanner
3 | # key: isc
4 | # --
5 | import java.util.Scanner;
6 | $0
--------------------------------------------------------------------------------
/emacs/.emacs.d/snippets/org-mode/minthaskell:
--------------------------------------------------------------------------------
1 | # -*- mode: snippet -*-
2 | # name: mint inline haskell
3 | # key: mnih
4 | # --
5 | \mintinline{haskell}{$0}
--------------------------------------------------------------------------------
/scripts/bin/rofilauncher:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #. panelsrc
3 | #FG="$PANEL_FG"
4 | #BG="$PANEL_BG"
5 | #HLBG="$BORD_COL"
6 |
7 | rofi -show run -monitor -4
8 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/rainbow:
--------------------------------------------------------------------------------
1 | #770000
2 | #077000
3 | #007700
4 | #000770
5 | #000077
6 | #000770
7 | #007700
8 | #077000
9 | #770000
10 |
11 |
--------------------------------------------------------------------------------
/scripts/bin/irc:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | dt irc
4 | if [ -e /tmp/weechat ]; then
5 | dtach -a /tmp/weechat
6 | else
7 | dtach -c /tmp/weechat weechat
8 | fi
9 |
--------------------------------------------------------------------------------
/scripts/bin/xwait:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # dummy script
3 | # (c) every stupid idiot who knows bash 2016 - wtfpl
4 | #
5 |
6 | while true; do
7 | sleep 1
8 | done
9 |
--------------------------------------------------------------------------------
/emacs/.emacs.d/snippets/java-mode/scni:
--------------------------------------------------------------------------------
1 | # -*- mode: snippet -*-
2 | # name: java new scanner stdin
3 | # key: sci
4 | # --
5 | Scanner in = new Scanner(System.in);$0
6 |
--------------------------------------------------------------------------------
/emacs/.emacs.d/snippets/org-mode/mintblockjava:
--------------------------------------------------------------------------------
1 | # -*- mode: snippet -*-
2 | # name: mint block java
3 | # key: mnbj
4 | # --
5 | #+begin_src java
6 | $0
7 | #+end_src
--------------------------------------------------------------------------------
/scripts/bin/funcbutton:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . panelsrc
3 |
4 | echo '%{l}%{A:powerbar:} § %{A}' | lemonbar $PANEL_OPTS -f "font-awesome:size=10" -g 120x15+0+0 -d -p | sh
5 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/sakura:
--------------------------------------------------------------------------------
1 | #ff5ec5
2 | #f4f7fc
3 | #f1d4d6
4 | #fdc395
5 | #6e6578
6 | #cbb3c3
7 | #cca3b1
8 | #ff847c
9 | #df88bf
10 | #e0c8d6
11 | #952d2c
12 |
--------------------------------------------------------------------------------
/emacs/.emacs.d/snippets/java-mode/psvm:
--------------------------------------------------------------------------------
1 | # -*- mode: snippet -*-
2 | # name: java psvm
3 | # key: psvm
4 | # --
5 | public static void main(String[] args) {
6 | $0
7 | }
--------------------------------------------------------------------------------
/emacs/.emacs.d/snippets/org-mode/mintblockhaskell:
--------------------------------------------------------------------------------
1 | # -*- mode: snippet -*-
2 | # name: mint block haskell
3 | # key: mnbh
4 | # --
5 | #+begin_src haskell
6 | $0
7 | #+end_src
8 |
--------------------------------------------------------------------------------
/scripts/bin/edbrowse-dtach:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if [ -e /tmp/edbrowse ]; then
4 | dtach -a /tmp/edbrowse
5 | else
6 | dtach -c /tmp/edbrowse edbrowse $!
7 | fi
8 |
9 |
--------------------------------------------------------------------------------
/scripts/bin/hhbsp:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #swap the backspace and pipe key, like it is on a HHKB
3 | xmodmap -e "keycode 51 = BackSpace"
4 | xmodmap -e "keycode 22 = backslash bar"
5 |
--------------------------------------------------------------------------------
/zsh/.zshrc:
--------------------------------------------------------------------------------
1 | for conf (~/.zsh.d/*.zsh) . $conf
2 | unset conf
3 | source ~/etc/info
4 | [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
5 | . /Users/j/.nix-profile/etc/profile.d/nix.sh
6 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/deep_thought:
--------------------------------------------------------------------------------
1 | #3748a0
2 | #000f14
3 | #208ae2
4 | #102530
5 | #002566
6 | #10adee
7 | #227799
8 | #105f89
9 | #113399
10 | #001520
11 | #111d3c
12 |
--------------------------------------------------------------------------------
/tox/.config/tox/A13A3B52FFC31C8A639E5B23BD3A775635E8C8C41F9A7D4A793329418BB8B864.new.txt:
--------------------------------------------------------------------------------
1 | ../../.df/tox/.config/tox/A13A3B52FFC31C8A639E5B23BD3A775635E8C8C41F9A7D4A793329418BB8B864.new.txt
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/bwfade:
--------------------------------------------------------------------------------
1 | #DDDDDD
2 | #CCCCCC
3 | #BBBBBB
4 | #AAAAAA
5 | #999999
6 | #888888
7 | #777777
8 | #666666
9 | #555555
10 | #444444
11 | #333333
12 | #222222
13 | #111111
--------------------------------------------------------------------------------
/scripts/bin/dvtm-custom:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | dvc() {
4 | dtach -c /tmp/dvtm mp
5 | }
6 |
7 | if [ -e /tmp/dvtm ]; then
8 | dtach -a /tmp/dvtm
9 | else
10 | dvc
11 | fi
12 |
--------------------------------------------------------------------------------
/tox/.config/tox/A13A3B52FFC31C8A639E5B23BD3A775635E8C8C41F9A7D4A793329418BB8B864.fmetadata:
--------------------------------------------------------------------------------
1 | ../../.df/tox/.config/tox/A13A3B52FFC31C8A639E5B23BD3A775635E8C8C41F9A7D4A793329418BB8B864.fmetadata
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/colours:
--------------------------------------------------------------------------------
1 | #DDDDDD
2 | #CCCCCC
3 | #BBBBBB
4 | #AAAAAA
5 | #999999
6 | #888888
7 | #777777
8 | #666666
9 | #555555
10 | #444444
11 | #333333
12 | #222222
13 | #111111
--------------------------------------------------------------------------------
/scripts/bin/popup:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | MSG=${1:-"oi you dumb cunt write something"}
4 | [ -e $NTFY_FIFO_PATH ] && echo $MSG > $NTFY_FIFO_PATH
5 | #[ -e $DVTM_FIFO ] && echo $MSG > $DVTM_FIFO
6 |
7 |
--------------------------------------------------------------------------------
/scripts/bin/xrec:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | OUTPUT=${1:-/home/poq/usr/vid/recording.mp4}
4 |
5 | ffmpeg -hide_banner -loglevel panic -video_size 1600x900 -framerate 30 -f x11grab -i :0.0+0+0 ${OUTPUT}
6 |
--------------------------------------------------------------------------------
/scripts/bin/fplanck:
--------------------------------------------------------------------------------
1 | sleep 4; sudo dfu-programmer atmega32u4 erase --force; sudo dfu-programmer atmega32u4 flash /home/poq/src/qmk_firmware/planck_rev4_justin.hex; sudo dfu-programmer atmega32u4 reset
2 |
--------------------------------------------------------------------------------
/scripts/bin/dwmclock:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | while true; do
3 | # xsetroot -name " $(date '+%H:%M:%S') | $(mpc current) "
4 | xsetroot -name "┃ $(date '+%d%m%C %H:%M') ┃ $(mpc current) "
5 | sleep 5
6 | done
7 |
--------------------------------------------------------------------------------
/x/.config/x/colours/seruvisso:
--------------------------------------------------------------------------------
1 | #define bg #12100a
2 | #define fg #756637
3 | #define bl #ebf5ed
4 | #define re #9e8b47
5 | #define gr #ccc8a1
6 | #define da #3c3c3b
7 | !#5f819d
8 | !#118568
9 | !#62a04c
10 |
--------------------------------------------------------------------------------
/x/.config/x/colours/greymin:
--------------------------------------------------------------------------------
1 | #define bg #cccccc
2 | #define fg #777777
3 | #define bl #9c6ed4
4 | #define re #4D3361
5 | #define gr #9c6ed4
6 | #define da #27002e
7 | !#5f819d
8 | !#118568
9 | !#62a04c
10 | !#3088A6
11 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/dazzle:
--------------------------------------------------------------------------------
1 | #000000
2 | #222222
3 | #FF9CDB
4 | #FF9CDB
5 | #b85ed6
6 | #b85ed6
7 | #fa66dc
8 | #fa66dc
9 | #9c9fff
10 | #9c9fff
11 | #ef49ff
12 | #ef49ff
13 | #d09eff
14 | #d09eff
15 | #ffbfdd
16 | #ffbfdd
17 |
--------------------------------------------------------------------------------
/scripts/bin/crc:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | ii -i $IRC_DIR -s irc.freenode.net -n piecesofquiet -k $IRC_PASS &
3 | sleep 3
4 | echo "/j NickServ identify $IRC_PASS" > $IRC_DIR/irc.freenode.net/in
5 | sleep 3
6 | echo "/j #crux" > $IRC_DIR/irc.freenode.net/in
7 |
--------------------------------------------------------------------------------
/tox/.config/tox/avatars/A13A3B52FFC31C8A639E5B23BD3A775635E8C8C41F9A7D4A793329418BB8B864.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/justinbloomfield/dotfiles/HEAD/tox/.config/tox/avatars/A13A3B52FFC31C8A639E5B23BD3A775635E8C8C41F9A7D4A793329418BB8B864.png
--------------------------------------------------------------------------------
/scripts/bin/brws:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | vega(){
3 | URL=${1:-http://duckduckgo.com}
4 | cd $HOME/usr/dl &&
5 | dtach -c /tmp/brws w3m -cookie $URL
6 | }
7 |
8 | if [ -e /tmp/brws ]; then
9 | dtach -a /tmp/brws
10 | else
11 | vega
12 | fi
13 |
--------------------------------------------------------------------------------
/scripts/bin/hhjp:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #Assign functions to the various "dead" keys on the HHKB JP
3 | xmodmap -e "keycode 100 = BackSpace Delete"
4 | xmodmap -e "keycode 101 = Alt_L"
5 | xmodmap -e "keycode 102 = Super_L"
6 | xmodmap -e "keycode 97 = uacute Uacute"
7 |
--------------------------------------------------------------------------------
/scripts/bin/nx:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | dtach -n /tmp/nx ii -i $IRC_DIR -s irc.unix.chat -p 6697 -e ssl -n poq -k $IRC_PASS &
3 | sleep 3
4 | echo "/j NickServ identify $IRC_PASS" > $IRC_DIR/irc.unix.chat/in
5 | sleep 3
6 | echo "/j #unix" > $IRC_DIR/irc.unix.chat/in
7 |
--------------------------------------------------------------------------------
/scripts/bin/panelsrc:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # bar settings
3 |
4 | export PANEL_FONT="xft:hack:pixelsize=12"
5 | export PANEL_BG="$(xrq color0)"n
6 | export PANEL_FG="$(xrq foreground)"
7 | export PANEL_OPTS="-d -f "$PANEL_FONT" -B "$PANEL_BG" -F "$PANEL_FG" -g 180x24+70+3"
8 |
--------------------------------------------------------------------------------
/scripts/bin/wpchange:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #cd $WP_DIR && find -name "*.png" | gawk 'BEGIN{ a=1 }{ printf "mv %s %04d.png\n", $0, a++ }'
3 | mv $WP_DIR/new.png $WP_DIR/old.png
4 | wget -q https://source.unsplash.com/random -O $WP_DIR/new.png
5 | hsetroot -fill $WP_DIR/new.png
6 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/seags:
--------------------------------------------------------------------------------
1 | #6dae73
2 | #627676
3 | #75c57f
4 | #6dae73
5 | #62d7a8
6 | #6cc6ac
7 | #64a6a4
8 | #57968e
9 | #349198
10 | #64a6a4
11 | #7a7aff
12 | #4545ff
13 | #3030e6
14 | #0f0ff2
15 | #0000cc
16 | #000091
17 | #434343
18 | #349198
19 | #444444
20 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/thlst:
--------------------------------------------------------------------------------
1 | #020202
2 | #000000
3 | #eeeeee
4 | #3a3b3c
5 | #a2a2a5
6 | #4a4b4c
7 | #4a4b4c
8 | #6d6b6f
9 | #4a4b4c
10 | #15171b
11 | #4a4b4c
12 | #3a3b3c
13 | #a2a2a5
14 | #afafaf
15 | #4a4b4c
16 | #6d6b6f
17 | #dbdac1
18 | #aaaaaa
19 | #050505
20 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/molokai:
--------------------------------------------------------------------------------
1 | #
2 | #1b1d1e
3 | #505354
4 | #f92672
5 | #B52E2F
6 | #82b414
7 | #b6e354
8 | #fd971f
9 | #95C32E
10 | #56c2d6
11 | #E5BB8B
12 | #8c54fe
13 | #DC8E3A
14 | #465457
15 | #899ca1
16 | #ccccc6
17 | #f8f8f2
18 | #
19 | #82b414
20 | #82b414
21 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/vamp_blue:
--------------------------------------------------------------------------------
1 | #0000a6
2 | #020202
3 | #7a7aff
4 | #4545ff
5 | #0330e6
6 | #0f0ff2
7 | #0000cc
8 | #000091
9 | #434343
10 | #000020
11 | #7a7aff
12 | #4545ff
13 | #3030e6
14 | #0f0ff2
15 | #0000cc
16 | #000091
17 | #434343
18 | #000033
19 | #000011
20 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/vamp_red:
--------------------------------------------------------------------------------
1 | #a60000
2 | #020202
3 | #ff7a7a
4 | #ff4545
5 | #e63030
6 | #f20f0f
7 | #cc0000
8 | #910000
9 | #434343
10 | #200000
11 | #ff7a7a
12 | #ff4545
13 | #e63030
14 | #f20f0f
15 | #cc0000
16 | #910000
17 | #434343
18 | #330000
19 | #110000
20 |
--------------------------------------------------------------------------------
/scripts/bin/compfocus:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | if [ -e /home/j/etc/notfocus ]
3 | then
4 | killall compton
5 | rm /home/j/etc/notfocus
6 | compton
7 | else
8 | killall compton
9 | touch /home/j/etc/notfocus
10 | compton --config /home/j/.config/comptonfocus
11 | fi
12 |
--------------------------------------------------------------------------------
/x/.config/x/colours/bw:
--------------------------------------------------------------------------------
1 | #252525
2 | #59bf8f
3 | #5b6641
4 | #59bf8f
5 | #469f65
6 | #30623f
7 | #54711f
8 | #4ad5d2
9 | #2f4c21
10 | #d2c8bb
11 | #616654
12 | #87bfa5
13 | #719f81
14 | #45624e
15 | #657150
16 | #97d5d4
17 | #3d4c36
18 | #b9b1a5
19 | #657150
20 | #2f4c21
21 |
--------------------------------------------------------------------------------
/scripts/bin/setup-chroot:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | mount --bind /dev /mnt/dev
4 | mount --bind /tmp /mnt/tmp
5 | mount -t proc proc /mnt/proc
6 | mount -t sysfs none /mnt/sys
7 | mount -t devpts -o noexec,nosuid,gid=tty,mode=0620 devpts /mnt/dev/pts
8 |
9 | chroot /mnt /bin/bash
10 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/balci:
--------------------------------------------------------------------------------
1 | #252525
2 | #59bf8f
3 | #5b6641
4 | #59bf8f
5 | #469f65
6 | #30623f
7 | #54711f
8 | #4ad5d2
9 | #2f4c21
10 | #d2c8bb
11 | #616654
12 | #87bfa5
13 | #719f81
14 | #45624e
15 | #657150
16 | #97d5d4
17 | #3d4c36
18 | #b9b1a5
19 | #657150
20 | #2f4c21
21 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/vamp_sea:
--------------------------------------------------------------------------------
1 | #242424
2 | #20b2aa
3 | #ccffcc
4 | #03c03c
5 | #009e60
6 | #00a550
7 | #20b2aa
8 | #007755
9 | #009100
10 | #014421
11 | #002002
12 | #03c03c
13 | #009e60
14 | #00a550
15 | #20b2aa
16 | #007755
17 | #009100
18 | #014421
19 | #004422
20 | #002211
21 |
--------------------------------------------------------------------------------
/emacs/.emacs.d/snippets/java-mode/fxe:
--------------------------------------------------------------------------------
1 | # -*- mode: snippet -*-
2 | # name: javafx extends
3 | # key: fxe
4 | # --
5 | public class $1 extends javafx.application.Application {
6 | @Override
7 | public void start(Stage primaryStage) throws Exception {
8 | $0
9 | }
10 | }
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/neeasade:
--------------------------------------------------------------------------------
1 | #
2 | #1e1e1e
3 | #5f5a60
4 | #
5 | #cf6a4c
6 | #cda869
7 | #
8 | #8f9d6a
9 | #323537
10 | #
11 | #f9ee98
12 | #464b50
13 | #
14 | #7567a6
15 | #838184
16 | #
17 | #9b859d
18 | #c3c3c3
19 | #
20 | #afc4db
21 | #9b703f
22 | #
23 | #a7a7a7
24 | #ffffff
25 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/spacegray:
--------------------------------------------------------------------------------
1 | #
2 | #232830
3 | #232830
4 | #
5 | #bf616a
6 | #bf616a
7 | #
8 | #b4eb89
9 | #b4eb89
10 | #
11 | #ebcb8b
12 | #ebcb8b
13 | #
14 | #89aaeb
15 | #89aaeb
16 | #
17 | #dca432
18 | #dca432
19 | #
20 | #89ebca
21 | #89ebca
22 | #
23 | #c189eb
24 | #c189eb
25 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/vamp_green:
--------------------------------------------------------------------------------
1 | #242424
2 | #00a600
3 | #020202
4 | #7aff7a
5 | #45ff45
6 | #30e630
7 | #0ff20f
8 | #00cc00
9 | #009100
10 | #434343
11 | #002000
12 | #7aff7a
13 | #45ff45
14 | #30e630
15 | #0ff20f
16 | #00cc00
17 | #009100
18 | #434343
19 | #003300
20 | #001100
21 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/vamp_sea_dark:
--------------------------------------------------------------------------------
1 | #242424
2 | #20b2aa
3 | #000000
4 | #03c03c
5 | #009e60
6 | #00a550
7 | #20b2aa
8 | #007755
9 | #009100
10 | #014421
11 | #ccffcc
12 | #03c03c
13 | #009e60
14 | #00a550
15 | #20b2aa
16 | #007755
17 | #009100
18 | #014421
19 | #004422
20 | #002211
21 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/pnp:
--------------------------------------------------------------------------------
1 | #ef49ff
2 | #000000
3 | #222222
4 | #
5 | #FF9CDB
6 | #FF9CDB
7 | #
8 | #b85ed6
9 | #b85ed6
10 | #
11 | #d09eff
12 | #d09eff
13 | #
14 | #
15 | #9c9fff
16 | #9c9fff
17 | #
18 | #ef49ff
19 | #ef49ff
20 | #
21 | #fa66dc
22 | #fa66dc
23 | #
24 | #ffbfdd
25 | #ffbfdd
26 |
--------------------------------------------------------------------------------
/scripts/bin/csc:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | echo -n "Colourscheme: "
3 | read cls
4 | sed -i 1d ~/.zsh.d/env.zsh
5 | sed -i "1i CSC=\"$cls\"" ~/.zsh.d/env.zsh
6 | . ~/.zsh.d/env.zsh
7 | sed -i 1d ~/.Xresources
8 | sed -i "1i #include \"/home/poq/.config/x/colours/$CSC\"" ~/.Xresources
9 | /usr/bin/startx
10 |
--------------------------------------------------------------------------------
/scripts/bin/projectpi_tmux:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | tmux \
3 | new-session "ssh pi@192.168.96.82 ; read" \; \
4 | split-window "ssh pi@192.168.96.238 ; read" \; \
5 | split-window "ssh pi@192.168.96.136 ; read" \; \
6 | split-window "ssh pi@192.168.96.135 ; read" \; \
7 | select-layout even-vertical
8 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/glacial_urxvt:
--------------------------------------------------------------------------------
1 | #b82233
2 | #
3 | #d8e5e7
4 | #242f31
5 | #
6 | #437482
7 | #437482
8 | #
9 | #2f9db5
10 | #2f9db5
11 | #
12 | #242f31
13 | #242f31
14 | #
15 | #5b6362
16 | #5b6362
17 | #
18 | #555055
19 | #555055
20 | #
21 | #4f818f
22 | #4f818f
23 | #
24 | #254348
25 | #444444
26 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/moonbow_urxvt:
--------------------------------------------------------------------------------
1 | #7b8695
2 | #
3 | #1b2227
4 | #374650
5 | #
6 | #785561
7 | #8a6270
8 | #
9 | #58614f
10 | #6d7762
11 | #
12 | #7e735a
13 | #8d8063
14 | #
15 | #424a64
16 | #626c94
17 | #
18 | #4d3e4c
19 | #665064
20 | #
21 | #3c5a5d
22 | #548084
23 | #
24 | #7b8695
25 | #94a1b3
26 |
--------------------------------------------------------------------------------
/x/.config/user-dirs.dirs:
--------------------------------------------------------------------------------
1 | XDG_DESKTOP_DIR="$HOME/.config"
2 | XDG_DOCUMENTS_DIR="$HOME/usr/doc"
3 | XDG_DOWNLOAD_DIR="$HOME/usr/dl"
4 | XDG_MUSIC_DIR="$HOME/"
5 | XDG_PICTURES_DIR="$HOME/usr/img"
6 | XDG_PUBLICSHARE_DIR="$HOME/.config"
7 | XDG_TEMPLATES_DIR="$HOME/.config"
8 | XDG_VIDEOS_DIR="$HOME/usr/vid"
9 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/patne:
--------------------------------------------------------------------------------
1 | #bebdc7
2 | #bebdc7
3 | #
4 | #484848
5 | #484848
6 | #
7 | #cd8376
8 | #cd8376
9 | #
10 | #82726c
11 | #82726c
12 | #
13 | #7db0df
14 | #7db0df
15 | #
16 | #5c7186
17 | #5c7186
18 | #
19 | #ca6c5e
20 | #ca6c5e
21 | #
22 | #5e8d87
23 | #5e8d87
24 | #
25 | #bebdc7
26 | #bebdc7
27 |
--------------------------------------------------------------------------------
/scripts/bin/npaa:
--------------------------------------------------------------------------------
1 | #displays album art for currently playing song
2 | SHOWN=0
3 | while true; do
4 | if [ "$(cat /home/j/etc/crrmsc)" != "$SHOWN" ]; then
5 | pkill feh;
6 | feh -g 200x200+50+500 -Z -^ art "$(cat /home/j/etc/crrmsc)" &
7 | SHOWN=$(cat /home/j/etc/crrmsc)
8 | fi
9 | sleep 5s;
10 | done
11 |
12 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/chrnbl_urxvt:
--------------------------------------------------------------------------------
1 | #E4FCB8
2 | #
3 | #20242C
4 | #273C24
5 | #
6 | #570B0B
7 | #570B0B
8 | #
9 | #2E8B57
10 | #2E8B57
11 | #
12 | #A0AF39
13 | #A0AF39
14 | #
15 | #2F4748
16 | #2F4748
17 | #
18 | #185282
19 | #185282
20 | #
21 | #737373
22 | #737373
23 | #
24 | #C5C5C5
25 | #C5C5C5
26 | #
27 | #10122b
28 | #20242c
29 |
--------------------------------------------------------------------------------
/retawq/.retawq/config:
--------------------------------------------------------------------------------
1 | bookmarks local:~/.retawq/bookmarks.html
2 | execext-shell /bin/zsh -c
3 | keymap command
4 | J line-down
5 | j element-next
6 | K line-up
7 | k element-previous
8 | ctrl-j jump
9 | ctrl-k jump-preset
10 | h view-back
11 | H go-home
12 | l view-forward
13 | n document-search-next
14 | N window-new
15 |
--------------------------------------------------------------------------------
/scripts/bin/myterm:
--------------------------------------------------------------------------------
1 | #!/bin/dash
2 | _trap_exit()
3 | {
4 | tmux kill-session -t $$;
5 | }
6 |
7 | trap _trap_exit EXIT QUIT INT 30
8 |
9 | if ! [ -z "$@" ]; then
10 | # xst -t "Sterminal" -f "$font" "$@"
11 | xst "$@"
12 | else
13 | [ -z "$LANG" ] && export LANG="en_AU.utf8"
14 | xst tmux new-session -s $$
15 | fi
16 |
--------------------------------------------------------------------------------
/windowchef/.config/windowchef/windowchefrc:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | waitron wm_config border_width 2
3 | waitron wm_config color_unfocused 0xf9ee98
4 | waitron wm_config color_focused 0xcf6a4c
5 | #waitron wm_config gap_width 20
6 | waitron wm_config cursor_position middle
7 | waitron wm_config groups_nr 9
8 | waitron wm_config enable_sloppy_focus true
9 |
--------------------------------------------------------------------------------
/scripts/bin/pulsar:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | FREQ=${FREQ:-0.1}
4 |
5 | while :; do
6 | COLOURS=$(tac < ~/.config/wmrc/colours | cat - ~/.config/wmrc/colours | tr -d '#')
7 | for c in $COLOURS; do
8 | CUR=$(pfw)
9 | test "`wattr wh $CUR`" != "`wattr wh $(lsw -r)`" && chwb -c $c $CUR
10 | sleep $FREQ
11 | done
12 | done
13 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # dotfiles
2 |
3 | .fyls
4 |
5 | managed with stow
6 |
7 | ## Installing
8 |
9 | 1. Clone repo into a folder in your home directory (I use ".df" as mine, so that it's out of sight)
10 | 2. Enter this folder
11 | 3. Execute "stow \" and it will install the files for the program/folder/whatever into the "right" spot automagically. Amazing!
12 |
--------------------------------------------------------------------------------
/scripts/bin/drive:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | if [ $1 = "show" ]
3 | then
4 | cat var/org/driving_records
5 | else
6 | if [ -e "/tmp/drive_start" ]
7 | then
8 | sed -i "$ s/$/ \| $1 $(date)/" ~/var/org/driving_records &
9 | rm /tmp/drive_start
10 | else
11 | echo $1 >> ~/var/org/driving_records &
12 | touch /tmp/drive_start
13 | fi
14 | fi
15 |
16 |
--------------------------------------------------------------------------------
/tox/.config/tox/chatlogs/B3087A-ppleater-78870E.log:
--------------------------------------------------------------------------------
1 | 2016/07/16 [20:00:16] Justin: almost there...
2 | 2016/07/16 [20:00:37] ppleater: lol
3 | 2016/07/16 [20:05:41] Justin: alright
4 | 2016/07/16 [20:05:45] Justin: good to go
5 | 2016/07/16 [20:10:30] * ppleater has gone offline
6 | 2016/07/16 [20:10:30] * ppleater has come online
7 | 2016/07/16 [22:11:24] * ppleater has gone offline
8 |
--------------------------------------------------------------------------------
/scripts/bin/rainbow:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # z3bra - 2015 (c) wtfpl
4 | # make the current window "rainbowish"... Awesome idea from xero@nixers.net !
5 |
6 | FREQ=${FREQ:-5.5}
7 | COLORS="888888 8064cc 6480cc 64cccc 80cc64 cccc64 cc6464"
8 | CUR=$(pfw)
9 |
10 | while :; do
11 | for c in $COLORS; do
12 | chwb -c $c $(pfw)
13 | sleep $FREQ
14 | done
15 | done
16 |
--------------------------------------------------------------------------------
/scripts/bin/timer:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #NTFY_FIFO_PATH=/tmp/ntfy.fifo
4 |
5 | usage() {
6 | echo "Usage: timer : [message]"
7 | exit 1
8 | }
9 |
10 | {
11 | while [ "$(date +%H:%M)" != $1 ]; do
12 | sleep 1
13 | done
14 | mpv ~/etc/alarm.wav
15 | message=${2:-"DING DONG"}
16 | echo "$message" > "${NTFY_FIFO_PATH}"
17 | echo "$message" > "${DVTM_FIFO}"
18 | sleep 3
19 | } &
20 |
--------------------------------------------------------------------------------
/scripts/bin/csc-hlwm:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | bggcl=$(xrq color0)
3 | fccl=$(xrq color1)
4 | bgcl=$(xrq color5)
5 | ufccl=$(xrq color17)
6 | ugcl=$(xrq color4)
7 | tcl=$(xrq color8)
8 |
9 | ed -s ~/.config/herbstluftwm/autostart << EOF
10 | H
11 | /theme.active.color
12 | s/#.*$/$fccl\'/
13 | /theme.normal.color
14 | s/#.*$/$ufccl\'/
15 |
16 | EOF
17 |
18 | ed -s ~/bin/panelsrc << EOF
19 |
20 | EOF
21 |
22 | herbstclient reload
23 |
--------------------------------------------------------------------------------
/scripts/bin/clockbarmh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # requires wmutils-core and disputils
3 |
4 | . panelsrc
5 | MON="$(pfd)"
6 |
7 | ROOT_WIDTH="$(dattr w ${MON})"
8 | BAR_WIDTH="$(( $ROOT_WIDTH ))"
9 | XOFFSET="$(($ROOT_WIDTH - $BAR_WIDTH - 25 ))"
10 | FONT="$PANEL_FONT"
11 | OPTS="$PANEL_OPTS -g ${BAR_WIDTH}x15+${XOFFSET}+0 LVDS-0"
12 | while true; do
13 | echo "%{c}$(date "+%H:%M:%S, %A, %B %d")"
14 | sleep 1
15 | done | lemonbar $OPTS
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/templates/etc/templates/Pkgfile:
--------------------------------------------------------------------------------
1 | # -*-shell-*-
2 | # Description: __DESCRIPTION__
3 | # URL: __URL__
4 | # Maintainer: __MAINTAINER__
5 | # Depends on: __DEPENDENCIES__
6 |
7 | name=__NAME__
8 | version=__VERSION__
9 | release=1
10 | source=(__SOURCE__)
11 |
12 | build() {
13 | cd $name-$version
14 |
15 | make
16 | make DESTDIR=$PKG \
17 | PREFIX=/usr \
18 | MANDIR=/usr/man\
19 | install
20 | }
21 |
22 |
23 |
--------------------------------------------------------------------------------
/x/.config/x/colours/smear:
--------------------------------------------------------------------------------
1 | !! smear - dcat
2 |
3 | *background: #20242c
4 | *foreground: #b3b8c4
5 |
6 | *color0: #3e4853
7 | *color1: #b06a58
8 | *color2: #95b47b
9 | *color3: #e5c078
10 | *color4: #58698c
11 | *color5: #7b5e8d
12 | *color6: #82a1b2
13 | *color7: #cccaca
14 |
15 | *color8: #525c67
16 | *color9: #ba7e6c
17 | *color10: #a9c88f
18 | *color11: #f9d48c
19 | *color12: #6c7da0
20 | *color13: #8f72a1
21 | *color14: #96b5c6
22 | *color15: #e0dede
23 |
--------------------------------------------------------------------------------
/scripts/bin/simplerscript:
--------------------------------------------------------------------------------
1 |
2 | #!/bin/sh
3 | # Print four lines showing blocks of colors: 0-7 | 0-7bold | 8-15 | 8-15bold
4 | perl -CADS -lwe '
5 | my $block = shift || (chr(0x2588) x 3);
6 | for (["", 0], ["1;", 0], ["", 8], ["1;", 8]) {
7 | my ($bold, $offset) = @$_;
8 | my @range = map $offset + $_, 0..7;
9 | printf "%s %-6s ", $bold ? "bold" : "norm", "$range[0]-$range[-1]";
10 | print map("\e[${bold}38;5;${_}m$block", @range), "\e[0m"
11 | }
12 | ' "$@"
13 |
--------------------------------------------------------------------------------
/emacs/.emacs.d/snippets/java-mode/fxi:
--------------------------------------------------------------------------------
1 | # -*- mode: snippet -*-
2 | # name: javfx import
3 | # key: fxi
4 | # --
5 | import javafx.scene.Group;
6 | import javafx.scene.Scene;
7 | import javafx.scene.layout.StackPane;
8 | import javafx.scene.paint.Color;
9 | import javafx.scene.shape.Rectangle;
10 | import javafx.scene.shape.Circle;
11 | import javafx.scene.text.Text;
12 | import javafx.scene.text.Font;
13 | import javafx.scene.text.FontWeight;
14 | import javafx.stage.Stage;
15 |
16 | $0
--------------------------------------------------------------------------------
/scripts/bin/col2puls:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | FILE=$1
3 | OUTPUT=${2:-$HOME/.config/wmrc/$(echo $1 | rev | cut -d '/' -f1 | rev)}
4 | echo $OUTPUT
5 |
6 | if grep define $FILE
7 | then
8 | cut -d '#' -f3 $FILE | sed '/^\*/d' > $OUTPUT
9 | elif grep ! $FILE
10 | then
11 | cut -d '#' -f2 $FILE | sed '/^!/d' > $OUTPUT
12 | else
13 | cut -d '#' -f 2 $1 > $OUTPUT
14 | fi
15 |
16 | echo "$(echo "$(tac $OUTPUT)" | tac)" > $OUTPUT
17 | sed -i -e 1,2d $OUTPUT
18 | sed -i 's/^/\#/' $OUTPUT
19 |
--------------------------------------------------------------------------------
/tox/.config/tox/toxic.conf:
--------------------------------------------------------------------------------
1 | ui = {
2 | timestamps=true;
3 | alerts=true;
4 | autolog=true;
5 | time_format=12;
6 | show_typing_other=true;
7 | show_typing_self=true;
8 | show_connection_msg=true;
9 | timestamp_format="%H%M";
10 | # show_welcome_msg=false;
11 | # show_connection_msg=true;
12 | # line_join=">"
13 | # line_quit="<"
14 | # line_alert="!"
15 | # line_normal="-"
16 | #
17 | };
18 |
19 | tox = {
20 | download_path="/home/poq/usr/dl";
21 | chatlogs_path="/home/poq/var/tox/logs/";
22 | };
23 |
24 |
--------------------------------------------------------------------------------
/x/.config/x/colours/dazzle:
--------------------------------------------------------------------------------
1 | *.background : #000000
2 | *.foreground : #cccccc
3 | *color0 : #000000
4 | *color8 : #222222
5 | *color1 : #FF9CDB
6 | *color9 : #FF9CDB
7 | *color2 : #b85ed6
8 | *color10 : #b85ed6
9 | *color3 : #fa66dc
10 | *color11 : #fa66dc
11 | *color4 : #9c9fff
12 | *color12 : #9c9fff
13 | *color5 : #ef49ff
14 | *color13 : #ef49ff
15 | *color6 : #d09eff
16 | *color14 : #d09eff
17 | *color7 : #ffbfdd
18 | *color15 : #ffbfdd
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/scripts/bin/mp:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | fifo(){
3 | while true; do
4 | date +%H:%M
5 | sleep 2
6 | # echo "$(mpc current)"
7 | # sleep 5
8 | # echo "$(date +%H:%M:%S)" | skroll -r -- Dynamic length at some point probably
9 | # sleep 2
10 | done
11 | }
12 |
13 | run(){
14 | FIFO="/tmp/dvtm-status"
15 | [ -p "$FIFO" ] || mkfifo -m 600 "$FIFO" || exit 1
16 |
17 | STATUS_PID=$!
18 | fifo > "$FIFO" &
19 | dvtm -s "$FIFO" "$@" 2> /dev/null
20 | rm -f "$FIFO"
21 | }
22 |
23 | run
24 |
--------------------------------------------------------------------------------
/scripts/bin/w3myt:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | VIDEO=$(yturl -q high $1)
3 |
4 |
5 | xvid(){
6 | mpv "$VIDEO" > /dev/null 2>&1
7 | exit 0
8 | }
9 |
10 | noxvid(){
11 | mplayer -vo fbdev2 $VIDEO > /dev/null 2>&1
12 | exit 0
13 | }
14 |
15 |
16 | main() {
17 | pidof xinit >/dev/null
18 |
19 | if [[ $? -ne 0 ]] ; then
20 | xvid
21 | elif ; then
22 | noxvid
23 | fi
24 | }
25 |
26 | # main() {
27 | # (test -e ~/etc/xon) && xvid
28 | #
29 | # mplayer -vo fbdev2 $VIDEO > /dev/null 2>&1
30 | #
31 | # exit 0
32 | # }
33 |
34 | main $@
35 |
--------------------------------------------------------------------------------
/scripts/bin/piper:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Simple script to redirect url's opened from termite.
3 |
4 | # A function containing a case list of options
5 | open() {
6 | case "$1" in
7 | *youtube.com*|*youtu.be*|*vodlocker.com*|*.webm*|*.mp4*|*.avi) mpv "$1";;
8 | *.png|*.jpeg|*.gif*|*.jpg) feh -. "$1";; # feh -. = opens to fit window.
9 | *) firefox "$1"; # For everything else.;
10 | esac
11 | }
12 |
13 | # Now a for loop to iterate the list of options,
14 | for url; do
15 | open "$url"
16 | done
17 |
18 |
--------------------------------------------------------------------------------
/scripts/bin/cpu:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # z3bra - (c) wtfpl 2014
4 |
5 | usage () {
6 | cat < $DIR/ffcmp/$NOEXT.ff.bz2
15 | echo "done"
16 | fi
17 | done
18 |
--------------------------------------------------------------------------------
/scripts/bin/musicart:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # currently broken, need to fix this so that it re-reads the current thingy as well. Could just call it at intervals lole, but that's bad
3 | CURPATH=$(mpc current -f %file% | sed 's_\(.*\)/\(.*\)/\(.*\)_\1/\2/_')
4 | echo $CURPATH
5 | #FIXEDPATH=$(echo $CURPATH | sed 's/ /\\ /g')
6 | #echo $FIXEDPATH
7 | FULLPATH=/mnt/exthdd/Music/$CURPATH
8 | SHOWN=0
9 | while true; do
10 | if [ "$FULLPATH" != "$SHOWN" ]; then
11 | pkill feh;
12 | feh -Z -g 150x150+1760+25 -^ art "$FULLPATH"*.jpg &
13 | SHOWN="$FULLPATH"
14 | fi
15 | sleep 5s
16 | done
17 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/mono:
--------------------------------------------------------------------------------
1 | #020202
2 | #353535
3 | #ccc8a1
4 | #cccccc
5 | #dbdac1
6 | #555555
7 | #666666
8 | #888888
9 | #c2c2a8
10 | #c3c2c5
11 | #756637
12 | #787878
13 | #dbdac1
14 | #aaaaaa
15 | #777777
16 | #999999
17 | #dbdac1
18 | #!030507
19 | #!333333
20 | #
21 | #
22 | #! Black Black !
23 | #! Red Red !
24 | #ef545f
25 | #! Green Green !
26 | #! Yellow Yellow!
27 | #! Blue
28 | #! Magenta
29 | #! Cyan
30 | #! White
31 |
--------------------------------------------------------------------------------
/templates/etc/templates/Pkgfile-git:
--------------------------------------------------------------------------------
1 | # -*-shell-*-
2 | # Description: __DESCRIPTION__
3 | # URL: __URL__
4 | # Maintainer: __MAINTAINER__
5 | # Depends on: __DEPENDENCIES__
6 |
7 | name=__NAME__
8 | version=__VERSION__
9 | sversion=__GIT_HASH__
10 | release=1
11 | source=()
12 |
13 | gitsource=__GIT_URL__
14 |
15 | build() {
16 | cd $PKGMK_SOURCE_DIR
17 |
18 | if cd $name; then
19 | git reset --hard
20 | git pull $gitsource
21 | else
22 | git clone $gitsource $name
23 | cd $name
24 | fi
25 |
26 | git checkout $sversion
27 |
28 | make DESTDIR=$PKG PREFIX=/usr MANPREFIX=/usr/man install
29 | }
30 |
31 |
32 |
--------------------------------------------------------------------------------
/x/.config/x/colours/clean:
--------------------------------------------------------------------------------
1 | *background : #263238
2 | *foreground : #DEE7F5
3 |
4 | ! black
5 | *color15 : #66666A
6 | *color7 : #34444D
7 | ! red
8 | *color1 : #DA637E
9 | *color9 : #F0A3A3
10 | ! yellow
11 | *color3 : #AB93B9
12 | *color11 : #CBB6D7
13 | ! purple
14 | *color5 : #AC8AC1
15 | *color13 : #D2BBE4
16 | ! blue
17 | *color4 : #6F8BBD
18 | *color12 : #8CB4FA
19 | ! green
20 | *color2 : #B1B792
21 | *color10 : #C7E6B8
22 | ! cyan
23 | *color6 : #63918B
24 | *color14 : #92B5B0
25 | ! white
26 | *color0 : #DEE7F5
27 | *color8 : #F7F7F7
28 |
29 | *colorUL : #00BCD4
30 | *cursorColor : #00BcD4
31 |
--------------------------------------------------------------------------------
/x/.config/x/colours/hot:
--------------------------------------------------------------------------------
1 | *background : #000000
2 | *foreground : #FFFFFF
3 |
4 | ! black
5 | *color0 : #111111
6 | *color8 : #111111
7 | ! red
8 | *color1 : #75314B
9 | *color9 : #75314B
10 | ! green
11 | *color2 : #2E8B57
12 | *color10 : #2E8B57
13 | ! yellow
14 | *color3 : #DE9E4E
15 | *color11 : #DE9E4E
16 | ! blue
17 | *color4 : #479EBB
18 | *color12 : #479EBB
19 | ! magenta
20 | *color5 : #C64552
21 | *color13 : #C64552
22 | ! cyan
23 | *color6 : #6C8B9E
24 | *color14 : #6C8B9E
25 | ! white
26 | *color7 : #CDCFCE
27 | *color15 : #CDCFCE
28 |
29 | *cursorColor : #2E8B57
30 | *colorUL : #86A2B0
31 |
--------------------------------------------------------------------------------
/x/.config/x/colours/molokai:
--------------------------------------------------------------------------------
1 | *background : #101010
2 | *foreground : #FFFFFF
3 |
4 | ! black
5 | *color0 : #1b1d1e
6 | *color8 : #505354
7 | ! red
8 | *color1 : #f92672
9 | *color9 : #B52E2F
10 | ! green
11 | *color2 : #82b414
12 | *color10 : #b6e354
13 | ! yellow
14 | *color3 : #fd971f
15 | *color11 : #95C32E
16 | ! blue
17 | *color4 : #56c2d6
18 | *color12 : #E5BB8B
19 | ! magenta
20 | *color5 : #8c54fe
21 | *color13 : #DC8E3A
22 | ! cyan
23 | *color6 : #465457
24 | *color14 : #899ca1
25 | ! white
26 | *color7 : #ccccc6
27 | *color15 : #f8f8f2
28 |
29 | *colorUL : #82b414
30 | *cursorColor : #82b414
31 |
--------------------------------------------------------------------------------
/x/.config/x/colours/washed:
--------------------------------------------------------------------------------
1 | *background : #181818
2 | *foreground : #cdcfce
3 |
4 | ! black
5 | *color0 : #181818
6 | *color8 : #444444
7 | ! red
8 | *color1 : #9e6b71
9 | *color9 : #b69094
10 | ! green
11 | *color2 : #719e6b
12 | *color10 : #94b690
13 | ! yellow
14 | *color3 : #9e986c
15 | *color11 : #b5b18f
16 | ! blue
17 | *color4 : #6c8b9e
18 | *color12 : #90a7b6
19 | ! magenta
20 | *color5 : #986b9e
21 | *color13 : #b290b6
22 | ! cyan
23 | *color6 : #6b9e98
24 | *color14 : #90b6b3
25 | ! white
26 | *color7 : #cdcfce
27 | *color15 : #cdcfce
28 |
29 | *colorUL : #86a2b0
30 | *cursorColor : #c1c8c9
31 |
--------------------------------------------------------------------------------
/x/.config/x/colours/jbw:
--------------------------------------------------------------------------------
1 | ! special
2 | *.foreground: #ffffff
3 | *.background: #000000
4 |
5 | ! black
6 | *.color0: #000000
7 | *.color8: #000000
8 |
9 | ! red
10 | *.color1: #999999
11 | *.color9: #999999
12 |
13 | ! green
14 | *.color2: #ffffff
15 | *.color10: #ffffff
16 |
17 | ! yellow
18 | *.color3: #ffffff
19 | *.color11: #ffffff
20 |
21 | ! blue
22 | *.color4: #ffffff
23 | *.color12: #ffffff
24 |
25 | ! orange
26 | *.color5: #ffffff
27 | *.color13: #ffffff
28 |
29 | ! cyan
30 | *.color6: #ffffff
31 | *.color14: #ffffff
32 |
33 | ! white
34 | *.color7: #ffffff
35 | *.color15: #ffffff
36 |
37 |
--------------------------------------------------------------------------------
/x/.config/x/colours/neeasade:
--------------------------------------------------------------------------------
1 | ! special
2 | *.foreground: #a7a7a7
3 | *.background: #1e1e1e
4 |
5 | ! black
6 | *.color0: #1e1e1e
7 | *.color8: #5f5a60
8 |
9 | ! red
10 | *.color1: #cf6a4c
11 | *.color9: #cda869
12 |
13 | ! green
14 | *.color2: #8f9d6a
15 | *.color10: #323537
16 |
17 | ! yellow
18 | *.color3: #f9ee98
19 | *.color11: #464b50
20 |
21 | ! blue
22 | *.color4: #7567a6
23 | *.color12: #838184
24 |
25 | ! orange
26 | *.color5: #9b859d
27 | *.color13: #c3c3c3
28 |
29 | ! cyan
30 | *.color6: #afc4db
31 | *.color14: #9b703f
32 |
33 | ! magenta
34 | *.color7: #a7a7a7
35 | *.color15: #ffffff
36 |
37 |
--------------------------------------------------------------------------------
/x/.config/x/colours/spacegray:
--------------------------------------------------------------------------------
1 | ! special
2 | *.foreground: #ffffff
3 | *.background: #232830
4 |
5 | ! black
6 | *.color0: #232830
7 | *.color8: #232830
8 |
9 | ! red
10 | *.color1: #bf616a
11 | *.color9: #bf616a
12 |
13 | ! green
14 | *.color2: #b4eb89
15 | *.color10: #b4eb89
16 |
17 | ! yellow
18 | *.color3: #ebcb8b
19 | *.color11: #ebcb8b
20 |
21 | ! blue
22 | *.color4: #89aaeb
23 | *.color12: #89aaeb
24 |
25 | ! orange
26 | *.color5: #dca432
27 | *.color13: #dca432
28 |
29 | ! cyan
30 | *.color6: #89ebca
31 | *.color14: #89ebca
32 |
33 | ! magenta
34 | *.color7: #c189eb
35 | *.color15: #c189eb
36 |
37 |
--------------------------------------------------------------------------------
/scripts/bin/ttycolrc:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # (c) piecesofquiet 2016
3 | # automates changing TTY colorscheme
4 |
5 | RCFILE=$1
6 | COLOURSCHEME=${2:-/dev/null}
7 |
8 | usage() { cat << EOF
9 | Usage: ttycolrc
10 |
11 | EOF
12 |
13 | exit 1
14 | }
15 |
16 | main () {
17 | # validate files, if fail check print usage and quit
18 | (test $# -lt 2 || !(test -f "$RCFILE" && test -f "$COLOURSCHEME")) && usage
19 |
20 | cat "$HOME/$RCFILE" > "/tmp/$RCFILE"
21 | cat /dev/null > "$HOME/$RCFILE"
22 | cat "/tmp/$RCFILE" | sed "/^if/,/^fi/d" | sed "/^$/d" >> "$HOME/$RCFILE"
23 | rm "/tmp/$RCFILE"
24 | sed '1d' $COLOURSCHEME >> "$HOME/$RCFILE"
25 |
26 |
27 | exit 0
28 | }
29 |
30 | main $@
31 |
--------------------------------------------------------------------------------
/x/.config/x/colours/pnp:
--------------------------------------------------------------------------------
1 | ! special
2 | *.background : #000000
3 | *.foreground : #cccccc
4 | *.cursorColor : #ef49ff
5 | !black
6 | *color0 : #000000
7 | *color8 : #222222
8 |
9 | ! red
10 | *color1 : #FF9CDB
11 | *color9 : #FF9CDB
12 |
13 | ! green
14 | *color2 : #b85ed6
15 | *color10 : #b85ed6
16 |
17 | ! yellow
18 | *color3 : #d09eff
19 | *color11 : #d09eff
20 |
21 |
22 | ! blue
23 | *color4 : #9c9fff
24 | *color12 : #9c9fff
25 |
26 | ! magenta
27 | *color5 : #ef49ff
28 | *color13 : #ef49ff
29 |
30 | ! cyan
31 | *color6 : #fa66dc
32 | *color14 : #fa66dc
33 |
34 | ! white
35 | *color7 : #ffbfdd
36 | *color15 : #ffbfdd
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/x/.config/x/colours/stormy:
--------------------------------------------------------------------------------
1 | *background : #20242c
2 | *foreground : #E4FCB8
3 |
4 | ! darker
5 | *color0 : #273C24
6 | *color8 : #273C24
7 | ! deep red
8 | *color1 : #570B0B
9 | *color9 : #570B0B
10 | ! green
11 | *color2 : #2E8B57
12 | *color10 : #2E8B57
13 | ! maybe have a darker orange here?
14 | *color3 : #A0AF39
15 | *color11 : #A0AF39
16 | ! dark blue
17 | *color4 : #2F4748
18 | *color12 : #2F4748
19 | ! bubbly red/pink
20 | *color5 : #185282
21 | *color13 : #185282
22 | ! grey
23 | *color6 : #737373
24 | *color14 : #737373
25 | ! white
26 | *color7 : #C5C5C5
27 | *color15 : #C5C5C5
28 |
29 | *cursorColor : #E4FCB8
30 | *colorUL : #1F4153
31 |
--------------------------------------------------------------------------------
/rofi/.local/share/rofi/themes/slate.rasi:
--------------------------------------------------------------------------------
1 | * {
2 | background-color: #1c2023;
3 | border-color: #95aec7;
4 | text-color: #8ca0aa;
5 | spacing: 0;
6 | width: 700;
7 | border: 0 0 0 0;
8 | }
9 |
10 | inputbar {
11 | border: 0 0 2px 0;
12 | children: [prompt,entry];
13 | }
14 |
15 | prompt {
16 | padding: 16px;
17 | border: 0 0 0 0;
18 | }
19 |
20 | textbox {
21 | background-color: #1c2023;
22 | border: 0 0 0 0;
23 | padding: 8px 16px;
24 | }
25 |
26 | entry {
27 | padding: 16px;
28 | }
29 |
30 | listview {
31 | cycle: false;
32 | margin: 0 0 -1px 0;
33 | scrollbxoar: false;
34 | }
35 |
36 | element {
37 | border: 0 0 0 0;
38 | padding: 16px;
39 | }
40 |
41 | element selected {
42 | background-color: #2e343f;
43 | }
--------------------------------------------------------------------------------
/x/.config/x/colours/bw_urxvt:
--------------------------------------------------------------------------------
1 | ! special
2 | *.foreground: #afafaf
3 | *.background: #000000
4 | *.cursorColor: #afafaf
5 |
6 | ! black
7 | *.color0: #000000
8 | *.color8: #aaaaaa
9 |
10 | ! red
11 | *.color1: #eeeeee
12 | *.color9: #eeeeee
13 |
14 | ! green
15 | *.color2: #dddddd
16 | *.color10: #dddddd
17 |
18 | ! yellow
19 | *.color3: #333333
20 | *.color11: #333333
21 |
22 | ! blue
23 | *.color4: #666666
24 | *.color12: #666666
25 |
26 | ! orange
27 | *.color5: #bbbbbb
28 | *.color13: #bbbbbb
29 |
30 | ! cyan
31 | *.color6: #222222
32 | *.color14: #222222
33 |
34 | ! white
35 | *.color7: #afafaf
36 | *.color15: #444444
37 |
38 | ! vim: set ft=xdefaults :
39 |
--------------------------------------------------------------------------------
/x/.config/x/colours/patne:
--------------------------------------------------------------------------------
1 | ! color theme: patne
2 | *.borderColor: #25282f
3 | *.background: #25282f
4 | *.foreground: #bebdc7
5 | *.cursorColor: #bebdc7
6 |
7 | ! Black
8 | *color0: #484848
9 | *color8: #484848
10 |
11 | ! Red
12 | *color1: #cd8376
13 | *color9: #cd8376
14 |
15 | ! Green
16 | *color2: #82726c
17 | *color10: #82726c
18 |
19 | ! Yellow
20 | *color3: #7db0df
21 | *color11: #7db0df
22 |
23 | ! Blue
24 | *color4: #5c7186
25 | *color12: #5c7186
26 |
27 | ! Magenta
28 | *color5: #ca6c5e
29 | *color13: #ca6c5e
30 |
31 | ! Cyan
32 | *color6: #5e8d87
33 | *color14: #5e8d87
34 |
35 | ! White
36 | *color7: #bebdc7
37 | *color15: #bebdc7
38 |
39 |
--------------------------------------------------------------------------------
/x/.config/x/colours/glacial_urxvt:
--------------------------------------------------------------------------------
1 | ! special
2 | *.foreground: #254348
3 | *.background: #d8e5e7
4 | *.cursorColor: #b82233
5 |
6 | ! black
7 | *.color0: #d8e5e7
8 | *.color8: #242f31
9 |
10 | ! red
11 | *.color1: #437482
12 | *.color9: #437482
13 |
14 | ! green
15 | *.color2: #2f9db5
16 | *.color10: #2f9db5
17 |
18 | ! yellow
19 | *.color3: #242f31
20 | *.color11: #242f31
21 |
22 | ! blue
23 | *.color4: #5b6362
24 | *.color12: #5b6362
25 |
26 | ! orange
27 | *.color5: #555055
28 | *.color13: #555055
29 |
30 | ! cyan
31 | *.color6: #4f818f
32 | *.color14: #4f818f
33 |
34 | ! white
35 | *.color7: #254348
36 | *.color15: #444444
37 |
38 | ! vim: set ft=xdefaults :
39 |
--------------------------------------------------------------------------------
/x/.config/x/colours/moonbow_urxvt:
--------------------------------------------------------------------------------
1 | ! special
2 | *.foreground: #7b8695
3 | *.background: #1b2227
4 | *.cursorColor: #7b8695
5 |
6 | ! black
7 | *.color0: #1b2227
8 | *.color8: #374650
9 |
10 | ! red
11 | *.color1: #785561
12 | *.color9: #8a6270
13 |
14 | ! green
15 | *.color2: #58614f
16 | *.color10: #6d7762
17 |
18 | ! yellow
19 | *.color3: #7e735a
20 | *.color11: #8d8063
21 |
22 | ! blue
23 | *.color4: #424a64
24 | *.color12: #626c94
25 |
26 | ! orange
27 | *.color5: #4d3e4c
28 | *.color13: #665064
29 |
30 | ! cyan
31 | *.color6: #3c5a5d
32 | *.color14: #548084
33 |
34 | ! white
35 | *.color7: #7b8695
36 | *.color15: #94a1b3
37 |
38 | ! vim: set ft=xdefaults :
39 |
--------------------------------------------------------------------------------
/scripts/bin/powerbar:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . panelsrc
4 |
5 | REBOOT_CMD='sudo reboot'
6 | REBOOT_ICON=' res '
7 |
8 | POWEROFF_CMD='sudo poweroff'
9 | POWEROFF_ICON=' off '
10 |
11 | KILLX_CMD='pkill windowchew'
12 | KILLX_ICON='die'
13 |
14 | CANCEL_CMD='pkill -P '$$
15 | CANCEL_ICON=' fug '
16 |
17 | ROOT_ID="$(lsw -r)"
18 | ROOT_WIDTH="$(wattr w ${ROOT_ID})"
19 | BAR_WIDTH="$(( $ROOT_WIDTH / 3 ))"
20 | XOFFSET=0
21 | FONT="$PANEL_FONT"
22 | OPTS="$PANEL_OPTS -p -g ${BAR_WIDTH}x15+${XOFFSET}+0"
23 |
24 | echo '%{l}%{A:'$REBOOT_CMD' && '$CANCEL_CMD':}'$REBOOT_ICON'%{A}'\
25 | '%{A:'$POWEROFF_CMD' && '$CANCEL_CMD':}'$POWEROFF_ICON'%{A}'\
26 | '%{A:'$KILLX_CMD':}'$KILLX_ICON'%{A}'\
27 | '%{A:'$CANCEL_CMD':}'$CANCEL_ICON'%{A}' | lemonbar $OPTS | sh
28 |
--------------------------------------------------------------------------------
/scripts/bin/csc-wc:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # Requires GNU ed (afaict, sorry) and xrq, although you could subsitute xrq with some other xrdb-querying thingy
3 |
4 | THEME_DIR=${THEME_DIR:-$HOME/.config/x/colours}
5 | cls=$(ls $THEME_DIR | rofi -dmenu)
6 | echo $cls
7 |
8 | sed -i 1d ~/.Xresources
9 | sed -i "1i #include \"/home/poq/.config/x/colours/$cls\"" ~/.Xresources
10 | xrdb ~/.Xresources
11 | fccl=$(xrq color1 | cut -b 2-9)
12 | ufccl=$(xrq color17 | cut -b 2-9)
13 | bgcl=$(xrq color8)
14 |
15 | ed -s ~/.config/windowchef/windowchefrc << EOF
16 | H
17 | /color_focused
18 | s/0x.*$/0x$fccl/
19 | /color_unfocused
20 | s/0x.*$/0x$ufccl/
21 | w
22 | EOF
23 | pkill -USR1 st 2>/dev/null
24 | xsetroot -solid $bgcl
25 | waitron wm_config color_focused 0x$fccl
26 | waitron wm_config color_unfocused 0x$ufccl
27 |
--------------------------------------------------------------------------------
/x/.xinitrc:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | xrdb ~/.Xresources &
4 | hsetroot -solid '#1c2023' &
5 | xsetroot -cursor_name left_ptr &
6 | setxkbmap us -variant dvp -option ctrl:nocaps &
7 | #sxhkd -c ~/.config/sxhkd/dwm_sxhkdrc -m -1 &
8 | picom --config ~/.config/picom.conf &
9 | xset s off &
10 | xset s noblank &
11 | xset s noexpose &
12 | xset c on &
13 | xset -dpms &
14 | #light -S 25 &
15 | #thunar --daemon &
16 | #hhbsp &
17 | #devmon &
18 | #xrandr --output eDP-1 --off &
19 | #xrandr --output HDMI-1 --right-of eDP-1 &
20 | #/usr/lib/mate-polkit/polkit-mate-authentication-agent-1 &
21 | #/usr/lib/mate-notification-daemon/mate-notification-daemon &
22 | # sb &
23 | xbanish -t 2000 -s &
24 | #xrandr --output DVI-I-1 --off &
25 | #xrandr --output DP-4 --left-of DVI-I-1 &
26 | #xrandr --output DVI-I-1 --mode 1920x1080 --rate 144 &
27 | exec xmonad
28 |
--------------------------------------------------------------------------------
/x/.config/x/colours/chrnbl_urxvt:
--------------------------------------------------------------------------------
1 | ! special
2 | *.foreground: #E4FCB8
3 | *.background: #20242c
4 | *.cursorColor: #E4FCB8
5 |
6 | ! black
7 | *.color0: #20242C
8 | *.color8: #273C24
9 |
10 | ! red
11 | *.color1: #570B0B
12 | *.color9: #570B0B
13 |
14 | ! green
15 | *.color2: #2E8B57
16 | *.color10: #2E8B57
17 |
18 | ! yellow
19 | *.color3: #A0AF39
20 | *.color11: #A0AF39
21 |
22 | ! blue
23 | *.color4: #2F4748
24 | *.color12: #2F4748
25 |
26 | ! orange
27 | *.color5: #185282
28 | *.color13: #185282
29 |
30 | ! cyan
31 | *.color6: #737373
32 | *.color14: #737373
33 |
34 | ! white
35 | *.color7: #C5C5C5
36 | *.color15: #C5C5C5
37 |
38 | ! emacs modeline
39 | *.color16: #10122b
40 | *.color17: #20242c
41 | ! vim: set ft=xdefaults :
42 |
--------------------------------------------------------------------------------
/zsh/.zsh.d/env.zsh:
--------------------------------------------------------------------------------
1 | EDITOR="emacs"
2 | PAGER="less"
3 | LANG=en_AU.UTF-8
4 | LC_CTYPE="en_AU.UTF-8"
5 | NTFY_FIFO_PATH="/home/$(whoami)/var/ntfy/ntfy.fifo"
6 | SRC_DIR="/home/$(whoami)/src/pkg"
7 | CHOME="/home/$(whoami)/usr"
8 | #PATH=/home/poq/bin/:/home/poq/.cabal/bin/:/usr/local/bin/:/usr/bin/:/sbin:/Users/j/bin:/opt/pkg/bin:/Library/TeX/texbin:/usr/sbin:/home/poq/src/go/bin:/home/poq/.local/bin:/opt/local/bin:/opt/local/sbin:/Users/j/.local/bin:/opt/texlive/2016/bin/x86_64-linux:/bin:/home/poq/.stack/programs/x86_64-linux/ghc-ncurses6-8.0.2/bin
9 | #WM="windowchef"
10 | BROWSER="firefox"
11 | WP_DIR="/home/poq/usr/img/wp"
12 | GOPATH="/home/poq/src/go"
13 | GTK_IM_MODULE=ibus
14 | XMODIFIERS=@im=ibus
15 | QT_IM_MODULE=ibus
16 | export CSC EDITOR PAGER NTFY_FIFO_PATH LC_CTYPE PATH CHOME WM WP_DIR GOPATH TERM GTK_IM_MODULE XMODIFIERS QT_IM_MODULE
17 |
--------------------------------------------------------------------------------
/x/.config/x/colours/thlst_grn:
--------------------------------------------------------------------------------
1 | #define fg #4a4b4c
2 | #define bg #000000
3 | #define lbg #020202
4 | #define c0 #000000
5 | #define c1 #4a4b4c
6 | #define c2 #00ff7f
7 | #define c3 #a2a2a5
8 | #define c4 #5d5b5e
9 | #define c5 #4a4b4c
10 | #define c6 #6d6b6f
11 | #define c7 #4a4b4c
12 | #define c8 #15171b
13 | #define c9 #4a4b4c
14 | #define c10 #00ff7f
15 | #define c11 #4a4b4c
16 | #define c12 #4a4b4c
17 | #define c13 #3a3b3c
18 | #define c14 #4a4b4c
19 | #define c15 #dbdac1
20 |
21 | *background: bg
22 | *foreground: fg
23 | *cursorColor: c1
24 | *color0: c0
25 | *color1: c1
26 | *color2: c2
27 | *color3: c3
28 | *color4: c4
29 | *color5: c5
30 | *color6: c6
31 | *color7: c7
32 | *color8: c8
33 | *color9: c9
34 | *color10: c10
35 | *color11: c11
36 | *color12: c12
37 | *color13: c13
38 | *color14: c14
39 | *color15: c15
--------------------------------------------------------------------------------
/x/.config/x/colours/sakura:
--------------------------------------------------------------------------------
1 | #define fg #42284d
2 | #define bg #f4f7fc
3 | #define cc #ff5ec5
4 | #define c0 #f4f7fc
5 | #define c1 #f1d4d6
6 | #define c2 #fdc395
7 | #define c3 #6e6578
8 | #define c4 #cbb3c3
9 | #define c5 #cca3b1
10 | #define c6 #ff847c
11 | #define c7 #df88bf
12 | #define mla #e0c8d6
13 | #define mli #952d2c
14 |
15 | *background: bg
16 | *foreground: fg
17 | *cursorColor: c2
18 | *color0: c0
19 | *color1: c1
20 | *color2: c2
21 | *color3: c3
22 | *color4: c4
23 | *color5: c5
24 | *color6: c6
25 | *color7: c7
26 | *color8: fg
27 | *color9: c1
28 | *color10: c2
29 | *color11: c3
30 | *color12: c4
31 | *color13: c5
32 | *color14: c6
33 | *color15: c7
34 | *color16: mla
35 | *color17: mli
36 |
--------------------------------------------------------------------------------
/scripts/bin/csc-cwm:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # Requires GNU ed (afaict, sorry) and xrq, although you could subsitute xrq with some other xrdb-querying thingy
3 |
4 | THEME_DIR=${THEME_DIR:-$HOME/.config/x/colours}
5 | cls=$(ls $THEME_DIR | rofi -dmenu)
6 | echo $cls
7 |
8 | sed -i 1d ~/.Xresources
9 | sed -i "1i #include \"/home/poq/.config/x/colours/$cls\"" ~/.Xresources
10 | xrdb ~/.Xresources
11 | fccl=$(xrq color1)
12 | tccl=$(xrq color3)
13 | btccl=$(xrq color0)
14 | ufccl=$(xrq color8)
15 | ftccl=$(xrq color5)
16 | bgcl=$(xrq color7)
17 |
18 | ed -s ~/.cwmrc << EOF
19 | H
20 | /activeborder
21 | s/#.*$/$fccl'/
22 | /inactiveborder
23 | s/#.*$/$ufccl'/
24 | /font
25 | s/#.*$/$ftccl'/
26 | /menubg
27 | s/#.*$/$btccl'/
28 | /menufg
29 | s/#.*$/$tccl'/
30 | w
31 | EOF
32 | killall sbar && sbar 2>/dev/null &
33 | pkill -USR1 st 2>/dev/null
34 | #xsetroot -solid $bgcl
35 |
36 |
--------------------------------------------------------------------------------
/emacs/.emacs.d/init.el.old:
--------------------------------------------------------------------------------
1 | (package-initialize)
2 | (add-to-list 'load-path "~/.emacs.d/custom")
3 |
4 | ;; fak u
5 | (load "private.el")
6 |
7 | ;; random shit
8 | (load "misc.el")
9 |
10 | ;; pkgs
11 | (load "pkg.el")
12 | (load "evil-init.el")
13 | ;;(load "erc-init.el")
14 | (load "circe-init.el")
15 | (load "ivy-init.el")
16 | (load "mu4e-init.el")
17 | (load "auctex-init.el")
18 | (load "org-init.el")
19 | (load "emms-init.el")
20 | ;;(load "exwm-init.el")
21 |
22 | ;; colours
23 | (load "~/.emacs.d/custom/modeline-custom-nogui.el")
24 | (load-file "~/.emacs.d/themes/xres-theme.el")
25 |
26 | ;; ui
27 | (load "ui.el")
28 |
29 |
30 | ;; satan
31 | (setq custom-file "~/.emacs.d/custom/custom.el")
32 | (load custom-file)
33 |
34 | ;; magit
35 | (load "magit-init.el")
36 |
37 | ;; edits
38 | (load "edits.el")
39 |
40 | ;; lang specific shit
41 | (load "hask.el")
42 |
43 |
--------------------------------------------------------------------------------
/scripts/bin/wsnum:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # script for getting the current workspace and outputting formatted list with the current workspace highlighted. Probably pretty shit, but it works I guess.
3 |
4 | WS=$(xprop -root _NET_CURRENT_DESKTOP | awk '{print$3}')
5 | AWS=$((WS + 1))
6 |
7 | fmt() {
8 | COL=$(xrq color1)
9 | CAT="%{F$COL}$1%{F}"
10 | echo $CAT
11 | }
12 |
13 | wssel() {
14 | #if anyone knows a better way to do this pls help
15 | case $AWS in
16 | 1)
17 | echo "$(fmt 1) 2 3 4 5"
18 | ;;
19 | 2)
20 | echo "1 $(fmt 2) 3 4 5"
21 | ;;
22 | 3)
23 | echo "1 2 $(fmt 3) 4 5"
24 | ;;
25 | 4)
26 | echo "1 2 3 $(fmt 4) 5"
27 | ;;
28 | 5)
29 | echo "1 2 3 4 $(fmt 5)"
30 | ;;
31 | esac
32 | }
33 |
34 | wssel
35 |
--------------------------------------------------------------------------------
/x/.config/x/colours/deep_thought:
--------------------------------------------------------------------------------
1 | #define fg #ffffff
2 | #define bg #000f14
3 | #define cc #3748a0
4 | #define c0 #000f14
5 | #define c1 #208ae2
6 | #define c2 #102530
7 | #define c3 #002566
8 | #define c4 #10adee
9 | #define c5 #227799
10 | #define c6 #105f89
11 | #define c7 #113399
12 | #define mla #001520
13 | #define mli #111d3c
14 |
15 | *background: bg
16 | *foreground: fg
17 | *cursorColor: cc
18 | *color0: c0
19 | *color1: c1
20 | *color2: c2
21 | *color3: c3
22 | *color4: c4
23 | *color5: c5
24 | *color6: c6
25 | *color7: c7
26 | *color8: fg
27 | *color9: c1
28 | *color10: c2
29 | *color11: c3
30 | *color12: c4
31 | *color13: c5
32 | *color14: c6
33 | *color15: c7
34 | *color16: mla
35 | *color17: mli
36 |
--------------------------------------------------------------------------------
/scripts/bin/musicbar:
--------------------------------------------------------------------------------
1 | #! /bin/bash
2 | #
3 | # Little panel to show current playing song
4 | # ripped from tudurom, thanks for doing the hard work for me buddy
5 | #
6 |
7 | . panelsrc
8 |
9 | last_title="-"
10 | music() {
11 | if [ $(mpc status | wc -l ) -eq 3 ]; then
12 | last_title=$(mpc status | head -n 1)
13 | elif [ $(mpc status | wc -l) -eq 0 ]; then
14 | last_title="-"
15 | fi
16 |
17 | echo -e "%{c}%{A1:mpc toggle:}%{A2:urxvt -e cava &:}%{A3:urxvt -e ncmpcpp &:}%{A4:mpc prev:}%{A5:mpc next:} $last_title%{A}%{A}%{A}%{A}%{A}"
18 | }
19 |
20 | ROOT_ID="$(lsw -r)"
21 | ROOT_WIDTH="$(wattr w ${ROOT_ID})"
22 | BAR_WIDTH="$(( $ROOT_WIDTH / 3 ))"
23 | XOFFSET="$(($(($ROOT_WIDTH / 3)) + $(($BAR_WIDTH))))"
24 | FONT="$PANEL_FONT"
25 | OPTS="$PANEL_OPTS -g ${BAR_WIDTH}x15+${XOFFSET}+2"
26 | while true; do
27 | music
28 | sleep 1
29 | done | lemonbar $OPTS | sh
30 |
--------------------------------------------------------------------------------
/scripts/bin/csc-2bwm:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # Requires GNU ed (afaict, sorry) and xrq, although you could subsitute xrq with some other xrdb-querying thingy
3 |
4 | THEME_DIR=${THEME_DIR:-$HOME/.config/x/colours}
5 | cls=$(ls $THEME_DIR | rofi -dmenu)
6 |
7 | sed -i 1d ~/.Xresources
8 | sed -i "1i #include \"/home/poq/.config/x/colours/$cls\"" ~/.Xresources
9 | xrdb ~/.Xresources
10 |
11 | bg=$(xrq color8)
12 | fccl="$(xrq color3)\","
13 | ufccl="\"$(xrq color16)\","
14 | fxcl="\"$(xrq color9)\","
15 | ukcl="\"$(xrq color7)\","
16 | fxukcl="\"$(xrq color5)\","
17 | cleg="\"$(xrq color4)\"," #13
18 | bgcl="\"$(xrq color8)\"};"
19 |
20 | ccll=$fccl$ufccl$fxcl$ukcl$fxukcl$cleg$bgcl
21 | ed -s ~/src/pkg/2bwm/config.h << EOF
22 | H
23 | /colors\[
24 | s/#.*$/$ccll/
25 | w
26 | EOF
27 | pkill -USR1 st 2>/dev/null
28 | cd ~/src/pkg/2bwm/ && sudo make PREFIX=/usr install
29 | xsetroot -solid $bg
30 |
31 |
--------------------------------------------------------------------------------
/scripts/bin/xresawk:
--------------------------------------------------------------------------------
1 | #!/usr/bin/awk -f
2 | # e.g.:
3 | # `xrq URxvt.color8`
4 |
5 | # Run xrdb(1) to query specific resources from it
6 | # I thought xrdb -query would do this, but it doesn't seem to, maybe I'm doing
7 | # it wrong
8 | BEGIN {
9 |
10 | # Separator is a colon followed by a tab
11 | FS = ":\t"
12 |
13 | # Check we have at least one resource name
14 | if (ARGC < 2) {
15 | print "xrq: Need at least one resource name" | "cat 1>&2"
16 | exit(2)
17 | }
18 |
19 | # Run `xrdb -query` and search for instances of the requested resource
20 | while ("xrdb -query" | getline) {
21 | for (i in ARGV) {
22 | if ($1 == ARGV[i]) {
23 | found = 1
24 | print $2
25 | }
26 | }
27 | }
28 |
29 | # Exit successfully if we found at least one result
30 | exit(!found)
31 | }
32 |
--------------------------------------------------------------------------------
/x/.config/x/colours/thlst:
--------------------------------------------------------------------------------
1 | #define fg #7c7e7f
2 | #define bg #000000
3 | #define lbg #020202
4 | #define c0 #000000
5 | #define c1 #eeeeee
6 | #define c2 #3a3b3c
7 | #define c3 #a2a2a5
8 | #define c4 #4a4b4c
9 | #define c5 #4a4b4c
10 | #define c6 #6d6b6f
11 | #define c7 #4a4b4c
12 | #define c8 #15171b
13 | #define c9 #4a4b4c
14 | #define c10 #3a3b3c
15 | #define c11 #a2a2a5
16 | #define c12 #afafaf
17 | #define c13 #4a4b4c
18 | #define c14 #6d6b6f
19 | #define c15 #dbdac1
20 | #define mla #aaaaaa
21 | #define mli #050505
22 |
23 | *background: bg
24 | *foreground: fg
25 | *cursorColor: c1
26 | *color0: c0
27 | *color1: c1
28 | *color2: c2
29 | *color3: c3
30 | *color4: c4
31 | *color5: c5
32 | *color6: c6
33 | *color7: c7
34 | *color8: c8
35 | *color9: c9
36 | *color10: c10
37 | *color11: c11
38 | *color12: c12
39 | *color13: c13
40 | *color14: c14
41 | *color15: c15
42 | *color16: mla
43 | *color17: mli
44 |
45 |
--------------------------------------------------------------------------------
/zsh/.zsh.d/alias.zsh:
--------------------------------------------------------------------------------
1 | alias nausea='nausea ~/etc/audio.fifo'
2 | alias mutt='env TERM=vt220 mutt'
3 | alias dvtm='dvtm-custom'
4 | alias neofetch='neofetch --gtk3 off --gtk2 off'
5 | alias mkdir='mkdir -p'
6 | alias ermac='emacs'
7 | alias pic='sxiv -ab'
8 | alias spd='sudo prt-get depinst'
9 | alias sps='sudo prt-get search'
10 | alias spi='sudo prt-get info'
11 | alias 'up'='cd ..'
12 | alias d2pdf='swriter --convert-to pdf'
13 | alias p2pdf='simpress --convert-to pdf'
14 | alias nb='newsbeuter -C ~/.config/newsbeuter/config'
15 | alias rtv='BROWSER=$BROWSER EDITOR=$EDITOR rtv --enable-media'
16 | alias xsnow='xsnow -notrees -nosanta -norudolf'
17 | alias suod='sudo' #becausei'mretarded
18 | alias nr='sudo nixos-rebuild switch -I nixpkgs=/home/poq/src/nix/nixpkgs'
19 |
20 | alias eb="edbrowse"
21 | alias c='cd'
22 | alias e='emacs -nw'
23 | alias s='ssh'
24 | alias x='clear'
25 | alias l='ls'
26 | alias t='tmux'
27 | alias v='mg'
28 | alias rm='rm -r'
29 |
--------------------------------------------------------------------------------
/ncmpcpp/.ncmpcpp/config:
--------------------------------------------------------------------------------
1 | # ░█▀█░█▀▀░█▄█░█▀█░█▀▀░█▀█░█▀█░░░█▀▀░█▀█░█▀█░█▀▀░▀█▀░█▀▀
2 | # ░█░█░█░░░█░█░█▀▀░█░░░█▀▀░█▀▀░░░█░░░█░█░█░█░█▀▀░░█░░█░█
3 | # ░▀░▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀░░░▀░░░░░▀▀▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀▀▀
4 |
5 |
6 | mpd_host "127.0.0.1"
7 | mpd_port "6600"
8 | mpd_music_dir "/mnt/int/Music"
9 |
10 | header_visibility = "no"
11 | titles_visibility = "no"
12 | now_playing_prefix = "> "
13 | now_playing_suffix = "$/b"
14 | autocenter_mode = "yes"
15 | display_bitrate = "yes"
16 | enable_window_title = "no"
17 | statusbar_visibility = "no"
18 | #song_list_format = "{$3%a$9} {%n} {%t} {%b} {%l}"
19 |
20 | # Progbar
21 | progressbar_look = "▀▀▀"
22 | progressbar_color = "blue"
23 | progressbar_elapsed_color = "green"
24 |
25 | # Visualiser
26 | mpd_host = "localhost"
27 | visualizer_fifo_path = "/tmp/mpd.fifo"
28 | visualizer_output_name = "fifooo"
29 | visualizer_sync_interval = "15"
30 | visualizer_type = "ellipse"
31 | visualizer_look = "||"
32 | visualizer_in_stereo= "yes"
33 |
--------------------------------------------------------------------------------
/xmonad/.xmonad/xmobar.conf:
--------------------------------------------------------------------------------
1 | Config { font = "xft:Liberation Mono:size=10:antialias=true:autohint=true"
2 | , additionalFonts = []
3 | , borderColor = "#232830"
4 | , position = Static {xpos = 0, ypos = 0, width = 1366, height = 39}
5 | , bgColor = "#232830"
6 | , fgColor = "#bf616a"
7 | , alpha = 255
8 | , textOffset = -1
9 | , iconOffset = -1
10 | , lowerOnStart = True
11 | , pickBroadest = False
12 | , persistent = False
13 | , hideOnStart = False
14 | , iconRoot = "."
15 | , allDesktops = True
16 | , overrideRedirect = True
17 | , commands = [ Run Date "%a %d/%m %H:%M" "date" 60
18 | , Run StdinReader
19 | , Run Battery [
20 | "-t", " %",
21 | "--",
22 | --"-c", "charge_full",
23 | "-O", "C",
24 | "-o", "B",
25 | "-h", "green",
26 | "-l", "red"
27 | ] 30
28 | ]
29 | , sepChar = "%"
30 | , alignSep = "}{"
31 | , template = " %StdinReader%} { %battery% / %date% "
32 |
--------------------------------------------------------------------------------
/autoexec.cfg:
--------------------------------------------------------------------------------
1 | cl_hud_radar_scale "1"
2 | cl_hud_playercount_showcount "0"
3 | cl_hud_color "4"
4 | cl_hud_background_alpha "1"
5 | cl_crosshair_drawoutlines 1
6 | cl_crosshair_outlinethickness 1
7 | cl_crosshairalpha 150
8 | cl_crosshaircolor 1
9 | cl_crosshaircolor_b 0
10 | cl_crosshaircolor_g 230
11 | cl_crosshaircolor_r 255
12 | cl_crosshairsize 2
13 | cl_crosshairstyle 4
14 | cl_crosshairgap -1
15 | m_rawinput 1
16 | sensitivity 1.350000
17 |
18 | viewmodel_fov 68
19 | viewmodel_offset_% 2.5
20 | viemodel_offset_y 2
21 | viemodel_offset_z -2
22 | viewmodel_presetpos 0
23 | cl_viewmodel_shift_left_amt 0.5
24 | cl_viewmodel_shift_right_amt 0.25
25 | cl_bobcycle 0.98
26 | cl_bobamt_lat 0.1
27 | cl_bobamt_vert 0.1
28 | cl_bob_version 0
29 | cl_bobup 0.5
30 | cl_righthand 0
31 |
32 | bind "x" "r_cleardecals"
33 |
34 | cl_radar_always_centered 0
35 | cl_radar_icon_scale_min 0.6
36 | cl_radar_rotate 0
37 | cl_radar_scale 0.29
38 |
39 | net_graph 1
40 | cl_autohelp 0
41 | cl_autowepswitch "0"
42 | cl_forcepreload "1"
43 |
--------------------------------------------------------------------------------
/scripts/bin/clockbar:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # requires wmutils-core to use like this (dynamic centering)
3 | # disputils
4 | # currently depends on which monitor it's launched from, which isn't ideal
5 | # make it take from the biggest or some shit idk
6 | . panelsrc
7 |
8 | # while true; do
9 | # # Monitors=$(lsd)
10 | # # for m in $(echo "$Monitors"); do
11 | # # barout+="%{S${tmp}}%{c}$(date "+%H:%M:%S, %A, %B %d")"
12 | # # let tmp=$tmp+1
13 | MON=$(pfd)
14 | # echo $MON >> ~/etc/data
15 | ROOT_WIDTH="$(dattr w ${MON})"
16 | # echo $ROOT_WIDTH >> ~/etc/data
17 | BAR_WIDTH="$(( $ROOT_WIDTH ))"
18 | XOFFSET="$(($ROOT_WIDTH - $BAR_WIDTH - 25 ))"
19 | #echo $XOFFSET
20 | # FONT="$PANEL_FONT"
21 | # echo $PANEL_FONT
22 | # echo $FONT
23 | #OPTS="$PANEL_OPTS -g ${BAR_WIDTH}x15+${XOFFSET}+0"
24 | OPTS="$PANEL_OPTS -g 1000x20+490+5"
25 | # echo "%{c}$(date "+%H:%M")"
26 | # sleep 1
27 | # done | lemonbar-xft $OPTS
28 |
29 | bspwm_bar | lemonbar-xft -d $OPTS
30 |
31 |
--------------------------------------------------------------------------------
/scripts/bin/mknonsense:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | LANGUAGES=(da de el en es fi fr is it ja ko nl no pl ru sv zh-CN)
4 | DEFAULTLANG=en
5 | PASSES=30
6 |
7 | if [[ -z "$1" ]] ; then
8 | STRING="Please enter a string to make nonsense out of."
9 | else
10 | STRING="$1"
11 | fi
12 |
13 | echo "$STRING"
14 |
15 | if [[ -z "$2" ]] ; then
16 | originalLanguage=$DEFAULTLANG
17 | else
18 | originalLanguage="$2"
19 | fi
20 |
21 | for pass in `seq $PASSES` ; do
22 | echo -n "."
23 | selectedLanguage=$(($RANDOM % ${#LANGUAGES[@]} - 1))
24 | if [[ $pass == 1 ]] ; then
25 | STRING=`trans -b "$originalLanguage":${LANGUAGES[$selectedLanguage]} -- "$STRING"`
26 | elif [[ $pass == $PASSES ]] ; then
27 | STRING=`trans -b ${LANGUAGES[$previousLanguage]}:"$originalLanguage" -- "$STRING"`
28 | else
29 | STRING=`trans -b ${LANGUAGES[$previousLanguage]}:${LANGUAGES[$selectedLanguage]} -- "$STRING"`
30 | fi
31 | previousLanguage=$selectedLanguage
32 | echo "$STRING"
33 | done
34 |
35 | echo
36 | echo "$STRING"
37 | exit 0
38 |
--------------------------------------------------------------------------------
/scripts/bin/sbar:
--------------------------------------------------------------------------------
1 |
2 | #!/bin/bash
3 | . panelsrc
4 |
5 | clk() {
6 | DATETIME=$(date "+%a %b %d, %I:%M")
7 | echo $DATETIME
8 | }
9 |
10 | msc() {
11 | CUR="$(mpc current)"
12 | FG=$(xrq color4)
13 | PLAYING="%{F$FG}$CUR%{F}"
14 | echo $PLAYING
15 | }
16 |
17 | wrk() {
18 | WS=$(wsnum) #it's kinda big, don't really want it in here
19 | echo $WS
20 | }
21 |
22 | div() {
23 | SYM='∴'
24 | FG=$(xrq color5)
25 | DIV="%{F$FG}$SYM%{F}"
26 | echo $DIV
27 | }
28 |
29 | name() {
30 | FG=$(xrq color5)
31 | ID=$(xdotool getwindowfocus)
32 | WIN=$(xprop -id $ID WM_NAME)
33 | lookfor='"(.*)"'
34 |
35 | if [[ "$WIN" =~ $lookfor ]]; then
36 | NAME=${BASH_REMATCH[1]}
37 | FMT_NAME="%{F$FG}$NAME%{F}"
38 | echo $FMT_NAME
39 | fi
40 | }
41 |
42 | #MON=$(xrandr | grep -o "^.* connected" | sed "s/ connected//")
43 |
44 | while :; do
45 | # echo "%{l} $(name) %{r}$(div) $(clk) "
46 | echo "%{c}$(clk)"
47 | sleep 1
48 | done | lemonbar $PANEL_OPTS
49 |
--------------------------------------------------------------------------------
/bspwm/.config/bspwm/bspwmrc:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | gap=15
3 | PANEL_HEIGHT=25
4 | export gap
5 | export PANEL_HEIGHT
6 |
7 |
8 | #bspc monitor HDMI-1 -d i ii iii
9 | #bspc monitor eDP-1 -d iv v
10 |
11 |
12 | bspwm-workspaces &
13 |
14 | bspc config border_width 1
15 | bspc config window_gap $gap
16 | bspc config top_padding $(($PANEL_HEIGHT-$gap))
17 | bspc config left_padding -$gap
18 | bspc config right_padding -$gap
19 | bspc config bottom_padding -$gap
20 |
21 | bspc config split_ratio 0.52
22 | bspc config borderless_monocle true
23 | bspc config gapless_monocle false
24 | #bspc config paddingless_monocle false
25 |
26 | bspc config normal_border_color '#b6c3c5'
27 | bspc config focused_border_color '#2F9DB5'
28 |
29 | bspc rule -a Gimp desktop='^8' state=floating follow=on
30 | bspc rule -a Chromium desktop='^2'
31 | bspc rule -a mplayer2 state=floating
32 | bspc rule -a Kupfer.py focus=on
33 | bspc rule -a Screenkey manage=off
34 | bspc rule -a zathura state=tiled
35 | bspc rule -a Emacs state=tiled
36 |
37 | limepanel &
38 |
--------------------------------------------------------------------------------
/vim/.vimrc:
--------------------------------------------------------------------------------
1 | syntax off
2 | set nohlsearch
3 | set scrolloff=1
4 | set noundofile
5 | set nobackup
6 | set nowritebackup
7 |
8 | execute plug#begin()
9 | Plug 'scrooloose/nerdtree'
10 | Plug 'chrisbra/csv.vim'
11 | Plug 'yuratomo/w3m.vim'
12 | Plug 'plasticboy/vim-markdown'
13 | Plug 'tpope/vim-surround'
14 | Plug 'tpope/vim-fugitive'
15 | Plug 'godlygeek/tabular'
16 | Plug 'plasticboy/vim-markdown'
17 | Plug 'tomtom/tcomment_vim'
18 | Plug 'spolu/dwm.vim'
19 | execute plug#end()
20 |
21 | filetype plugin indent on
22 | vmap RDSendSelection
23 | nmap RDSendLine
24 | let maplocalleader = ","
25 | let mapleader = ";"
26 | map :NERDTreeToggle
27 | set clipboard=unnamedplus
28 | "inoremap ii
29 | aug CSV_Editing
30 | au!
31 | au BufRead,BufWritePost *.csv :%ArrangeColumn
32 | au BufWritePre *.csv :%UnArrangeColumn
33 | aug end
34 | map u1 :.w >> \/home/poq/var/irc/irc.unix.chat/\#unix/indd
35 | map s1 :.w >> \/home/poq/var/irc/im.codemonkey.be/sarahhodge/indd
36 |
37 | let @b="yypVr─vy4p0r└$r┘yykPr┌$r┐j0i│ $a │"
38 |
--------------------------------------------------------------------------------
/x/.config/x/colours/seags:
--------------------------------------------------------------------------------
1 | #define fg #092b29
2 | #define bg #d9f6e7
3 | #define cc #6dae73
4 | #define c0 #627676
5 | #define c3 #75c57f
6 | #define c2 #6dae73
7 | #define c1 #62d7a8
8 | #define c4 #6cc6ac
9 | #define c5 #64a6a4
10 | #define c6 #57968e
11 | #define c7 #349198
12 | #define c8 #64a6a4
13 | #define c9 #7a7aff
14 | #define c10 #4545ff
15 | #define c11 #3030e6
16 | #define c12 #0f0ff2
17 | #define c13 #0000cc
18 | #define c14 #000091
19 | #define c15 #434343
20 | #define mla #349198
21 | #define mli #444444
22 |
23 | *background: bg
24 | *foreground: fg
25 | *cursorColor: cc
26 | *color0: c0
27 | *color1: c1
28 | *color2: c2
29 | *color3: c3
30 | *color4: c4
31 | *color5: c5
32 | *color6: c6
33 | *color7: c7
34 | *color8: c0
35 | *color9: c1
36 | *color10: c2
37 | *color11: c3
38 | *color12: c4
39 | *color13: c5
40 | *color14: c6
41 | *color15: c7
42 | *color16: mla
43 | *color17: mli
44 |
45 |
--------------------------------------------------------------------------------
/x/.config/x/colours/vamp_red:
--------------------------------------------------------------------------------
1 | #define fg #878787
2 | #define bg #020202
3 | #define cc #a60000
4 | #define c0 #020202
5 | #define c1 #ff7a7a
6 | #define c2 #ff4545
7 | #define c3 #e63030
8 | #define c4 #f20f0f
9 | #define c5 #cc0000
10 | #define c6 #910000
11 | #define c7 #434343
12 | #define c8 #200000
13 | #define c9 #ff7a7a
14 | #define c10 #ff4545
15 | #define c11 #e63030
16 | #define c12 #f20f0f
17 | #define c13 #cc0000
18 | #define c14 #910000
19 | #define c15 #434343
20 | #define mla #330000
21 | #define mli #110000
22 |
23 | *background: bg
24 | *foreground: fg
25 | *cursorColor: cc
26 | *color0: c0
27 | *color1: c1
28 | *color2: c2
29 | *color3: c3
30 | *color4: c4
31 | *color5: c5
32 | *color6: c6
33 | *color7: c7
34 | *color8: c8
35 | *color9: c9
36 | *color10: c10
37 | *color11: c11
38 | *color12: c12
39 | *color13: c13
40 | *color14: c14
41 | *color15: c15
42 | *color16: mla
43 | *color17: mli
44 |
45 |
--------------------------------------------------------------------------------
/x/.config/x/colours/balci:
--------------------------------------------------------------------------------
1 | ! color theme: balci
2 | #define fg #d2c8bb
3 | #define bg #252525
4 | #define cc #59bf8f
5 | #define c0 #5b6641
6 | #define c1 #59bf8f
7 | #define c2 #469f65
8 | #define c3 #30623f
9 | #define c4 #54711f
10 | #define c5 #4ad5d2
11 | #define c6 #2f4c21
12 | #define c7 #d2c8bb
13 | #define c8 #616654
14 | #define c9 #87bfa5
15 | #define c10 #719f81
16 | #define c11 #45624e
17 | #define c12 #657150
18 | #define c13 #97d5d4
19 | #define c14 #3d4c36
20 | #define c15 #b9b1a5
21 | #define mla #657150
22 | #define mli #2f4c21
23 |
24 | *background: bg
25 | *foreground: fg
26 | *cursorColor: cc
27 | *color0: c0
28 | *color1: c1
29 | *color2: c2
30 | *color3: c3
31 | *color4: c4
32 | *color5: c5
33 | *color6: c6
34 | *color7: c7
35 | *color8: c8
36 | *color9: c9
37 | *color10: c10
38 | *color11: c11
39 | *color12: c12
40 | *color13: c13
41 | *color14: c14
42 | *color15: c15
43 | *color16: mla
44 | *color17: mli
45 |
--------------------------------------------------------------------------------
/x/.config/x/colours/vamp_blue:
--------------------------------------------------------------------------------
1 | #define fg #878787
2 | #define bg #020202
3 | #define cc #0000a6
4 | #define c0 #020202
5 | #define c1 #7a7aff
6 | #define c2 #4545ff
7 | #define c3 #0330e6
8 | #define c4 #0f0ff2
9 | #define c5 #0000cc
10 | #define c6 #000091
11 | #define c7 #434343
12 | #define c8 #000020
13 | #define c9 #7a7aff
14 | #define c10 #4545ff
15 | #define c11 #3030e6
16 | #define c12 #0f0ff2
17 | #define c13 #0000cc
18 | #define c14 #000091
19 | #define c15 #434343
20 | #define mla #000033
21 | #define mli #000011
22 |
23 | *background: bg
24 | *foreground: fg
25 | *cursorColor: cc
26 | *color0: c0
27 | *color1: c1
28 | *color2: c2
29 | *color3: c3
30 | *color4: c4
31 | *color5: c5
32 | *color6: c6
33 | *color7: c7
34 | *color8: c8
35 | *color9: c9
36 | *color10: c10
37 | *color11: c11
38 | *color12: c12
39 | *color13: c13
40 | *color14: c14
41 | *color15: c15
42 | *color16: mla
43 | *color17: mli
44 |
45 |
46 |
--------------------------------------------------------------------------------
/x/.config/x/colours/vamp_sea:
--------------------------------------------------------------------------------
1 | #define fg #454545
2 | #define bg #ccffcc
3 | #define lbg #242424
4 | #define cc #20b2aa
5 | #define c0 #ccffcc
6 | #define c1 #03c03c
7 | #define c2 #009e60
8 | #define c3 #00a550
9 | #define c4 #20b2aa
10 | #define c5 #007755
11 | #define c6 #009100
12 | #define c7 #014421
13 | #define c8 #002002
14 | #define c9 #03c03c
15 | #define c10 #009e60
16 | #define c11 #00a550
17 | #define c12 #20b2aa
18 | #define c13 #007755
19 | #define c14 #009100
20 | #define c15 #014421
21 | #define mla #004422
22 | #define mli #002211
23 |
24 | *background: bg
25 | *foreground: fg
26 | *cursorColor: cc
27 | *color0: c0
28 | *color1: c1
29 | *color2: c2
30 | *color3: c3
31 | *color4: c4
32 | *color5: c5
33 | *color6: c6
34 | *color7: c7
35 | *color8: c8
36 | *color9: c9
37 | *color10: c10
38 | *color11: c11
39 | *color12: c12
40 | *color13: c13
41 | *color14: c14
42 | *color15: c15
43 | *color16: mla
44 | *color17: mli
45 |
--------------------------------------------------------------------------------
/x/.config/x/colours/vamp_green:
--------------------------------------------------------------------------------
1 | #define fg #878787
2 | #define bg #020202
3 | #define lbg #242424
4 | #define cc #00a600
5 | #define c0 #020202
6 | #define c1 #7aff7a
7 | #define c2 #45ff45
8 | #define c3 #30e630
9 | #define c4 #0ff20f
10 | #define c5 #00cc00
11 | #define c6 #009100
12 | #define c7 #434343
13 | #define c8 #002000
14 | #define c9 #7aff7a
15 | #define c10 #45ff45
16 | #define c11 #30e630
17 | #define c12 #0ff20f
18 | #define c13 #00cc00
19 | #define c14 #009100
20 | #define c15 #434343
21 | #define mla #003300
22 | #define mli #001100
23 |
24 | *background: bg
25 | *foreground: fg
26 | *cursorColor: cc
27 | *color0: c0
28 | *color1: c1
29 | *color2: c2
30 | *color3: c3
31 | *color4: c4
32 | *color5: c5
33 | *color6: c6
34 | *color7: c7
35 | *color8: c8
36 | *color9: c9
37 | *color10: c10
38 | *color11: c11
39 | *color12: c12
40 | *color13: c13
41 | *color14: c14
42 | *color15: c15
43 | *color16: mla
44 | *color17: mli
45 |
--------------------------------------------------------------------------------
/x/.config/x/colours/vamp_sea_dark:
--------------------------------------------------------------------------------
1 | #define fg #aabbaa
2 | #define bg #000000
3 | #define lbg #242424
4 | #define cc #20b2aa
5 | #define c0 #000000
6 | #define c1 #03c03c
7 | #define c2 #009e60
8 | #define c3 #00a550
9 | #define c4 #20b2aa
10 | #define c5 #007755
11 | #define c6 #009100
12 | #define c7 #014421
13 | #define c8 #ccffcc
14 | #define c9 #03c03c
15 | #define c10 #009e60
16 | #define c11 #00a550
17 | #define c12 #20b2aa
18 | #define c13 #007755
19 | #define c14 #009100
20 | #define c15 #014421
21 | #define mla #004422
22 | #define mli #002211
23 |
24 | *background: bg
25 | *foreground: fg
26 | *cursorColor: cc
27 | *color0: c0
28 | *color1: c1
29 | *color2: c2
30 | *color3: c3
31 | *color4: c4
32 | *color5: c5
33 | *color6: c6
34 | *color7: c7
35 | *color8: c8
36 | *color9: c9
37 | *color10: c10
38 | *color11: c11
39 | *color12: c12
40 | *color13: c13
41 | *color14: c14
42 | *color15: c15
43 | *color16: mla
44 | *color17: mli
45 |
--------------------------------------------------------------------------------
/scripts/bin/csc-xmonad:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # Requires GNU ed (afaict, sorry) and xrq, although you could subsitute xrq with some other xrdb-querying thingy
3 |
4 | THEME_DIR=${THEME_DIR:-$HOME/.config/x/colours}
5 | cls=$(ls $THEME_DIR | rofi -dmenu)
6 | echo $cls
7 |
8 | sed -i 1d ~/.Xresources
9 | sed -i "1i #include \"/home/poq/.config/x/colours/$cls\"" ~/.Xresources
10 | xrdb ~/.Xresources
11 | bggcl=$(xrq color0)
12 | fccl=$(xrq color1)
13 | bgcl=$(xrq color5)
14 | ufccl=$(xrq color17)
15 | ugcl=$(xrq color4)
16 | tcl=$(xrq color7)
17 |
18 | ed -s ~/.xmonad/xmonad.hs << EOF
19 | H
20 | /myNormalBorderColor\ =
21 | s/#.*$/$ufccl\"/
22 | /myFocusedBorderColor\ =
23 | s/#.*$/$fccl\"/
24 | /myXmobarHlColor\ =
25 | s/#.*$/$bgcl\"/
26 | /myXmobarUrgentColor\ =
27 | s/#.*$/$ugcl\"/
28 | /myXmobarTitleColor\ =
29 | s/#.*$/$tcl\"/
30 | /myBackgroundColor\ =
31 | s/#.*$/$bgcl\"/
32 | w
33 | EOF
34 |
35 | ed -s ~/.xmonad/xmobar.conf << EOF
36 | H
37 | /borderColor\ =
38 | s/#.*$/$bggcl\"/
39 | /bgColor\ =
40 | s/#.*$/$bggcl\"/
41 | /fgColor\ =
42 | s/#.*$/$fccl\"/
43 | w
44 | EOF
45 |
46 | pkill -USR1 st 2>/dev/null
47 | xsetroot -solid $bgcl
48 | xmonad --recompile
49 | # /fc=
50 | # s/#.*>%/$tcl\>\%/
51 | # /\%mpd
52 | # s/#.*>∴/$bgcl\>\∴/
53 |
--------------------------------------------------------------------------------
/scripts/bin/syscat:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # syscat - system info
4 | #
5 |
6 | ## CONFIGURATION
7 |
8 | COLOR=${COLOR:-15}
9 |
10 | ## FUNCTIONS
11 |
12 | c() { tput setaf $COLOR; }
13 | d() { tput sgr0; }
14 |
15 | # system() {
16 | # void
17 | # }
18 |
19 | cpuinfo() {
20 | sed -n "/model\ name/s/^.*:\ //p" /proc/cpuinfo | sed 1q
21 | }
22 |
23 | mydate() {
24 | date
25 | }
26 |
27 | wmname() {
28 | echo "none"
29 | }
30 |
31 | fontname() {
32 | echo "metis"
33 | }
34 |
35 | ## EXECUTE
36 |
37 | # SYSTEM
38 |
39 | cat <>> '
59 | done
60 | echo
61 | for col in 8 9 10 11 12 13 14 15; do
62 | tput setaf $col
63 | printf %s '<<< '
64 | done
65 | tput sgr0
66 | echo
67 | echo
68 |
69 | # FLAGS
70 |
71 | case $1 in
72 | -s) maim sys.png ;;
73 | esac
74 |
--------------------------------------------------------------------------------
/scripts/bin/ntfyd:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # notification daemon, ripped from tudorom and z3bra
3 | . panelsrc
4 | NTFY_FIFO_PATH=${NTFY_FIFO_PATH:-/home/poq/var/ntfy/ntfy.fifo}
5 | NTFY_COUNT_PATH=${NTFY_COUNT_PATH:-/home/poq/var/ntfy/ntfy.cnt}
6 |
7 | # birth the fifo
8 |
9 | test -p "$NTFY_FIFO_PATH" || mkfifo "$NTFY_FIFO_PATH"
10 |
11 | # screen params
12 | SCR_X="$(wattr x `lsw -r`)"
13 | SCR_Y="$(wattr y `lsw -r`)"
14 | SCR_W="$(wattr w `lsw -r`)"
15 | SCR_H="$(wattr h `lsw -r`)"
16 |
17 | # notification params
18 | GAP="20"
19 | PP_W="400"
20 | PP_H="30"
21 | PP_X="500" #"$((1920 - GAP - PP_W))"
22 | PP_MEMES="2"
23 | PP_Y="$(( $((PP_H - 2 * cnt)) - 3))"
24 | OPTS="$PANEL_OPTS -g "$PP_W"x"$PP_H"+$PP_X+$PP_Y"
25 | echo $OPTS
26 | # count
27 | cnt=0
28 | echo "$cnt" > "$NTFY_COUNT_PATH"
29 |
30 | # watch fifo
31 | tail -f "$NTFY_FIFO_PATH" | while IFS= read -r msg; do
32 | # increase counter
33 | cnt="$(cat "$NTFY_COUNT_PATH")"
34 | cnt="$(( cnt + 1 ))"
35 | echo "$cnt" > "$NTFY_COUNT_PATH"
36 |
37 |
38 | # the business end, prints the message
39 |
40 | {
41 | (echo "$msg" | skroll -d 0.05 -r -n 60 & sleep 3) | lemonbar $OPTS
42 | cnt="$(cat "$NTFY_COUNT_PATH")"
43 | cnt="$(( cnt - 1 ))"
44 | echo "$cnt" > "$NTFY_COUNT_PATH"
45 | } &
46 | done
47 |
--------------------------------------------------------------------------------
/wmrc/.config/wmrc/config:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # wmrc config - global variables for wmrc
4 | # (c) arcetera 2015 - wtfpl
5 | #
6 |
7 | # required (you probably don't want to change these)
8 |
9 | WID=$(pfw)
10 | WW=$(wattr w $WID)
11 | WH=$(wattr h $WID)
12 | CUR=${2:-$(pfw)}
13 | ROOT=$(lsw -r)
14 | SW=$(wattr w $ROOT)
15 | SH=$(wattr h $ROOT)
16 | BWIDTH=$(wattr b $CUR)
17 | PFW=$(pfw)
18 |
19 | # files used for storing things like window geometry, etc (be VERY careful with these)
20 |
21 | FSFILE=${FSFILE:-~/.fwin} ## stores window geometry for fullscreen
22 | GRPROOT=/tmp/groups ## where groups are stored
23 | STATE_FILE=${STATE_FILE:-~/.dytyl_state} ## stores the current layout
24 |
25 | # groups
26 |
27 | GRPNUM=5 ## number of groups
28 |
29 | # blur
30 |
31 | WALL=~/.wall.png ## wallpaper to blur, should be the same as the currently set wallpaper
32 | BLUR=2 ## blur radius. move up for more intense blur, move down for less intense blur.
33 |
34 | # tiling
35 |
36 | PANEL=${PANEL:-5} ## leaves space for the bar/panel
37 | GAP=${GAP:-15} ## how large the gaps should be
38 |
39 | # borders
40 |
41 | BW=${BW:-2} ## border width
42 | ACTIVE=${ACTIVE:-0x515151} ## border color of active window
43 | INACTIVE=${INACTIVE:-0xa09f93} ## border color of inactive window
44 |
--------------------------------------------------------------------------------
/x/.Xresources:
--------------------------------------------------------------------------------
1 | #include "/home/poq/.config/x/colours/base16-ashes_urxvt"
2 | *scrollBar: false
3 | *imLocale: en_AU.UTF-8
4 | *imFont: xft:ttyp0:pixelsize=11
5 | !*externalBorder: 0
6 | !*internalBorder: 10
7 | *url-launcher: /usr/bin/xdg-open
8 | !*font: xft:Terminus:antialias=false:autohint=true:pixelsize=12,xft:Hack Nerd Font:hinting=true:size=10
9 | !*font: Terminus:size=12
10 | ! xterm*font: xft:siji:antialias=false:autohint=true:size=11
11 | ! Emacs.font: boxxy-11
12 | !emacs.reverseVideo: true
13 |
14 | !st*font: PxPlus IBM VGA8-12:antialias=false:autohint=true
15 |
16 | ! rofi.font: terminus 11
17 | ! rofi.lines: 5
18 | ! rofi.width: 100
19 | ! rofi.borderwidth: 0
20 | ! rofi.auto-select: false
21 | ! rofi.hide-scrollbar: true
22 | ! !rofi.color-window: bg, c3
23 | ! rofi.color-window: #99000000
24 | ! !rofi.color-normal: bg, fg, bg, c4, bg
25 | ! rofi.color-normal: bg, fg, bg, #FF22, bg
26 | ! rofi.separator-style: solid
27 |
28 |
--------------------------------------------------------------------------------
/mksh/.mksh.d/alias.sh:
--------------------------------------------------------------------------------
1 | alias nausea='nausea ~/etc/audio.fifo'
2 | alias mutt='env TERM=vt220 mutt'
3 | alias dvtm='dvtm-custom'
4 | alias neofetch='neofetch --gtk3 off --gtk2 off'
5 | alias mkdir='mkdir -p'
6 | alias ermac='emacs'
7 | alias pic='sxiv -ab'
8 | alias sbt='TERM=xterm sbt'
9 | alias spd='sudo prt-get depinst'
10 | alias sps='sudo prt-get search'
11 | alias spi='sudo prt-get info'
12 | alias 'up'='cd ..'
13 | alias d2pdf='swriter --convert-to pdf'
14 | alias p2pdf='simpress --convert-to pdf'
15 | alias nb='newsbeuter -C ~/.config/newsbeuter/config'
16 | alias rtv='BROWSER=$BROWSER EDITOR=$EDITOR rtv --enable-media'
17 | alias xsnow='xsnow -notrees -nosanta -norudolf'
18 | alias suod='sudo' #becausei'mretarded
19 | alias nr='sudo nixos-rebuild switch -I nixpkgs=/home/poq/src/nix/nixpkgs'
20 | alias schleep='systemctl suspend'
21 | alias guixd='sudo ~root/.guix-profile/bin/guix-daemon --build-users-group=guixbuild'
22 | alias pacaur='EDITOR=zile pacaur'
23 | alias apulse='APULSE_PLAYBACK_DEVICE=plugdmix'
24 | alias ff="APULSE_PLAYBACK_DEVICE=plugdmix apulse firefox"
25 | #alias mpv="APULSE_PLAYBACK_DEVICE=plugdmix apulse mpv --ao=pulse"
26 |
27 | alias eb="edbrowse"
28 | alias c='cd'
29 | alias e='emacsclient -nw'
30 | alias s='ssh'
31 | alias x='clear'
32 | alias l='ls'
33 | alias t='tmux'
34 | alias v='vis'
35 | alias vi='vis'
36 | alias vim='vis'
37 | alias rm='rm -r'
38 |
--------------------------------------------------------------------------------
/tmux/.tmux.conf:
--------------------------------------------------------------------------------
1 | unbind C-b
2 | set -g prefix C-t
3 | bind C-t send-prefix
4 | set -g default-terminal xterm
5 |
6 | bind-key v split-window -h
7 | bind-key V split-window -v
8 |
9 | bind-key T resize-pane -D 5
10 | bind-key N resize-pane -U 5
11 | bind-key H resize-pane -L 5
12 | bind-key S resize-pane -R 5
13 |
14 | bind t select-pane -D
15 | bind n select-pane -U
16 | bind h select-pane -L
17 | bind s select-pane -R
18 |
19 | bind C-v split-window -h "emacsclient -nw"
20 | bind C-s split-window -v "emacsclient -nw"
21 |
22 | bind C-a set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
23 |
24 | #bind-key -t vi-copy 'v' begin-selection
25 | #bind-key -t vi-copy 'y' copy-selection
26 |
27 | set -sg escape-time 0
28 |
29 | setw -g window-status-format "#[bg=black]#[fg=magenta] #W "
30 | setw -g window-status-current-format "#[bg=black]#[fg=red] #W "
31 |
32 | set -g status-bg black
33 |
34 | #set -g status-left "#[fg=red]#[bg=black] %H:%M "
35 | set -g status-right ""
36 | set -g status-justify right
37 | #set -g pane-border-status top
38 | #set -g pane-border-format " #{pane_current_command} "
39 |
40 | #set -g pane-border-fg blue
41 | #set -g pane-active-border-fg red
42 |
43 | set -g base-index 1
44 | setw -g pane-base-index 1
45 |
46 | set-option -g allow-rename off
47 |
48 | bind r source-file ~/.tmux.conf
49 |
--------------------------------------------------------------------------------
/sxhkd/.config/sxhkd/sxhkdrc_wc_lap:
--------------------------------------------------------------------------------
1 | super + g
2 | rofi -show run
3 |
4 | XF86AudioRaiseVolume
5 | pactl set-sink-volume 0 +5%
6 |
7 | XF86AudioLowerVolume
8 | pactl set-sink-volume 0 -5%
9 |
10 | XF86AudioMute
11 | pactl set-sink-mute 0 toggle
12 |
13 | XF86AudioPlay
14 | mpc toggle
15 |
16 | XF86AudioStop
17 | mpc stop
18 |
19 | super + Escape
20 | pkill -USR1 -x sxhkd
21 |
22 | super + {h,y,n,u}
23 | waitron window_move {-2 0, 0 2, 0 -2, 2 0}
24 |
25 | super + alt + {h,y,n,u}
26 | waitron window_resize {-2 0, 0 2, 0 -2, 2 0}
27 |
28 | super + shift + {h,y,n,u}
29 | waitron window_move {-50 0, 0 50, 0 -50, 50 0}
30 |
31 | super + shift + alt + {h,y,n,u}
32 | waitron window_resize {-50 0, 0 50, 0 -50, 50 0}
33 |
34 | super + alt + Escape
35 | waitron wm_quit 0
36 |
37 | super + e
38 | waitron window_maximize
39 |
40 | super + shift + c
41 | waitron window_close
42 |
43 | super + b
44 | waitron window_hor_maximize
45 |
46 | super + v
47 | waitron window_ver_maximize
48 |
49 | super + Tab
50 | waitron window_cycle
51 |
52 | super + shift + Tab
53 | waitron window_rev_cycle
54 |
55 | super + {_,shift +}{1-4}
56 | waitron {group_toggle,group_add_window} {1-4}
57 |
58 | super + ctrl + r
59 | waitron group_remove_window
60 |
61 | super + Return
62 | urxvt
63 |
64 | super + {Insert,Prior,Delete,Next,m}
65 | waitron window_snap {topleft,topright,bottomleft,bottomright,middle}
66 |
--------------------------------------------------------------------------------
/x/.config/x/colours/base16-ashes_urxvt:
--------------------------------------------------------------------------------
1 | ! Base16 Ashes
2 | ! Scheme: Jannik Siebert (https://github.com/janniks)
3 |
4 | #define base00 #1c2023
5 | #define base01 #393f45
6 | #define base02 #565e65
7 | #define base03 #747c84
8 | #define base04 #adb3ba
9 | #define base05 #c7ccd1
10 | #define base06 #dfe2e5
11 | #define base07 #f3f4f5
12 | #define base08 #c7ae95
13 | #define base09 #c7c795
14 | #define base0A #aec795
15 | #define base0B #95c7ae
16 | #define base0C #95aec7
17 | #define base0D #ae95c7
18 | #define base0E #c795ae
19 | #define base0F #c79595
20 |
21 | *foreground: base05
22 | #ifdef background_opacity
23 | *background: [background_opacity]base00
24 | #else
25 | *background: base00
26 | #endif
27 | *cursorColor: base05
28 |
29 | *color0: base00
30 | *color1: base08
31 | *color2: base0B
32 | *color3: base0A
33 | *color4: base0D
34 | *color5: base0E
35 | *color6: base0C
36 | *color7: base05
37 |
38 | *color8: base03
39 | *color9: base08
40 | *color10: base0B
41 | *color11: base0A
42 | *color12: base0D
43 | *color13: base0E
44 | *color14: base0C
45 | *color15: base07
46 |
47 | ! Note: colors beyond 15 might not be loaded (e.g., xterm, urxvt),
48 | ! use 'shell' template to set these if necessary
49 | *color16: base09
50 | *color17: base0F
51 | *color18: base01
52 | *color19: base02
53 | *color20: base04
54 | *color21: base06
55 |
56 |
--------------------------------------------------------------------------------
/ribbon.rasi:
--------------------------------------------------------------------------------
1 | /*-*- mode:css -*-*/
2 | /**
3 | * ROFI Color theme
4 | * User: Rokit
5 | */
6 |
7 | * {
8 | base-bg: #aaaaaaee;
9 | selected-bg: #ccccccaa;
10 | base-color: #222222aa;
11 | selected-color: #222;
12 | border-color: #00000066;
13 | transparent: #00000000;
14 | text-color: @base-color;
15 | font: "Hack 10";
16 | }
17 | #window {
18 | anchor: north;
19 | location: north;
20 | width: 100%;
21 | background-color: @base-bg;
22 | margin: 0px 0px 0px 0px;
23 | children: [ horibox ];
24 | }
25 | #horibox {
26 | background-color: @transparent;
27 | orientation: horizontal;
28 | children: [ prompt, textbox-prompt, entry, listview ];
29 | }
30 | #prompt {
31 | enabled: false;
32 | text-color: @selected-color;
33 | padding: 0.7em 0px 0.7em 0px;
34 | background-color: @transparent;
35 | }
36 | #textbox-prompt {
37 | expand: false;
38 | str: "↳";
39 | padding: 0.7em;
40 | text-color: @selected-color;
41 | background-color: @transparent;
42 | }
43 | #entry {
44 | padding: 0.7em;
45 | text-color: @selected-color;
46 | background-color: #eee;
47 | expand: false;
48 | width: 10em;
49 | }
50 | #listview {
51 | background-color: @transparent;
52 | layout: horizontal;
53 | spacing: 5px;
54 | lines: 100;
55 | }
56 | #element {
57 | background-color: @transparent;
58 | padding: 0.7em;
59 | }
60 | #element selected {
61 | border: 0px 1px;
62 | text-color: @selected-color;
63 | background-color: @selected-bg;
64 | }
65 |
--------------------------------------------------------------------------------
/mksh/.mksh.d/env.sh:
--------------------------------------------------------------------------------
1 | EDITOR="emacsclient -c"
2 | PAGER="less"
3 | LANG="en_AU.UTF-8"
4 | LC_CTYPE="en_AU.UTF-8"
5 | NTFY_FIFO_PATH="/home/$(whoami)/var/ntfy/ntfy.fifo"
6 | SRC_DIR="/home/$(whoami)/src/pkg"
7 | CHOME="/home/$(whoami)/usr"
8 | CHROOT="/home/poq/src/crx/chroot"
9 | #PATH=/home/poq/bin/:/home/poq/.cabal/bin/:/usr/local/bin/:/usr/bin/:/sbin:/Users/j/bin:/opt/pkg/bin:/Library/TeX/texbin:/usr/sbin:/home/poq/src/go/bin:/home/poq/.local/bin:/opt/local/bin:/opt/local/sbin:/Users/j/.local/bin:/opt/texlive/2016/bin/x86_64-linux:/bin:/home/poq/.stack/programs/x86_64-linux/ghc-ncurses6-8.0.2/bin
10 | #PATH=$PATH:/usr/local/bin:$HOME/src/nix/result/bin:$HOME/bin:$HOME/src/go/bin/:$HOME/.cabal/bin:$HOME/.local/bin:$HOME/bin:/opt/texlive/2017/bin/x86_64-linux/:/sbin:/Library/TeX/texbin
11 | PATH=$PATH:$HOME/bin:/sbin:/usr/sbin
12 | #WM="windowchef"
13 | BROWSER="chromium"
14 | MAIL="/home/poq/var/mail/jbl"
15 | WP_DIR="/home/poq/usr/img/wp"
16 | GOPATH="/home/poq/src/go"
17 | #GTK_IM_MODULE=ibus
18 | #XMODIFIERS=@im=ibus
19 | #QT_IM_MODULE=ibus
20 | SSH_ASKPASS=''
21 | #PS1=$'\E[36;1m/\E[34;1m$(pwd | sed "s,^$HOME,~,")\E[36;1m/\E[0m '
22 | PS1=$'\E[36;1m > \E[0m'
23 | APULSE_PLAYBACK_DEVICE="plugdmix"
24 | GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
25 | #(cat ~/.cache/wal/sequences &)
26 | JAVA_HOME="/usr/lib/jvm/oracle-jdk"
27 | export CSC EDITOR PAGER NTFY_FIFO_PATH LC_CTYPE PATH CHOME WM WP_DIR GOPATH TERM GTK_IM_MODULE XMODIFIERS QT_IM_MODULE MAIL PS1 SSH_ASKPASS JAVA_HOME LANG GUIX_LOCPATH
28 |
--------------------------------------------------------------------------------
/emacs/.emacs.d/custom/pkg.el:
--------------------------------------------------------------------------------
1 | (require 'use-package)
2 | (setq use-package-always-ensure t)
3 | (use-package aurel)
4 | (use-package company)
5 | (use-package company-ghc)
6 | :(use-package counsel)
7 | (use-package ess)
8 | (use-package emmet-mode)
9 | ;;(use-package excorporate)
10 | (use-package ghc)
11 | (use-package go-mode)
12 | (use-package haskell-mode)
13 | (use-package magit)
14 | (use-package swiper)
15 | ;;(use-package abyss-theme)
16 | (use-package adaptive-wrap)
17 | (use-package all-the-icons)
18 | (use-package all-the-icons-dired)
19 | (use-package base16-theme)
20 | (use-package circe)
21 | (use-package elfeed)
22 | ;;(use-package emms)
23 | ;;(use-package ensime)
24 | (use-package geiser)
25 | ;;(use-package hemisu-theme)
26 | (use-package intero)
27 | ;;(use-package minimal-theme)
28 | (use-package mu4e-alert)
29 | (use-package neotree)
30 | (use-package nix-mode)
31 | (use-package notmuch)
32 | (use-package org-msg)
33 | (use-package pretty-mode)
34 | ;;(use-package reverse-theme)
35 | ;;(use-package sbt-mode)
36 | (use-package scala-mode)
37 | (use-package simple-mpc)
38 | (use-package slime-company)
39 | ;;(use-package spacegray-theme)
40 | (use-package stumpwm-mode)
41 | (use-package sublime-themes)
42 | (use-package use-package)
43 | (use-package yasnippet)
44 | (use-package ace-window)
45 | (use-package tex
46 | :ensure auctex
47 | :ensure cdlatex)
48 | (use-package cl-lib)
49 | (use-package company)
50 | ;;(use-package csv-mode)
51 | ;;(use-package exwm)
52 | (use-package impatient-mode)
53 |
54 |
55 |
--------------------------------------------------------------------------------
/sxhkd/.config/sxhkd/sxhkdrc_wc:
--------------------------------------------------------------------------------
1 | mod4 + d
2 | rofi -show run -m $1
3 |
4 | XF86AudioRaiseVolume
5 | pactrl set-sink-volume 0 +2%
6 |
7 | XF86AudioLowerVolume
8 | pactrl set-sink-volume 0 -2%
9 |
10 | XF86AudioMute
11 | pactrl set-sink-mute 0 toggle
12 |
13 | XF86AudioPlay
14 | mpc toggle
15 |
16 | XF86AudioStop
17 | mpc stop
18 |
19 | mod4 + Escape
20 | pkill -USR1 -x sxhkd
21 |
22 | mod4 + {h,t,n,s}
23 | waitron window_move {-2 0, 0 2, 0 -2, 2 0}
24 |
25 | mod4 + ctrl + {h,t,n,s}
26 | waitron window_resize {-2 0, 0 2, 0 -2, 2 0}
27 |
28 | mod4 + shift + {h,t,n,s}
29 | waitron window_move {-50 0, 0 50, 0 -50, 50 0}
30 |
31 | mod4 + ctrl + shift + {h,t,n,s}
32 | waitron window_resize {-50 0, 0 50, 0 -50, 50 0}
33 |
34 | mod4 + ctrl + Escape
35 | waitron wm_quit 0
36 |
37 | mod4 + f
38 | waitron window_maximize
39 |
40 | mod4 + x
41 | waitron window_close
42 |
43 | mod4 + w
44 | waitron window_hor_maximize
45 |
46 | mod4 + v
47 | waitron window_ver_maximize
48 |
49 | mod4 + Tab
50 | waitron window_cycle
51 |
52 | mod4 + shift + Tab
53 | waitron window_rev_cycle
54 |
55 | mod4 + {_,shift +}{semicolon,comma,period,p}
56 | waitron {group_toggle,group_add_window} {1-4}
57 |
58 | mod4 + ctrl + r
59 | waitron group_remove_window
60 |
61 | mod4 + b
62 | conkeror file:///home/poq/.config/homepage/index.html
63 |
64 | mod4 + Return
65 | st
66 |
67 | mod4 + e
68 | emacsclient -c
69 |
70 | mod4 + {Insert,Prior,Delete,Next,m}
71 | waitron window_snap {topleft,topright,bottomleft,bottomright,middle}
72 |
--------------------------------------------------------------------------------
/sxhkd/.config/sxhkd/sxhkdrc_wmrc:
--------------------------------------------------------------------------------
1 | # launch a menu
2 | super + d
3 | dmenu_run -b -fn candy -nb black -nf darkgrey -sf black -sb darkgrey
4 |
5 | # pop a term
6 | super + Return
7 | tln
8 |
9 | # move windows
10 | super + {a,e,o,u}
11 | wmv {-20 0, 0 20, 0 -20, 20 0} $(pfw)
12 |
13 | # resize windows
14 | super + ctrl + {a,e,o,u}
15 | wrs {-20 0, 0 20, 0 -20, 20 0} $(pfw)
16 |
17 | # switch between windows quickly
18 | super + Tab
19 | wfw next
20 |
21 | # kill sxhkd (for config changes, must be manually reopened)
22 | super + Escape
23 | killall sxhkd
24 |
25 | # toggle groups
26 | super + {ampersand,bracketleft,braceright,parenleft,equal}
27 | mgfw -t {1,2,3,4,5}
28 |
29 | # assign window to group
30 | super + shift + {ampersand,bracketleft,braceright,parenleft,equal}
31 | mgfw -d all; \
32 | mgfw -a {1,2,3,4,5}
33 |
34 | # remove window from group
35 | super + shift + Return
36 | mgfw -d all
37 |
38 | # close window
39 | super + shift + x
40 | killw $(pfw)
41 |
42 | # fullscreens window
43 | super + f
44 | fls $(pfw)
45 |
46 | # focuses the closest window
47 | super + {h,t,n,s}
48 | cls {left,down,up,right}
49 |
50 | # puts window in a corner
51 | super + shift + {b,w,v,z}
52 | crnr {tl,tr,bl,br}
53 |
54 | # centers window
55 | super + shift + space
56 | cw $(pfw)
57 |
58 | # switches between different layouts
59 | super + shift + {h,t,n}
60 | # echo "$NOTILE" | grep -q "$(wname $WID)" || dytyl {default,spiral,float}
61 | dytyl {default,spiral,float}
62 |
--------------------------------------------------------------------------------
/nvim/.config/nvim/init.vim:
--------------------------------------------------------------------------------
1 | set nohlsearch
2 | set scrolloff=1
3 | set noundofile
4 | set nobackup
5 | set nowritebackup
6 | set splitbelow
7 | set splitright
8 |
9 | execute plug#begin()
10 | Plug 'scrooloose/nerdtree'
11 | Plug 'chrisbra/csv.vim'
12 | "Plug 'yuratomo/w3m.vim'
13 | Plug 'tpope/vim-surround'
14 | Plug 'tpope/vim-fugitive'
15 | Plug 'godlygeek/tabular'
16 | Plug 'plasticboy/vim-markdown'
17 | Plug 'tomtom/tcomment_vim'
18 | Plug 'jamessan/vim-gnupg'
19 | execute plug#end()
20 |
21 | filetype plugin indent on
22 | "vmap RDSendSelection
23 | "nmap RDSendLine
24 | let mapleader = "\"
25 | map :NERDTreeToggle
26 | nmap e :e
27 | nmap n :new
28 | nmap v :vnew
29 | nmap j :wincmd j
30 | nmap k :wincmd k
31 | nmap l :wincmd l
32 | nmap h :wincmd h
33 | nmap x :!python3 %:p
34 | nmap i :buffers
35 |
36 | set clipboard=unnamedplus
37 | "hi EndOfBuffer ctermbg=background ctermfg=background guibg=black guifg=black
38 |
39 | "inoremap ii
40 | aug CSV_Editing
41 | au!
42 | au BufRead,BufWritePost *.csv :%ArrangeColumn
43 | au BufWritePre *.csv :%UnArrangeColumn
44 | aug end
45 | map u1 :.w >> \/home/poq/var/irc/irc.unix.chat/\#unix/indd
46 | map f1 :.w >> \/home/poq/var/irc/irc.freenode.net/\#crux/indd
47 | "map s1 :.w >> \/home/poq/var/irc/im.codemonkey.be/zekekromar/indd
48 | "map bb :.w >> \/home/poq/var/irc/im.codemonkey.be/&\bitlbee/indd
49 | "map w1 :.w >> \$IRC_DIR\irc.unix.net\\#unix\indd
50 |
51 | let @b="yypVr─vy4p0r└$r┘yykPr┌$r┐j0i│ $a │"
52 |
--------------------------------------------------------------------------------
/dwm/patches/dwm-warp-git-20160626-7af4d43.diff:
--------------------------------------------------------------------------------
1 | diff --git a/dwm.c b/dwm.c
2 | index b2bc9bd..0329e1f 100644
3 | --- a/dwm.c
4 | +++ b/dwm.c
5 | @@ -228,6 +228,7 @@ static void updatewindowtype(Client *c);
6 | static void updatetitle(Client *c);
7 | static void updatewmhints(Client *c);
8 | static void view(const Arg *arg);
9 | +static void warp(const Client *c);
10 | static Client *wintoclient(Window w);
11 | static Monitor *wintomon(Window w);
12 | static int xerror(Display *dpy, XErrorEvent *ee);
13 | @@ -842,6 +843,7 @@ focusmon(const Arg *arg)
14 | in gedit and anjuta */
15 | selmon = m;
16 | focus(NULL);
17 | + warp(selmon->sel);
18 | }
19 |
20 | void
21 | @@ -1387,6 +1389,8 @@ restack(Monitor *m)
22 | }
23 | XSync(dpy, False);
24 | while (XCheckMaskEvent(dpy, EnterWindowMask, &ev));
25 | + if (m == selmon && (m->tagset[m->seltags] & m->sel->tags) && selmon->lt[selmon->sellt] != &layouts[2])
26 | + warp(m->sel);
27 | }
28 |
29 | void
30 | @@ -2039,6 +2043,28 @@ view(const Arg *arg)
31 | arrange(selmon);
32 | }
33 |
34 | +void
35 | +warp(const Client *c)
36 | +{
37 | + int x, y;
38 | +
39 | + if (!c) {
40 | + XWarpPointer(dpy, None, root, 0, 0, 0, 0, selmon->wx + selmon->ww/2, selmon->wy + selmon->wh/2);
41 | + return;
42 | + }
43 | +
44 | + if (!getrootptr(&x, &y) ||
45 | + (x > c->x - c->bw &&
46 | + y > c->y - c->bw &&
47 | + x < c->x + c->w + c->bw*2 &&
48 | + y < c->y + c->h + c->bw*2) ||
49 | + (y > c->mon->by && y < c->mon->by + bh) ||
50 | + (c->mon->topbar && !y))
51 | + return;
52 | +
53 | + XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w / 2, c->h / 2);
54 | +}
55 | +
56 | Client *
57 | wintoclient(Window w)
58 | {
59 |
--------------------------------------------------------------------------------
/x/.config/x/colours/mono:
--------------------------------------------------------------------------------
1 | #define fg #d0d0d0
2 | #define bg #010101
3 | #define lbg #020202
4 | #define c0 #353535
5 | #define c1 #ccc8a1
6 | #define c2 #cccccc
7 | #define c3 #dbdac1
8 | #define c4 #555555
9 | #define c5 #666666
10 | #define c6 #888888
11 | #define c7 #c2c2a8
12 | #define c8 #c3c2c5
13 | #define c9 #756637
14 | #define c10 #787878
15 | #define c11 #dbdac1
16 | #define c12 #aaaaaa
17 | #define c13 #777777
18 | #define c14 #999999
19 | #define c15 #dbdac1
20 | !030507
21 | !333333
22 |
23 | *foreground: fg
24 | *background: bg
25 | *cursorColor: c1
26 |
27 | ! Black Black !
28 | *color0: bg
29 | *color8: c8
30 | ! Red Red !
31 | ! #cd546c #ef545f
32 | *color1: c1
33 | *color9: c9
34 | ! Green Green !
35 | *color2: c2
36 | *color10: c10
37 | ! Yellow Yellow!
38 | *color3: c3
39 | *color11: c11
40 | ! Blue
41 | *color4: c4
42 | *color12: c12
43 | ! Magenta
44 | *color5: c5
45 | *color13: c13
46 | ! Cyan
47 | *color6: c6
48 | *color14: c14
49 | ! White
50 | *color7: c7
51 | *color15: c15
52 |
53 |
--------------------------------------------------------------------------------
/sxhkd/.config/sxhkd/dwm_sxhkdrc:
--------------------------------------------------------------------------------
1 | #
2 | # wm independent hotkeys
3 | #
4 |
5 | # terminal emulator
6 | super + Return
7 | myterm
8 |
9 | # program launcher
10 | super + space
11 | rofi -show run
12 |
13 | # make sxhkd reload its configuration files:
14 | super + Escape
15 | pkill -USR1 -x sxhkd
16 |
17 | # reload dwm
18 | super + shift + q
19 | killall dwm
20 |
21 | #
22 | # dwm hotkeys
23 | #
24 |
25 | # quit
26 | super + alt + Escape
27 | killall xinit
28 |
29 | # close and kill
30 | super + {_,shift + }x
31 | dwmc {kill,eviscerate}client
32 |
33 | # promote window to master
34 | super + b
35 | dwmc zoom
36 |
37 | # toggle bar
38 | super + shift + b
39 | dwmc togglebar
40 |
41 | # screen lock
42 | super + l
43 | slock
44 |
45 | # password
46 | #super + shift + a
47 | # psswd
48 |
49 | # move to next monitor
50 | super + {_,shift +} z
51 | dwmc {focusmon,tagmon} 0
52 |
53 | # focus/swap windows up and down the stack
54 | super + {t,n}
55 | dwmc focusstack {+,-}1
56 |
57 | # increase/decrease master size
58 | super + h
59 | dwmc setmfact -0.05
60 |
61 | super + s
62 | dwmc setmfact +0.05
63 |
64 | # increment/decrement master count
65 | super + {i,d}
66 | dwmc incnmaster {-,+}1
67 |
68 | # change tags
69 | super + {_,ctrl +}{_,shift +} {semicolon,comma,period,p,y}
70 | dwmc {_,toggle}{viewex,tagex} {0-4}
71 |
72 | # set layouts
73 | super + {a,o,e,u,f}
74 | dwmc setlayoutex {0-5}
75 |
76 |
77 | # focus the last node/desktop
78 | #super + Tab
79 | # rofi -show windowcd
80 |
81 | XF86MonBrightness{Up,Down}
82 | light {-A,-U} 5
83 |
84 | super + m
85 | rofi -show drun
86 |
87 | # wireless menu
88 | super + w
89 | urxvt -e nmtui
90 |
91 | # toggle floating
92 | super + shift + f
93 | dwmc togglefloating
94 |
--------------------------------------------------------------------------------
/dwm/patches/dwm-attachbottom-6.1.diff:
--------------------------------------------------------------------------------
1 | Binary files dwm/drw.o and dwm.patched/drw.o differ
2 | Binary files dwm/dwm and dwm.patched/dwm differ
3 | diff -ruN dwm/dwm.c dwm.patched/dwm.c
4 | --- dwm/dwm.c 2018-05-22 20:05:47.208417141 -0700
5 | +++ dwm.patched/dwm.c 2018-06-20 15:08:07.380496725 -0700
6 | @@ -147,6 +147,7 @@
7 | static void arrange(Monitor *m);
8 | static void arrangemon(Monitor *m);
9 | static void attach(Client *c);
10 | +static void attachbelow(Client *c);
11 | static void attachstack(Client *c);
12 | static void buttonpress(XEvent *e);
13 | static void checkotherwm(void);
14 | @@ -407,6 +408,17 @@
15 | }
16 |
17 | void
18 | +attachbelow(Client *c)
19 | +{
20 | + Client *below = c->mon->clients;
21 | + for (; below && below->next; below = below->next);
22 | + if (below)
23 | + below->next = c;
24 | + else
25 | + c->mon->clients = c;
26 | +}
27 | +
28 | +void
29 | attachstack(Client *c)
30 | {
31 | c->snext = c->mon->stack;
32 | @@ -1065,7 +1077,7 @@
33 | c->isfloating = c->oldstate = trans != None || c->isfixed;
34 | if (c->isfloating)
35 | XRaiseWindow(dpy, c->win);
36 | - attach(c);
37 | + attachbelow(c);
38 | attachstack(c);
39 | XChangeProperty(dpy, root, netatom[NetClientList], XA_WINDOW, 32, PropModeAppend,
40 | (unsigned char *) &(c->win), 1);
41 | @@ -1420,7 +1432,7 @@
42 | detachstack(c);
43 | c->mon = m;
44 | c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
45 | - attach(c);
46 | + attachbelow(c);
47 | attachstack(c);
48 | focus(NULL);
49 | arrange(NULL);
50 | @@ -1900,7 +1912,7 @@
51 | m->clients = c->next;
52 | detachstack(c);
53 | c->mon = mons;
54 | - attach(c);
55 | + attachbelow(c);
56 | attachstack(c);
57 | }
58 | if (m == selmon)
59 | Binary files dwm/dwm.o and dwm.patched/dwm.o differ
60 | Binary files dwm/util.o and dwm.patched/util.o differ
61 |
--------------------------------------------------------------------------------
/zsh/.zsh.d/fuckingstupidkeyshit.zsh:
--------------------------------------------------------------------------------
1 | # create a zkbd compatible hash;
2 | # to add other keys to this hash, see: man 5 terminfo
3 | typeset -A key
4 |
5 | key[Home]=${terminfo[khome]}
6 | key[End]=${terminfo[kend]}
7 | key[Insert]=${terminfo[kich1]}
8 | key[Delete]=${terminfo[kdch1]}
9 | key[Up]=${terminfo[kcuu1]}
10 | key[Down]=${terminfo[kcud1]}
11 | key[Left]=${terminfo[kcub1]}
12 | key[Right]=${terminfo[kcuf1]}
13 | key[PageUp]=${terminfo[kpp]}
14 | key[PageDown]=${terminfo[knp]}
15 |
16 | # setup key accordingly
17 | [[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line
18 | [[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line
19 | [[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode
20 | [[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char
21 | [[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history
22 | [[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-history
23 | [[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char
24 | [[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char
25 |
26 | # Finally, make sure the terminal is in application mode, when zle is
27 | # active. Only then are the values from $terminfo valid.
28 | if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then
29 | function zle-line-init () {
30 | echoti smkx
31 | }
32 | function zle-line-finish () {
33 | echoti rmkx
34 | }
35 | zle -N zle-line-init
36 | zle -N zle-line-finish
37 | fi
38 |
39 | function zle-line-init zle-keymap-select {
40 | if [[ "$EUID" -ne "0" ]]; then
41 | USER_LEVEL="%F{blue}%}" #unroot
42 | else
43 | USER_LEVEL="%F{magenta}%}" #root
44 | fi
45 | PROMPT="${USER_LEVEL} │ %f"
46 |
47 | zle reset-prompt
48 | }
49 |
50 | zle -N zle-line-init
51 | zle -N zle-keymap-select
52 |
53 |
54 |
--------------------------------------------------------------------------------
/scripts/bin/surf_qsearch:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # surf_qsearch:
4 | # Search script for surf. Takes the surf window id as argument.
5 | # POSIX compliant and GNU-free, I think.
6 | #
7 | # Add something like the following to your surf/config.(def.)h, replacing
8 | # surf_qsearch with the name of the file you've copied this code into:
9 | #
10 | # /* Quick searching. */
11 | # #define QSEARCH { \
12 | # .v = (char *[]){"/bin/sh", "-c", "surf_qsearch $0 $1", winid, NULL } \
13 | # }
14 | #
15 | # Add a keybinding in keys[]:
16 | #
17 | # { MODKEY, GDK_q, spawn, QSEARCH },
18 | #
19 |
20 | # Get the full query. The 'echo | dmenu' idiom may be a bit of
21 | # a hack, but it seems to work.
22 | q="$(echo | rofi -dmenu)"
23 | [ -z "$q" ] && exit 0
24 |
25 | # Extract the engine code.
26 | e="${q%% *}"
27 |
28 | # Encode the search string (i.e. the rest of q). xxd was formerly used
29 | # here, but xxd is part of vim packages on some systems, whereas od is
30 | # ubiquitous. A search script that breaks if someone accidentally removes
31 | # vim is stupid.
32 | s=$(printf %s "${q#* }" | tr -d '\n' | od -t x1 -An | tr ' ' '%')
33 |
34 | # These are examples. Change as desired.
35 | # 's' = duckduckgo.com
36 | # 'w' = wikipedia.org
37 | # 'a' = wiki.archlinux.org
38 | # 'd' = en.wiktionary.org
39 | case $e in
40 | 's')
41 | xprop -id $1 -f _SURF_GO 8s -set _SURF_GO "https://duckduckgo.com/lite/?q=${s}"
42 | ;;
43 | 'w')
44 | xprop -id $1 -f _SURF_GO 8s -set _SURF_GO "https://en.wikipedia.org/wiki/index.php/Special:Search?search=${s}&go=Go"
45 | ;;
46 | 'a')
47 | xprop -id $1 -f _SURF_GO 8s -set _SURF_GO "https://wiki.archlinux.org/index.php/Special:Search?search=${s}&go=Go"
48 | ;;
49 | 'd')
50 | xprop -id $1 -f _SURF_GO 8s -set _SURF_GO "https://en.wiktionary.org/w/index.php?search=${s}&go=Go"
51 | ;;
52 | *)
53 | exit 1
54 | ;;
55 | esac
--------------------------------------------------------------------------------
/scripts/bin/prtmk:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # z3bra - (c) wtfpl 2014
4 | # Create a Pkgfile from simple templates and user input
5 |
6 | PKGFILE=$HOME/etc/templates/Pkgfile
7 | PORTDIR=$CHOME/ports/poq
8 | EDITOR=${EDITOR:-vi}
9 |
10 | daddy="poq "
11 |
12 | echo_color () {
13 | tput bold
14 | tput setaf $1
15 | shift
16 |
17 | echo "$@"
18 |
19 | tput sgr0
20 | }
21 | test -n "$1" && name=$1 || read -p 'Name : ' name
22 | read -p 'Description : ' description
23 | read -p 'Version : ' version
24 | read -p 'URL : ' url
25 | read -p 'Source : ' sources
26 | read -p 'Depends on : ' depends
27 |
28 | PORTDIR=$PORTDIR/$name
29 |
30 | if test "$version" = "git"; then
31 |
32 | git_url=$sources
33 | sources=''
34 |
35 | read -p 'Git commit : ' sversion
36 |
37 | version=git-$(echo $sversion | cut -c-7)
38 |
39 | PKGFILE=${PKGFILE}-git
40 | else
41 | sources=$(echo $sources | sed "s/$name/\$name/")
42 | sources=$(echo $sources | sed "s/$version/\$version/")
43 | fi
44 |
45 | echo -n "creating port $name .. "
46 | mkdir $PORTDIR
47 |
48 | if cd $PORTDIR; then
49 | echo_color 2 OK
50 | else
51 | echo_color 1 FAIL
52 | exit 1
53 | fi
54 |
55 | echo -n "copying Pkgfile .. "
56 | cp $PKGFILE Pkgfile
57 |
58 | if test -f $PORTDIR/Pkgfile; then
59 | echo_color 2 OK
60 | else
61 | echo_color 1 FAIL
62 | exit 1
63 | fi
64 |
65 | echo -n "filling Pkgfile .. "
66 | sed \
67 | -e "s__DESCRIPTION__$description" \
68 | -e "s__URL__$url" \
69 | -e "s__MAINTAINER__$daddy" \
70 | -e "s__DEPENDENCIES__$depends" \
71 | -e "s__NAME__$name" \
72 | -e "s__VERSION__$version" \
73 | -e "s__SOURCE__$sources" \
74 | -e "s__GIT_URL__$git_url" \
75 | -e "s__GIT_HASH__$sversion" \
76 | -i $PORTDIR/Pkgfile
77 | echo_color 2 OK
78 |
79 | echo -n "opening Pkgfile for fixes .. "
80 | $EDITOR Pkgfile
81 | echo_color 2 OK
82 |
--------------------------------------------------------------------------------
/dwm/patches/dwm-actualfullscreen-20191112-cb3f58a.diff:
--------------------------------------------------------------------------------
1 | From 3a16816a6f5d38014c2a06ce395873c545c8789a Mon Sep 17 00:00:00 2001
2 | From: Soenke Lambert
3 | Date: Tue, 12 Nov 2019 10:44:02 +0100
4 | Subject: [PATCH] Fullscreen current window with [Alt]+[Shift]+[f]
5 |
6 | This actually fullscreens a window, instead of just hiding the statusbar
7 | and applying the monocle layout.
8 | ---
9 | config.def.h | 1 +
10 | dwm.c | 8 ++++++++
11 | 2 files changed, 9 insertions(+)
12 |
13 | diff --git a/config.def.h b/config.def.h
14 | index 1c0b587..8cd3204 100644
15 | --- a/config.def.h
16 | +++ b/config.def.h
17 | @@ -78,6 +78,7 @@ static Key keys[] = {
18 | { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
19 | { MODKEY, XK_space, setlayout, {0} },
20 | { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
21 | + { MODKEY|ShiftMask, XK_f, togglefullscr, {0} },
22 | { MODKEY, XK_0, view, {.ui = ~0 } },
23 | { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
24 | { MODKEY, XK_comma, focusmon, {.i = -1 } },
25 | diff --git a/dwm.c b/dwm.c
26 | index 4465af1..c1b899a 100644
27 | --- a/dwm.c
28 | +++ b/dwm.c
29 | @@ -211,6 +211,7 @@ static void tagmon(const Arg *arg);
30 | static void tile(Monitor *);
31 | static void togglebar(const Arg *arg);
32 | static void togglefloating(const Arg *arg);
33 | +static void togglefullscr(const Arg *arg);
34 | static void toggletag(const Arg *arg);
35 | static void toggleview(const Arg *arg);
36 | static void unfocus(Client *c, int setfocus);
37 | @@ -1719,6 +1720,13 @@ togglefloating(const Arg *arg)
38 | arrange(selmon);
39 | }
40 |
41 | +void
42 | +togglefullscr(const Arg *arg)
43 | +{
44 | + if(selmon->sel)
45 | + setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
46 | +}
47 | +
48 | void
49 | toggletag(const Arg *arg)
50 | {
51 | --
52 | 2.17.1
53 |
54 |
--------------------------------------------------------------------------------
/fbterm/.fbtermrc:
--------------------------------------------------------------------------------
1 | # Configuration for FbTerm
2 |
3 | # Lines starting with '#' are ignored.
4 | # Note that end-of-line comments are NOT supported, comments must be on a line of their own.
5 |
6 |
7 | # font family names/pixelsize used by fbterm, multiple font family names must be seperated by ','
8 | # and using a fixed width font as the first is strongly recommended
9 | font-names=yuki
10 | font-size=9
11 |
12 | # force font width (and/or height), usually for non-fixed width fonts
13 | # legal value format: n (fw_new = n), +n (fw_new = fw_old + n), -n (fw_new = fw_old - n)
14 | #font-width=
15 | #font-height=
16 |
17 | # default color of foreground/background text
18 | # available colors: 0 = black, 1 = red, 2 = green, 3 = brown, 4 = blue, 5 = magenta, 6 = cyan, 7 = white
19 |
20 | #color-foreground=545454
21 | #color-background=020202
22 | #color-0=020202
23 | #color-1=FF7A7A
24 | #color-2=FF4545
25 | #color-3=E63030
26 | #color-4=F20F0F
27 | #color-5=CC0000
28 | #color-6=910000
29 | #color-7=545454
30 | #color-8=020202
31 | #color-9=FF7A7A
32 | #color-10=FF4545
33 | #color-11=E63030
34 | #color-12=F20F0F
35 | #color-13=CC0000
36 | #color-14=910000
37 | #color-15=545454
38 |
39 | # max scroll-back history lines of every window, value must be [0 - 65535], 0 means disable it
40 | history-lines=1000
41 |
42 | # up to 5 additional text encodings, multiple encodings must be seperated by ','
43 | # run 'iconv --list' to get available encodings.
44 | text-encodings=UTF-8
45 |
46 | # cursor shape: 0 = underline, 1 = block
47 | # cursor flash interval in milliseconds, 0 means disable flashing
48 | cursor-shape=0
49 | cursor-interval=0
50 |
51 | # additional ascii chars considered as part of a word while auto-selecting text, except ' ', 0-9, a-z, A-Z
52 | word-chars=._-
53 |
54 | # change the clockwise orientation angle of screen display
55 | # available values: 0 = 0 degree, 1 = 90 degrees, 2 = 180 degrees, 3 = 270 degrees
56 | screen-rotate=0
57 |
58 | # specify the favorite input method program to run
59 | input-method=
60 |
61 | # so that shit works
62 | #export TERM=linux
63 |
64 | # treat ambiguous width characters as wide
65 | #ambiguous-wide=yes
66 |
67 |
--------------------------------------------------------------------------------
/picom/.config/picom.conf:
--------------------------------------------------------------------------------
1 | # Shadow
2 | shadow = false;
3 | shadow-radius = 7;
4 | shadow-offset-x = -7;
5 | shadow-offset-y = -7;
6 | log-level = "warn";
7 | # log-file = "/path/to/your/log/file";
8 | # shadow-opacity = 0.7;
9 | # shadow-red = 0.0;
10 | # shadow-green = 0.0;
11 | # shadow-blue = 0.0;
12 | shadow-exclude = [
13 | "name = 'Notification'",
14 | "class_g = 'Conky'",
15 | "class_g ?= 'Notify-osd'",
16 | "class_g = 'Cairo-clock'",
17 | "_GTK_FRAME_EXTENTS@:c"
18 | ];
19 | # shadow-exclude = "n:e:Notification";
20 | # shadow-exclude-reg = "x10+0+0";
21 | # xinerama-shadow-crop = true;
22 |
23 | # Opacity
24 | #inactive-opacity = 0.8;
25 | # active-opacity = 0.8;
26 | #frame-opacity = 0.65;
27 | inactive-opacity-override = false;
28 | # inactive-dim = 0.2;
29 | # inactive-dim-fixed = true;
30 | # blur-background = true;
31 | # blur-background-frame = true;
32 | blur-kern = "3x3box";
33 | # blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
34 | # blur-background-fixed = true;
35 | blur-background-exclude = [
36 | "window_type = 'dock'",
37 | "window_type = 'desktop'",
38 | "_GTK_FRAME_EXTENTS@:c",
39 | ];
40 |
41 | # Fading
42 | fading = true;
43 | # fade-delta = 30;
44 | fade-in-step = 0.03;
45 | fade-out-step = 0.03;
46 | # no-fading-openclose = true;
47 | # no-fading-destroyed-argb = true;
48 | fade-exclude = [ ];
49 |
50 | # Other
51 | backend = "xrender";
52 | mark-wmwin-focused = true;
53 | mark-ovredir-focused = true;
54 | # use-ewmh-active-win = true;
55 | detect-rounded-corners = true;
56 | detect-client-opacity = true;
57 | refresh-rate = 0;
58 | vsync = true;
59 | # sw-opti = true;
60 | # unredir-if-possible = true;
61 | # unredir-if-possible-delay = 5000;
62 | # unredir-if-possible-exclude = [ ];
63 | focus-exclude = [ "class_g = 'Cairo-clock'" ];
64 | detect-transient = true;
65 | detect-client-leader = true;
66 | invert-color-include = [ ];
67 | # resize-damage = 1;
68 |
69 | # GLX backend
70 | # glx-no-stencil = true;
71 | # glx-no-rebind-pixmap = true;
72 | # xrender-sync-fence = true;
73 | use-damage = true;
74 |
75 | # Window type settings
76 | wintypes:
77 | {
78 | tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
79 | dock = { shadow = false; }
80 | dnd = { shadow = false; }
81 | popup_menu = { fade = false; }
82 | dropdown_menu = { fade = false; }
83 | };
84 |
--------------------------------------------------------------------------------
/dwm/patches/dwm-statuspadding-20150524-c8e9479.diff:
--------------------------------------------------------------------------------
1 | From 75d5edbe16ee2fc060ff8b05eea17791d6334a59 Mon Sep 17 00:00:00 2001
2 | From: Christopher Drelich
3 | Date: Thu, 24 May 2018 23:24:12 -0400
4 | Subject: [PATCH] Replaces magic numbers in statusbar with configurable
5 | variables.
6 |
7 | horizpadbar for horizontal statusbar padding
8 | vertpadbar for vertical statusbar padding
9 |
10 | StatusText now has both left and right padding,
11 | as well as the vertical padding that all of the statusbar shares.
12 |
13 | Other than the addition of left padding to StatusText, appearance
14 | of the statusbar is identical to pre-patch when using the defaults
15 | in config.def.h
16 | ---
17 | config.def.h | 2 ++
18 | dwm.c | 8 ++++----
19 | 2 files changed, 6 insertions(+), 4 deletions(-)
20 |
21 | diff --git a/config.def.h b/config.def.h
22 | index a9ac303..5819399 100644
23 | --- a/config.def.h
24 | +++ b/config.def.h
25 | @@ -5,6 +5,8 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
26 | static const unsigned int snap = 32; /* snap pixel */
27 | static const int showbar = 1; /* 0 means no bar */
28 | static const int topbar = 1; /* 0 means bottom bar */
29 | +static const int horizpadbar = 2; /* horizontal padding for statusbar */
30 | +static const int vertpadbar = 0; /* vertical padding for statusbar */
31 | static const char *fonts[] = { "monospace:size=10" };
32 | static const char dmenufont[] = "monospace:size=10";
33 | static const char col_gray1[] = "#222222";
34 | diff --git a/dwm.c b/dwm.c
35 | index bb95e26..7b9ed42 100644
36 | --- a/dwm.c
37 | +++ b/dwm.c
38 | @@ -704,8 +704,8 @@ drawbar(Monitor *m)
39 | /* draw status first so it can be overdrawn by tags later */
40 | if (m == selmon) { /* status is only drawn on selected monitor */
41 | drw_setscheme(drw, scheme[SchemeNorm]);
42 | - sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
43 | - drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);
44 | + sw = TEXTW(stext);
45 | + drw_text(drw, m->ww - sw, 0, sw, bh, lrpad / 2, stext, 0);
46 | }
47 |
48 | for (c = m->clients; c; c = c->next) {
49 | @@ -1544,8 +1544,8 @@ setup(void)
50 | drw = drw_create(dpy, screen, root, sw, sh);
51 | if (!drw_fontset_create(drw, fonts, LENGTH(fonts)))
52 | die("no fonts could be loaded.");
53 | - lrpad = drw->fonts->h;
54 | - bh = drw->fonts->h + 2;
55 | + lrpad = drw->fonts->h + horizpadbar;
56 | + bh = drw->fonts->h + vertpadbar;
57 | updategeom();
58 | /* init atoms */
59 | utf8string = XInternAtom(dpy, "UTF8_STRING", False);
60 | --
61 | 2.7.4
62 |
63 |
--------------------------------------------------------------------------------
/dwm/patches/dwm-ru_fibonacci-6.2.diff:
--------------------------------------------------------------------------------
1 | diff -upN a/config.def.h b/config.def.h
2 | --- a/config.def.h 2019-05-28 13:43:00.326646120 +0200
3 | +++ b/config.def.h 2019-05-28 21:17:55.213171996 +0200
4 | @@ -36,8 +36,11 @@ static const float mfact = 0.55; /*
5 | static const int nmaster = 1; /* number of clients in master area */
6 | static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
7 |
8 | +#include "fibonacci.c"
9 | static const Layout layouts[] = {
10 | /* symbol arrange function */
11 | + { "[@]", spiral },
12 | + { "[\\]", dwindle },
13 | { "[]=", tile }, /* first entry is default */
14 | { "><>", NULL }, /* no layout function means floating behavior */
15 | { "[M]", monocle },
16 | diff -upN a/fibonacci.c b/fibonacci.c
17 | --- a/fibonacci.c 1970-01-01 01:00:00.000000000 +0100
18 | +++ b/fibonacci.c 2019-05-28 21:07:51.119850125 +0200
19 | @@ -0,0 +1,73 @@
20 | +void fibonacci(Monitor *mon, int s) {
21 | + unsigned int i, n, nx, ny, nw, nh;
22 | + Client *c;
23 | +
24 | + for(n = 0, c = nexttiled(mon->clients); c; c = nexttiled(c->next), n++);
25 | + if(n == 0)
26 | + return;
27 | + if(n == 1){
28 | + c = nexttiled(mon->clients);
29 | + resize(c, mon->wx, mon->wy, mon->ww - 2 * c->bw, mon->wh - 2 * c->bw, 0);
30 | + return;
31 | + }
32 | +
33 | + nx = mon->wx;
34 | + ny = mon->gappx;
35 | + nw = mon->ww;
36 | + nh = mon->wh;
37 | +
38 | + for(i = 0, c = nexttiled(mon->clients); c; c = nexttiled(c->next)) {
39 | + if((i % 2 && nh / 2 > 2 * c->bw)
40 | + || (!(i % 2) && nw / 2 > 2 * c->bw)) {
41 | + if(i < n - 1) {
42 | + if(i % 2)
43 | + nh /= 2;
44 | + else
45 | + nw /= 2;
46 | + if((i % 4) == 2 && !s)
47 | + nx += nw;
48 | + else if((i % 4) == 3 && !s)
49 | + ny += nh;
50 | + }
51 | + if((i % 4) == 0) {
52 | + if(s)
53 | + ny += nh;
54 | + else
55 | + ny -= nh;
56 | + }
57 | + else if((i % 4) == 1)
58 | + nx += nw;
59 | + else if((i % 4) == 2)
60 | + ny += nh;
61 | + else if((i % 4) == 3) {
62 | + if(s)
63 | + nx += nw;
64 | + else
65 | + nx -= nw;
66 | + }
67 | + if(i == 0)
68 | + {
69 | + if(n != 1)
70 | + nw = mon->ww * mon->mfact;
71 | + ny = mon->wy + mon->gappx;
72 | + }
73 | + else if(i == 1)
74 | + nw = mon->ww - nw - mon->gappx;
75 | + i++;
76 | + }
77 | + if((s == 0 && i <= 4 && (i!=2 || n==2)) || (s==1 && (i%2==1 || i==n)))
78 | + resize(c, nx + mon->gappx, ny, nw - 2 * (c->bw) - mon->gappx, nh - 2 * (c->bw) - 2*mon->gappx, False);
79 | + else
80 | + resize(c, nx + mon->gappx, ny, nw - 2 * (c->bw) - mon->gappx, nh - 2 * (c->bw) - mon->gappx, False);
81 | + }
82 | +}
83 | +
84 | +void
85 | +dwindle(Monitor *mon) {
86 | + fibonacci(mon, 1);
87 | +}
88 | +
89 | +void
90 | +spiral(Monitor *mon) {
91 | + fibonacci(mon, 0);
92 | +}
93 |
--------------------------------------------------------------------------------
/cwm/.cwmrc:
--------------------------------------------------------------------------------
1 | # ░░░░█▀▀░█░█░█▄█░█▀▄░█▀▀
2 | # ░░░░█░░░█▄█░█░█░█▀▄░█░░
3 | # ░▀░░▀▀▀░▀░▀░▀░▀░▀░▀░▀▀▀
4 |
5 |
6 | fontname "hack"
7 |
8 | # borderwidth
9 | borderwidth 2
10 |
11 | # make other shit work first
12 | bind CM-j unmap
13 | bind CM-h unmap
14 | bind CM-l unmap
15 | bind CM-k unmap
16 | bind 4-s unbind
17 | bind 4-t unbind
18 | bind 4-n unbind
19 | bind M-Return unmap
20 | bind C-slash unmap
21 | bind M-Right unmap
22 | bind M-Left unmap
23 | bind M-Tab unmap
24 |
25 |
26 | # colors
27 | color activeborder '#cf6a4c'
28 | color inactiveborder '#5f5a60'
29 | color font '#9b859d'
30 | color menubg '#1e1e1e'
31 | color menufg '#f9ee98'
32 | color groupborder '#0000cc'
33 | color ungroupborder '#7a7aff'
34 |
35 | # autogroups
36 | autogroup 1 Emacs
37 | autogroup 2 Firefox
38 | autogroup 3 mpv
39 | autogroup 4 Steam
40 | autogroup 5 .zathura-wrapped_
41 | autogroup 7 Gimp
42 | autogroup 9 discord
43 |
44 | moveamount 5
45 | bigmoveamount 90
46 | sticky no
47 |
48 | #menu
49 | command term urxvt
50 | command brws surf
51 | command emcs 'emacsclient -c'
52 | command steam steam
53 |
54 | # gaps
55 | gap 30 10 10 10
56 |
57 | # resize
58 | bind 4M-h resizeleft
59 | bind 4M-t resizedown
60 | bind 4M-n resizeup
61 | bind 4M-s resizeright
62 |
63 | # big resize
64 | bind 4SM-h bigresizeleft
65 | bind 4SM-t bigresizedown
66 | bind 4SM-n bigresizeup
67 | bind 4SM-s bigresizeright
68 |
69 | # move
70 | bind 4-h moveleft
71 | bind 4-t movedown
72 | bind 4-n moveup
73 | bind 4-s moveright
74 |
75 | # big move
76 | bind 4S-h bigmoveleft
77 | bind 4S-t bigmovedown
78 | bind 4S-n bigmoveup
79 | bind 4S-s bigmoveright
80 |
81 | # groups
82 | bind 4-1 group1
83 | bind 4-2 group2
84 | bind 4-3 group3
85 | bind 4-4 group4
86 | bind 4-5 group5
87 | bind 4-6 group6
88 | bind 4-7 group7
89 | bind 4-8 group8
90 | bind 4-9 group9
91 |
92 | bind 4S-1 grouponly1
93 | bind 4S-2 grouponly2
94 | bind 4S-3 grouponly3
95 | bind 4S-4 grouponly4
96 | bind 4S-5 grouponly5
97 | bind 4S-6 grouponly6
98 | bind 4S-7 grouponly7
99 | bind 4S-8 grouponly8
100 | bind 4S-9 grouponly9
101 |
102 | # extra binds
103 | bind 4-Tab cycle
104 | bind 4S-Tab rcycle
105 | bind 4-comma label
106 | #bind 4-bang rofilauncher
107 | bind 4-e 'emacsclient -c'
108 | bind 4-q delete
109 | bind 4-g grouptoggle
110 | bind 4MC-l cyclegroup
111 | bind 4MC-h rcyclegroup
112 |
113 | bind 4-p rofilauncher
114 | bind 4-z firefox
115 | bind 4S-v dv
116 |
117 | bind 4-v vmaximize
118 | bind 4-b hmaximize
119 | bind 4-m maximize
120 | bind 4-f fullscreen
121 |
122 | bind 4-Return st
123 | bind 4M-r restart
124 | bind 4M-Escape quit
125 |
126 | # unbind shit
127 | bind M-h unbind
128 | bind M-j unbind
129 | bind M-l unbind
130 | bind M-k unbind
131 |
132 | # fix mousebinds (sometimes it's a necessity!)
133 | #mousebind 4-1 window_move
134 | #mousebind 4-2 window_grouptoggle
135 | #mousebind 4-3 window_resize
136 |
--------------------------------------------------------------------------------
/sxhkd/.config/sxhkd/old/sxhkdrc.old:
--------------------------------------------------------------------------------
1 | super + d
2 | thinglaunch
3 |
4 | XF86AudioRaiseVolume
5 | amixer sset Master 5%+ unmute
6 |
7 | XF86AudioLowerVolume
8 | amixer sset Master 5%- unmute
9 |
10 | XF86AudioMute
11 | amixer sset Master toggle
12 |
13 | XF86AudioPlay
14 | mpc toggle
15 |
16 | XF86AudioStop
17 | mpc stop
18 |
19 | super + Escape
20 | pkill -USR1 -x sxhkd
21 |
22 |
23 | # bspwm
24 |
25 |
26 | super + shift + q
27 | bspc quit
28 |
29 | # close and kill
30 | super + {_,shift + }w
31 | bspc node -{c,k}
32 |
33 | # alternate between the tiled and monocle layout
34 | super + m
35 | bspc desktop -l next
36 |
37 | # if the current node is automatic, send it to the last manual, otherwise pull the last leaf
38 | super + y
39 | bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused
40 |
41 | # swap the current node and the biggest node
42 | super + g
43 | bspc node -s biggest
44 |
45 | #
46 | # state/flags
47 | #
48 |
49 | # set the window state
50 | super + {t,shift + t,s,f}
51 | bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
52 |
53 | # set the node flags
54 | super + ctrl + {x,y,z}
55 | bspc node -g {locked,sticky,private}
56 |
57 | #
58 | # focus/swap
59 | #
60 |
61 | # focus the node in the given direction
62 | super + {_,shift + }{h,j,k,l}
63 | bspc node -{f,s} {west,south,north,east}
64 |
65 | # focus the node for the given path jump
66 | super + {p,b,comma,period}
67 | bspc node -f @{parent,brother,first,second}
68 |
69 | # focus the next/previous node
70 | super + {_,shift + }c
71 | bspc node -f {next,prev}
72 |
73 | # focus the next/previous desktop
74 | super + bracket{left,right}
75 | bspc desktop -f {prev,next}
76 |
77 | # focus the last node/desktop
78 | super + {grave,Tab}
79 | bspc {node,desktop} -f last
80 |
81 | # focus the older or newer node in the focus history
82 | super + {o,i}
83 | bspc wm -h off; \
84 | bspc node {older,newer} -f; \
85 | bspc wm -h on
86 |
87 | # focus or send to the given desktop
88 | super + {_,shift + }{1-9,0}
89 | bspc {desktop -f,node -d} '^{1-9,10}'
90 |
91 | #
92 | # preselect
93 | #
94 |
95 | # preselect the direction
96 | super + ctrl + {h,j,k,l}
97 | bspc node -p {west,south,north,east}
98 |
99 | # preselect the ratio
100 | super + ctrl + {1-9}
101 | bspc node -o 0.{1-9}
102 |
103 | # cancel the preselection for the focused node
104 | super + ctrl + Escape
105 | bspc node -p cancel
106 |
107 | # cancel the preselection for the focused desktop
108 | super + ctrl + shift + space
109 | bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
110 |
111 | #
112 | # move/resize
113 | #
114 |
115 | # expand a window by moving one of its side outward
116 | super + alt + {h,j,k,l}
117 | bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
118 |
119 | # contract a window by moving one of its side inward
120 | super + alt + shift + {h,j,k,l}
121 | bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
122 |
123 | # move a floating window
124 | super + {Left,Down,Up,Right}
125 | bspc node -v {-20 0,0 20,0 -20,20 0}
126 |
--------------------------------------------------------------------------------
/sxhkd/.config/sxhkd/old/sxhkdrc_fyre:
--------------------------------------------------------------------------------
1 | # mod1 = Alt_L
2 | # mod2 = Alt_R
3 | # mod3 = Hyper_L
4 | # mod4 = Super_L
5 |
6 | super + Return
7 | urxvt
8 |
9 | super + b
10 | firefox
11 |
12 | urxvt
13 |
14 | # reloading
15 | mod1 + shift + e
16 | pkill eventually.sh | eventually.sh &
17 | mod1 + shift + r
18 | pkill -USR1 -x sxhkd
19 |
20 | # movement scripts
21 | mod1 + Tab
22 | focus.sh prev
23 | mod4 + Tab
24 | focus.sh next
25 | mod4 + {h,j,k,l}
26 | closest.sh {h,j,k,l}
27 | mod1 + {h,j,k,l}
28 | snap.sh {h,j,k,l}
29 | mod4 + shift + {h,j,k,l}
30 | move.sh {left,down,up,right}
31 | mod1 + shift + {h,j,k,l}
32 | move.sh {left,down,up,right}
33 |
34 | # resize window
35 | mod4 + {w,a,s,d}
36 | size.sh {su,sl,gd,gr} $(pfw)
37 |
38 | # window stacking order
39 | mod1 + u
40 | chwso -l $(pfw); closest.sh h
41 | mod1 + i
42 | chwso -l $(pfw); closest.sh l
43 | mod1 + y
44 | hover.sh $(pfw)
45 | mod1 + o
46 | ign.sh $(pfw)
47 | mod1 + p
48 | hover.sh $(pfw)
49 |
50 | # manual window management
51 | mod1 + g
52 | snap.sh md $(pfw)
53 | mod1 + {a,r,s,t,z,x,c}
54 | position.sh {lft,quar,rht,full,res,ext,vid} $(pfw)
55 | mod4 + f
56 | fullscreen.sh $(pfw)
57 |
58 | # groups
59 | mod1 + {1,2,3,4,5,6,7,8,9,0}
60 | windows.sh -T {1,2,3,4,5,6,7,8,9,0}
61 | mod4 + {1,2,3,4,5,6,7,8,9,0}
62 | windows.sh -z {1,2,3,4,5,6,7,8,9,0}
63 | mod1 + shift + {1,2,3,4,5,6,7,8,9,0}
64 | windows.sh -a $(pfw) {1,2,3,4,5,6,7,8,9,0}
65 | mod4 + shift + {1,2,3,4,5,6,7,8,9,0}
66 | windows.sh -m {1,2,3,4,5,6,7,8,9,0}
67 | mod1 + c
68 | windows.sh -c $(pfw)
69 | mod1 + shift + c
70 | windows.sh --reset
71 |
72 | # layouts
73 | mod2 + {1,2,3,4,5,6,7,8,9,0}
74 | layouts.sh -o {1,2,3,4,5,6,7,8,9,0}
75 | mod2 + shift + {1,2,3,4,5,6,7,8,9,0}
76 | layouts.sh -s {1,2,3,4,5,6,7,8,9,0}
77 |
78 |
79 |
80 | Print
81 | shot
82 | shift + Print
83 | shot; notify -D -m $(echo "Uploading Screenshot"); ioup ~/shot.png | \
84 | xsel -i; xsel -o | xsel -bi; rm ~/shot.png
85 |
86 | # it's a killin' time!
87 | mod4 + q
88 | winkill.sh $(pfw)
89 |
90 |
91 | # system
92 | mod4 + e
93 | power.sh -l
94 | mod4 + shift + {q,f,p}
95 | power.sh -{r,e,p}
96 |
97 | # mouse
98 | mod4 + @button1
99 | focus.sh $(underneath.sh) "disable" -q; xmmv $(underneath.sh)
100 | button2
101 | focus.sh $(underneath.sh) "disable" -q
102 | mod4 + !button3
103 | wrs -a %i %i $(pfw)
104 | mod4 + z
105 | mouse.sh toggle
106 | button8
107 | xte 'keydown Control_L' 'key w' 'keyup Control_L'
108 | button9
109 | xte 'keydown Control_L' 'keydown Shift_L' 'key t' 'keyup Shift_L' \
110 | 'keyup Control_L'
111 |
112 |
113 | # speed
114 | mod2 + q
115 | mpvc -x -0.05 -q
116 | mod2 + w
117 | mpvc -x 0.05 -q
118 | mod2 + e
119 | mpvc -X 1.00 -q
120 |
121 | # volume
122 | mod2 + o
123 | mpvc -v -5 -q
124 | mod2 + p
125 | mpvc -v 5 -q
126 |
127 | {XF86AudioLowerVolume, XF86AudioRaiseVolume}
128 | amixer -c 0 set Master 2db{-,+} unmute
129 | XF86AudioMute
130 | amixer -c 0 set Master togglemute
131 |
--------------------------------------------------------------------------------
/sxhkd/.config/sxhkd/old/sxhkdrc_fyre2:
--------------------------------------------------------------------------------
1 | # you don't have to use sxhkd for your hotkey daemon - xbindkeys is an alternative
2 | # set modifiers - https://wildefyr.net/blog/2015/05/Modifying-Modifiers.html
3 |
4 | # reload sxhkd
5 | mod1 + shift + r
6 | pkill -USR1 -x sxhkd
7 |
8 | # launch programs
9 | mod4 + Return
10 | urxvt
11 | mod1 + d
12 | dmenu
13 |
14 | # kinda similar to windows alt-tab functionality
15 | mod1 + Tab
16 | focus --prev
17 | mod1 + shift + Tab
18 | focus --next
19 | # focus the closest window in a direction
20 | mod4 + {h,j,k,l}
21 | closest {--left,--down,--up,--right}
22 |
23 | # move window in a direction
24 | mod4 + shift + {h,j,k,l}
25 | move {--left,--down,--up,--right}
26 | # snap resize window in a direction
27 | mod4 + {w,a,s,d}
28 | sizesnap {--shrinkup,--shrinkleft,--growdown,--growright}
29 |
30 | # snap current window to an edge
31 | mod1 + {h,j,k,l}
32 | snap {--left,--down,--up,--right}
33 | # snap the window to the corners and middle of screen 2
34 | mod1 + {g,y,u,b,n}
35 | snap {--middle,--topleft,--topright,--bottomleft,--bottomright}
36 |
37 | # handy shortcuts to place window in a useful position
38 | mod1 + {q,w,e,r,a,s,b}
39 | position {--left,--quartar,--right,--fuller,--restore,--extend,--bottom}
40 | # position the current window relatively on new screen
41 | mod1 + {z,x,c}
42 | position {--screen 1,--screen 2,--screen 3}
43 |
44 | # fullscreen the current window on current screen
45 | mod4 + f
46 | fullscreen
47 | # fullscreen the current window on screen two
48 | mod4 + shift + f
49 | fullscreen $(pfw) 2
50 |
51 | # add current window to group, useful for both workspaces and groups
52 | mod4 + shift + {1,2,3,4,5,6,7,8,9,0}
53 | windows -a $(pfw) {1,2,3,4,5,6,7,8,9,0}
54 |
55 | # recommend settings if workflow is set to 'workspaces'
56 | mod4 + {1,2,3,4,5,6,7,8,9,0}
57 | windows -m {1,2,3,4,5,6,7,8,9,0}
58 |
59 | # recommend settings if workflow is set to 'groups'
60 | mod4 + {1,2,3,4,5,6,7,8,9,0}
61 | windows -T {1,2,3,4,5,6,7,8,9,0}
62 | # clean current window from group
63 | mod4 + c
64 | windows -c $(pfw)
65 | # reset groups
66 | mod4 + shift + c
67 | windows --reset
68 |
69 | # open layout
70 | mod2 + {1,2,3,4,5,6,7,8,9,0}
71 | layouts -o {1,2,3,4,5,6,7,8,9,0}
72 | # save layout to plain text file
73 | mod2 + shift + {1,2,3,4,5,6,7,8,9,0}
74 | layouts -s {1,2,3,4,5,6,7,8,9,0}
75 |
76 | # allow window to hover other all over windows
77 | mod4 + p
78 | hover
79 |
80 | # here's johnny!
81 | mod4 + shift + q
82 | winkill $(pfw)
83 |
84 | # handy script to control fyre
85 | # see sourcefyre.zsh to source fyre functions into your shell
86 | mod4 + e
87 | power -l
88 | mod4 + shift + {q,e,r}
89 | power -{p,e,r}
90 |
91 | # focus the window underneath the cursor with middle mouse
92 | button2
93 | focus
94 | # move window underneath cursor
95 | mod1 + @button1
96 | focus; xmmv
97 | # resize the window underneath the cursor
98 | mod1 + !button3
99 | wrs -a %i %i $(pfw)
100 |
101 | # toggle mouse functionality
102 | mod1 + t
103 | mouse --toggle
104 |
105 | # vim: set ft=sxhkdrc :
106 |
--------------------------------------------------------------------------------
/dwm/patches/dwm-notitle-6.2.diff:
--------------------------------------------------------------------------------
1 | From 969dbbc548f16da5d94630e3d54e9c96c5296520 Mon Sep 17 00:00:00 2001
2 | From: Ryan Kes
3 | Date: Thu, 28 Mar 2019 14:36:07 +0100
4 | Subject: [PATCH] dwm-notitle-6.2
5 |
6 | ---
7 | config.def.h | 1 -
8 | dwm.c | 20 ++++----------------
9 | 2 files changed, 4 insertions(+), 17 deletions(-)
10 |
11 | diff --git a/config.def.h b/config.def.h
12 | index 1c0b587..19330cd 100644
13 | --- a/config.def.h
14 | +++ b/config.def.h
15 | @@ -102,7 +102,6 @@ static Button buttons[] = {
16 | /* click event mask button function argument */
17 | { ClkLtSymbol, 0, Button1, setlayout, {0} },
18 | { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
19 | - { ClkWinTitle, 0, Button2, zoom, {0} },
20 | { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
21 | { ClkClientWin, MODKEY, Button1, movemouse, {0} },
22 | { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
23 | diff --git a/dwm.c b/dwm.c
24 | index 4465af1..bcf5cb1 100644
25 | --- a/dwm.c
26 | +++ b/dwm.c
27 | @@ -64,8 +64,8 @@ enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
28 | NetWMFullscreen, NetActiveWindow, NetWMWindowType,
29 | NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
30 | enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */
31 | -enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
32 | - ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
33 | +enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkClientWin,
34 | + ClkRootWin, ClkLast }; /* clicks */
35 |
36 | typedef union {
37 | int i;
38 | @@ -439,10 +439,8 @@ buttonpress(XEvent *e)
39 | arg.ui = 1 << i;
40 | } else if (ev->x < x + blw)
41 | click = ClkLtSymbol;
42 | - else if (ev->x > selmon->ww - TEXTW(stext))
43 | - click = ClkStatusText;
44 | else
45 | - click = ClkWinTitle;
46 | + click = ClkStatusText;
47 | } else if ((c = wintoclient(ev->window))) {
48 | focus(c);
49 | restack(selmon);
50 | @@ -729,15 +727,8 @@ drawbar(Monitor *m)
51 | x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
52 |
53 | if ((w = m->ww - sw - x) > bh) {
54 | - if (m->sel) {
55 | - drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]);
56 | - drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0);
57 | - if (m->sel->isfloating)
58 | - drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0);
59 | - } else {
60 | drw_setscheme(drw, scheme[SchemeNorm]);
61 | drw_rect(drw, x, 0, w, bh, 1, 1);
62 | - }
63 | }
64 | drw_map(drw, m->barwin, 0, 0, m->ww, bh);
65 | }
66 | @@ -1235,11 +1226,8 @@ propertynotify(XEvent *e)
67 | drawbars();
68 | break;
69 | }
70 | - if (ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
71 | + if (ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName])
72 | updatetitle(c);
73 | - if (c == c->mon->sel)
74 | - drawbar(c->mon);
75 | - }
76 | if (ev->atom == netatom[NetWMWindowType])
77 | updatewindowtype(c);
78 | }
79 | --
80 | 2.21.0
81 |
82 |
--------------------------------------------------------------------------------
/sxhkd/.config/sxhkd/old/sxhkdrc_wmutils:
--------------------------------------------------------------------------------
1 | ## wm-independent hotkeys
2 |
3 | # reload sxhkd
4 | mod1 + Escape
5 | pkill -USR1 -x sxhkd
6 |
7 | mod1 + Return
8 | st
9 |
10 | mod1 + d
11 | dmenu_run
12 |
13 | mod1 + b
14 | firefox
15 |
16 | # media keys things
17 | XF86AudioRaiseVolume
18 | amixer sset Master 5%+ unmute
19 |
20 | XF86AudioLowerVolume
21 | amixer sset Master 5%- unmute
22 |
23 | XF86AudioMute
24 | amixer sset Master toggle
25 |
26 | XF86MonBrightnessUp
27 | xbacklight -inc 10%
28 |
29 | XF86MonBrightnessDown
30 | xbacklight -dec 10%
31 |
32 | XF86AudioPlay
33 | mpc toggle
34 |
35 | XF86AudioStop
36 | mpc stop
37 |
38 | XF86AudioNext
39 | mpc next
40 |
41 | XF86AudioPrev
42 | mpc prev
43 |
44 | # _________________
45 | # < Here be dragons >
46 | # -----------------
47 | # \ / \ //\
48 | # \ |\___/| / \// \\
49 | # /0 0 \__ / // | \ \
50 | # / / \/_/ // | \ \
51 | # @_^_@'/ \/_ // | \ \
52 | # //_^_/ \/_ // | \ \
53 | # ( //) | \/// | \ \
54 | # ( / /) _|_ / ) // | \ _\
55 | # ( // /) '/,_ _ _/ ( ; -. | _ _\.-~ .-~~~^-.
56 | # (( / / )) ,-{ _ `-.|.-~-. .~ `.
57 | # (( // / )) '/\ / ~-. _ .-~ .-~^-. \
58 | # (( /// )) `. { } / \ \
59 | # (( / )) .----~-.\ \-' .~ \ `. \^-.
60 | # ///.----..> \ _ -~ `. ^-` ^-_
61 | # ///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~
62 | # /.-~
63 |
64 | # exit X session
65 | mod1 + ctrl + q
66 | pkill xwait
67 |
68 | # close window
69 | mod1 + x
70 | killw $(pfw)
71 |
72 | # fullscreens window
73 | mod1 + f
74 | fullscreen.sh $(pfw)
75 |
76 | # focus window
77 | mod1 + {h,t,n,s}
78 | focus.sh $(closest.sh {h, j, k, l})
79 |
80 | # focus next window
81 | mod1 + Tab
82 | focus.sh $(closest.sh next)
83 |
84 | # move window
85 | mod2 + {h,t,n,s}
86 | wmv {-10 0, 0 10, 0 -10, 10 0} $(pfw)
87 |
88 | # move window at warp speed
89 | mod2 + shift + {h,t,n,s}
90 | wmv {-40 0, 0 40, 0 -40, 40 0} $(pfw)
91 |
92 | # resize window
93 | mod1 + {a,o,e,u}
94 | wrs {-10 0, 0 10, 0 -10, 10 0} $(pfw)
95 |
96 | mod1 + shift + {a,o,e,u}
97 | wrs {-40 0, 0 40, 0 -40, 40 0} $(pfw)
98 |
99 | # toggle group
100 | mod1 + {1,2,3,4,5,6}
101 | groups.sh -t {1,2,3,4,5,6}
102 |
103 | # add to group
104 | mod1 + shift + {1,2,3,4,5,6}
105 | groups.sh -a {1,2,3,4,5,6}
106 |
107 | # remove from group
108 | mod1 + ctrl + {1,2,3,4,5,6}
109 | groups.sh -d {1,2,3,4,5,6}
110 |
111 |
112 | # remove from all groups
113 | mod1 + mod2 + shift + Return
114 | groups.sh -d all
115 |
116 |
117 | # snap window to corner/middle of the screen
118 | #mod1 + {z,x,c,v,m}
119 | # cornerw {tl,tr, bl, br, md} $(pfw)
120 |
121 | # tile windows
122 | mod1 + ctrl + i
123 | tile.sh
124 |
125 | mod2 + @button2
126 | focus.sh $(windowat $(wmp))
127 |
128 | ctrl + !button2
129 | chwso -r $(pfw); wmv -a %i %i $(pfw)
130 |
--------------------------------------------------------------------------------
/tox/.config/tox/qtox.log:
--------------------------------------------------------------------------------
1 |
2 | 2016-07-13 20:02:58 qTox file logger starting
3 | [20:02:58.974] src/main.cpp:170 : Debug: built on: 17:23:28 Apr 17 2016 ( 1460913808 )
4 | [20:02:58.974] src/main.cpp:171 : Debug: commit: built without git
5 |
6 | [20:02:58.974] src/nexus.cpp:81 : Debug: Starting up
7 | [20:02:59.001] src/persistence/settings.cpp:1544 : Debug: Creating new profile settings in "/home/poq/.config/tox//tox_save.ini"
8 | [20:02:59.006] src/persistence/settings.cpp:1544 : Debug: Creating new profile settings in "/home/poq/.config/tox//toxic_profile.ini"
9 | [20:03:04.313] src/persistence/settings.cpp:354 : Debug: "Saving global settings at /home/poq/.config/tox/qtox.ini"
10 | [20:03:13.974] src/persistence/settings.cpp:354 : Debug: "Saving global settings at /home/poq/.config/tox/qtox.ini"
11 | [20:03:14.659] src/persistence/profile.cpp:86 : Debug: Loading tox save "/home/poq/.config/tox/toxic_profile.tox"
12 | [20:03:14.659] src/persistence/settings.cpp:354 : Debug: "Saving global settings at /home/poq/.config/tox/qtox.ini"
13 | [20:03:14.664] src/persistence/settings.cpp:295 : Debug: Loading personal settings from "/home/poq/.config/tox/toxic_profile.ini"
14 | [20:03:15.199] src/core/core.cpp:236 : Debug: Loading user profile
15 | [20:03:15.200] src/persistence/profile.cpp:249 : Debug: Loading tox save "/home/poq/.config/tox/toxic_profile.tox"
16 | [20:03:15.200] src/core/core.cpp:132 : Debug: Core starting with IPv6 enabled
17 | [20:03:15.244] src/core/core.cpp:305 : Debug: Self avatar not found, will broadcast empty avatar to friends
18 | [20:03:17.041] src/core/core.cpp:407 : Debug: "Connecting to 178.62.250.138:33445 (Impyy)"
19 | [20:03:17.093] src/core/core.cpp:407 : Debug: "Connecting to 130.133.110.14:33445 (Manolis)"
20 | [20:03:24.260] src/core/core.cpp:407 : Debug: "Connecting to 104.167.101.29:33445 (noisykeyboard)"
21 | [20:03:24.307] src/core/core.cpp:407 : Debug: "Connecting to 205.185.116.116:33445 (Busindre)"
22 | [20:03:25.750] src/core/core.cpp:374 : Debug: Connected to the DHT
23 | [20:03:25.751] src/persistence/profile.cpp:314 : Debug: Saving tox save to "/home/poq/.config/tox/toxic_profile.tox"
24 | [20:03:30.749] src/widget/widget.cpp:1705 : Warning: No system tray detected!
25 | [20:03:42.122] src/persistence/profile.cpp:314 : Debug: Saving tox save to "/home/poq/.config/tox/toxic_profile.tox"
26 | [20:06:20.282] src/core/core.cpp:585 : Debug: Requested friendship of 0
27 | [20:06:20.282] src/persistence/profile.cpp:314 : Debug: Saving tox save to "/home/poq/.config/tox/toxic_profile.tox"
28 | [20:06:33.224] src/persistence/profile.cpp:314 : Debug: Saving tox save to "/home/poq/.config/tox/toxic_profile.tox"
29 | [20:06:36.288] src/persistence/profile.cpp:314 : Debug: Saving tox save to "/home/poq/.config/tox/toxic_profile.tox"
30 | [20:06:41.945] src/persistence/settings.cpp:480 : Debug: Saving personal settings at "/home/poq/.config/tox/toxic_profile.ini"
31 | [20:06:54.460] src/audio/audio.cpp:225 : Debug: Opening audio input ""
32 | [20:06:54.469] src/audio/audio.cpp:254 : Debug: Opened audio input "ALSA Default"
33 | [20:06:54.469] src/audio/audio.cpp:181 : Debug: Subscribed to audio input device [ 1 subscriptions ]
34 | [20:06:59.969] src/audio/audio.cpp:197 : Debug: Unsubscribed from audio input device [ 0 subscriptions left ]
35 | [20:06:59.970] src/audio/audio.cpp:421 : Debug: Closing audio input
36 |
--------------------------------------------------------------------------------
/irssi/.irssi/allego.theme:
--------------------------------------------------------------------------------
1 | default_color = "-1";
2 |
3 | info_eol = "false";
4 |
5 | replaces = { "[]" = "%K$*%n"; };
6 |
7 | abstracts = {
8 | indent_default = "";
9 |
10 | line_start = "";
11 |
12 | timestamp = "";
13 |
14 | hilight = "%_$*%_";
15 |
16 | error = "%R$*%n";
17 |
18 | channel = "%K$*%n";
19 |
20 | nick = "%_$*%_";
21 |
22 | nickhost = "%g$*";
23 |
24 | server = "%_$*%_";
25 |
26 | comment = "%K[%W$*%K]";
27 |
28 | reason = "{comment $*}";
29 |
30 | mode = "{comment $*}";
31 |
32 | channick_hilight = "%g$*%N";
33 | chanhost_hilight = "{nickhost $*}";
34 |
35 | channick = "$*";
36 | chanhost = "{nickhost $*}";
37 |
38 | channelhilight = "%g$*%n";
39 |
40 | ban = "$*";
41 |
42 | msgnick = "%c<%w$1-%n%|%c> ";
43 | ownnick = "%n$*%n";
44 | pubnick = "%N$*%n";
45 |
46 | action_core = " %n$*";
47 | whois = "%K %n$1-";
48 |
49 | ownnotice = "%NNote n = %Mnew%n $0 ($1-) ";
50 | notice = "%M$*%n ";
51 | pubnotice_channel = " %N<$*>";
52 | pvtnotice_host = " %N<$*>";
53 | servernotice = " %N($*)";
54 |
55 | ownctcp = "%N$0 <%K$1-%N> ";
56 | ctcp = "%N$*%n";
57 |
58 | wallop = "%K$*%n: ";
59 | wallop_nick = "%n$*";
60 | wallop_action = "%K * $*%n ";
61 |
62 | names_nick = "%K%W$2$0%n$1%K%n ";
63 | names_nick_op = "{names_nick $* %W}";
64 | names_nick_halfop = "{names_nick $* %W}";
65 | names_nick_voice = "{names_nick $* %W}";
66 | names_prefix = "%K %n$1";
67 | names_channel = "%W$*%n";
68 |
69 | dcc = "%g$*%n";
70 | dccfile = "%_$*%_";
71 |
72 | dccownmsg = "%g /* $0 ($1-) */";
73 | dccownnick = "$*%n";
74 | dccownquerynick = "$*%n";
75 | dccownaction = "{action $*}";
76 | dccownaction_target = "{action $*}";
77 |
78 | dccmsg = "%g/* $1- <$0> */";
79 | dccquerynick = "%g$*%n";
80 | dccaction = "{action $*}";
81 |
82 | sb_background = "%N%N";
83 |
84 | sb_prompt_bg = "%n";
85 |
86 | sbstart = "";
87 | sbend = "";
88 |
89 | topicsbstart = "";
90 | topicsbend = "";
91 |
92 | prompt = " %b> ";
93 |
94 | sb = "%N$1%N ";
95 | sbmode = "%c<%K+%N$*%c>%n";
96 | sbaway = "%c<%Naway%c>%N";
97 | sbservertag = "%c:%N$0%c<%N^X%c>";
98 | sbnickmode = "%K$0%N$1";
99 | };
100 |
101 | formats = {
102 | "fe-common/core" = {
103 | line_start_irssi = "{line_start}";
104 |
105 | join = " %K<%njoin%K> %W{channick $0} %K[%W{nickhost %W$1}%K]%n";
106 | part = " %K<%npart%K> %W{channick $0} %K[%W{nickhost %W$1}%K]%n";
107 | quit = " %K<%nquit%K> %W{channick $0}%K {reason %c$2}";
108 | kick = " %W{channick $0} %nwas kicked by $2 %K{reason %W$3}";
109 | nick_changed = " %n{channick $0} %nis now known as %W{channick $1}";
110 | your_nick_changed = " %nyou %Kare now known as %W{channick $1}";
111 | new_topic = " %wtopic %K'%W$2%K' %Nset by $0";
112 | pubmsg = "{pubmsgnick $2 {pubnick \00310$0}}$1";
113 | };
114 | "fe-common/irc" = {
115 | chanmode_change = " %K<%nmode%K> %W$2 %K<%W{channick $1}%K>";
116 | server_chanmode_change = " %K<%nmode%K> %W$2 %K<%W{channick $1}%K>";
117 | whois_not_found = " %nthere is no such nick <$0>";
118 | topic = " %Ntopic for %K$0 %K'%W$1%K'";
119 | topic_info = " %Nset by $0 %K<%W$1%K>";
120 | channel_synced = " %nsynced in {hilight $1} secs";
121 | channel_created = " %ncreated $1";
122 | };
123 | };
124 |
--------------------------------------------------------------------------------
/sxhkd/.config/sxhkd/bspwm_sxhkdrc:
--------------------------------------------------------------------------------
1 | #
2 | # wm independent hotkeys
3 | #
4 |
5 | # terminal emulator
6 | super + Enter
7 | sterminal
8 |
9 | # program launcher
10 | super + space
11 | rofilauncher
12 |
13 | # make sxhkd reload its configuration files:
14 | super + Escape
15 | pkill -USR1 -x sxhkd
16 |
17 | # reload bspwmrc
18 | super + shift + r
19 | ~/.config/bspwm/bspwmrc
20 |
21 | #
22 | # bspwm hotkeys
23 | #
24 |
25 | # quit bspwm normally
26 | super + alt + Escape
27 | bspc quit
28 |
29 | # close and kill
30 | super + {_,shift + }x
31 | bspc node -{c,k}
32 |
33 | # alternate between the tiled and monocle layout
34 | super + m
35 | bspc desktop -l next
36 |
37 | # if the current node is automatic, send it to the last manual, otherwise pull the last leaf
38 | #super + y
39 | # bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused
40 |
41 | # swap the current node and the biggest node
42 | super + g
43 | bspc node -s biggest
44 |
45 | super + l
46 | slock
47 | #
48 | # state/flags
49 | #
50 |
51 | # set the window state
52 | super + {o,shift + o,shift + f,f}
53 | bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
54 |
55 | # set the node flags
56 | super + {w,v,z}
57 | bspc node -g {locked,sticky,private}
58 |
59 | #
60 | # rotate
61 | #
62 |
63 | super + r
64 | bspc node @/ --rotate 90
65 | #
66 | # focus/swap
67 | #
68 |
69 | # focus the node in the given direction
70 | super + {_,shift + }{h,t,n,s}
71 | bspc node -{f,s} {west,south,north,east}
72 |
73 |
74 | # focus the next/previous node in the current desktop
75 | super + {_,shift + }c
76 | bspc node -f {next,prev}.local
77 |
78 | # focus the next/prev ious desktop in the current monitor
79 | super + bracket{left,right}
80 | bspc desktop -f {prev,next}.local
81 |
82 | # focus the last node/desktop
83 | super + Tab
84 | WindowSelector
85 |
86 | # focus the older or newer node in the focus history
87 | super + {d,i}
88 | bspc wm -h off; \
89 | bspc node {older,newer} -f; \
90 | bspc wm -h on
91 |
92 | # focus or send to the given desktop
93 | super + {_,shift + }{semicolon,comma,period,p,y}
94 | bspc {desktop -f,node -d} '^{1-4,5}'
95 |
96 | #
97 | # preselect
98 | #
99 |
100 | # preselect the direction
101 | super + alt + {h,t,n,s}
102 | bspc node -p {west,south,north,east}
103 |
104 | # preselect the ratio
105 | super + alt + {1-9}
106 | bspc node -o 0.{1-9}
107 |
108 | # cancel the preselection for the focused node
109 | super + alt + space
110 | bspc node -p cancel
111 |
112 | # cancel the preselection for the focused desktop
113 | super + alt + shift + space
114 | bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
115 |
116 | #
117 | # move/resize
118 | #
119 | nnnn
120 | # expand a window by moving one of its side outward
121 | super + ctrl + {h,t,n,s}
122 | bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
123 |
124 | # contract a window by moving one of its side inward
125 | super + ctrl + shift + {h,t,n,s}
126 | bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
127 |
128 | # move a floating window
129 | super + {Left,Down,Up,Right}
130 | bspc node -v {-20 0,0 20,0 -20,20 0}
131 |
132 | XF86MonBrightness{Up,Down}
133 | light {-A,-U} 5
134 |
135 | #
136 | # monitor setup
137 | #
138 |
139 | bspc monitor eDP-1 -d I II
140 | bspc monitor HDMI-1 -d III IV
141 |
142 |
143 | #
144 | # hide / unhide
145 | #
146 |
147 | super + a
148 | bspc node -g hidden
149 |
150 | super + shift + a
151 | bspc node {,$(bspc query -N -n .hidden | tail -n1)} -g hidden=off
152 |
153 | super + alt + m
154 | rofimenu
155 |
--------------------------------------------------------------------------------
/tox/.config/tox/qtox.ini:
--------------------------------------------------------------------------------
1 | [Advanced]
2 | dbSyncType=2
3 |
4 | [Audio]
5 | filterAudio=false
6 | inDev=
7 | inVolume=100
8 | outDev=
9 | outVolume=100
10 |
11 | [DHT%20Server]
12 | dhtServerList\1\address=144.76.60.215
13 | dhtServerList\1\name=sonOfRa
14 | dhtServerList\1\port=33445
15 | dhtServerList\1\userId=04119E835DF3E78BACF0F84235B300546AF8B936F035185E2A8E9E0A67C8924F
16 | dhtServerList\10\address=194.249.212.109
17 | dhtServerList\10\name=fluke571
18 | dhtServerList\10\port=33445
19 | dhtServerList\10\userId=3CEE1F054081E7A011234883BC4FC39F661A55B73637A5AC293DDF1251D9432B
20 | dhtServerList\11\address=185.25.116.107
21 | dhtServerList\11\name=MAH69K
22 | dhtServerList\11\port=33445
23 | dhtServerList\11\userId=DA4E4ED4B697F2E9B000EEFE3A34B554ACD3F45F5C96EAEA2516DD7FF9AF7B43
24 | dhtServerList\2\address=23.226.230.47
25 | dhtServerList\2\name=stal
26 | dhtServerList\2\port=33445
27 | dhtServerList\2\userId=A09162D68618E742FFBCA1C2C70385E6679604B2D80EA6E84AD0996A1AC8A074
28 | dhtServerList\3\address=192.99.168.140
29 | dhtServerList\3\name=WIeschie
30 | dhtServerList\3\port=33445
31 | dhtServerList\3\userId=6A4D0607A296838434A6A7DDF99F50EF9D60A2C510BBF31FE538A25CB6B4652F
32 | dhtServerList\4\address=198.46.138.44
33 | dhtServerList\4\name=nurupo
34 | dhtServerList\4\port=33445
35 | dhtServerList\4\userId=F404ABAA1C99A9D37D61AB54898F56793E1DEF8BD46B1038B9D822E8460FAB67
36 | dhtServerList\5\address=178.62.250.138
37 | dhtServerList\5\name=Impyy
38 | dhtServerList\5\port=33445
39 | dhtServerList\5\userId=788236D34978D1D5BD822F0A5BEBD2C53C64CC31CD3149350EE27D4D9A2F9B6B
40 | dhtServerList\6\address=130.133.110.14
41 | dhtServerList\6\name=Manolis
42 | dhtServerList\6\port=33445
43 | dhtServerList\6\userId=461FA3776EF0FA655F1A05477DF1B3B614F7D6B124F7DB1DD4FE3C08B03B640F
44 | dhtServerList\7\address=104.167.101.29
45 | dhtServerList\7\name=noisykeyboard
46 | dhtServerList\7\port=33445
47 | dhtServerList\7\userId=5918AC3C06955962A75AD7DF4F80A5D7C34F7DB9E1498D2E0495DE35B3FE8A57
48 | dhtServerList\8\address=205.185.116.116
49 | dhtServerList\8\name=Busindre
50 | dhtServerList\8\port=33445
51 | dhtServerList\8\userId=A179B09749AC826FF01F37A9613F6B57118AE014D4196A0E1105A98F93A54702
52 | dhtServerList\9\address=198.98.51.198
53 | dhtServerList\9\name=Busindre
54 | dhtServerList\9\port=443
55 | dhtServerList\9\userId=1D5A5F2F5D6233058BF0259B09622FB40B482E4FA0931EB8FD3AB8E7BF7DAF6F
56 | dhtServerList\size=11
57 | useCustomList=false
58 |
59 | [GUI]
60 | dateFormat="dddd, MMMM d, yyyy"
61 | emojiFontPointSize=16
62 | firstColumnHandlePos=50
63 | lightTrayIcon=false
64 | minimizeOnClose=false
65 | minimizeToTray=false
66 | secondColumnHandlePosFromRight=50
67 | smileyPack=:/smileys/Universe/emoticons.xml
68 | statusChangeNotificationEnabled=false
69 | style=Fusion
70 | themeColor=0
71 | timestampFormat=hh:mm:ss
72 | useEmoticons=true
73 |
74 | [%General]
75 | autoAwayTime=10
76 | autoSaveEnabled=false
77 | autostartInTray=false
78 | checkUpdates=true
79 | closeToTray=false
80 | currentProfile=toxic_profile
81 | dontGroupWindows=true
82 | enableIPv6=true
83 | fauxOfflineMessaging=true
84 | forceTCP=false
85 | globalAutoAcceptDir=/home/poq/
86 | groupAlwaysNotify=false
87 | groupchatPosition=true
88 | makeToxPortable=false
89 | notifySound=true
90 | proxyAddr=
91 | proxyPort=0
92 | proxyType=0
93 | separateWindow=false
94 | showInFront=false
95 | showSystemTray=true
96 | showWindow=true
97 | translation=en
98 |
99 | [Login]
100 | autoLogin=false
101 |
102 | [State]
103 | dialogGeometry=@ByteArray()
104 | dialogSettingsGeometry=@ByteArray()
105 | dialogSplitterState=@ByteArray()
106 | splitterState=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0\xff\0\0\x2\b\0\0\0\0\x6\x1\0\0\0\x1\0)
107 | windowGeometry="@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\0\0\0*\0\0\0h\0\0\x3\x34\0\0\x2\xf\0\0\0,\0\0\0j\0\0\x3\x32\0\0\x2\r\0\0\0\0\0\0\0\0\x4\0)"
108 | windowState=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x3\a\0\0\x1\xa4\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\0)
109 |
110 | [Video]
111 | camVideoFPS=0
112 | camVideoRes=@Size(-1 -1)
113 | videoDev=
114 |
--------------------------------------------------------------------------------
/irssi/.irssi/config:
--------------------------------------------------------------------------------
1 | utf8 = "on";
2 |
3 | servers = (
4 | {
5 | address = "unix.chat";
6 | chatnet = "unixchat";
7 | port = "6697";
8 | use_ssl = "yes";
9 | ssl_capath = "/etc/ssl/cert.pem";
10 | autoconnect = "yes";
11 | },
12 | {
13 | address = "im.codemonkey.be";
14 | chatnet = "fb";
15 | port = "6697";
16 | use_ssl = "yes";
17 | autoconnect = "yes";
18 | }
19 | );
20 |
21 | chatnets = {
22 | unixchat = { type = "IRC"; nick = "poq"; };
23 | fb = { type = "IRC"; nick = "piecesofquiet"; };
24 | };
25 |
26 | channels = (
27 | { name = "#unix"; chatnet = "unixchat"; autojoin = "Yes"; }
28 | );
29 |
30 | aliases = {
31 | emote = "exec -o emote";
32 | ascii = "exec -o toilet -f future --irc";
33 | rusto = "exec -o toilet -f rusto --irc";
34 | rustofat = "exec -o toilet -f rustofat --irc";
35 | gay = "exec -o toilet -f term --gay --irc";
36 | toilet = "exec -o toilet";
37 | 1 = "WINDOW GOTO 1";
38 | 2 = "WINDOW GOTO 2";
39 | 3 = "WINDOW GOTO 3";
40 | 4 = "WINDOW GOTO 4";
41 | 5 = "WINDOW GOTO 5";
42 | 6 = "WINDOW GOTO 6";
43 | 7 = "WINDOW GOTO 7";
44 | 8 = "WINDOW GOTO 8";
45 | 9 = "WINDOW GOTO 9";
46 | 10 = "WINDOW GOTO 10";
47 | 11 = "WINDOW GOTO 11";
48 | 12 = "WINDOW GOTO 12";
49 | 13 = "WINDOW GOTO 13";
50 | 14 = "WINDOW GOTO 14";
51 | 15 = "WINDOW GOTO 15";
52 | 16 = "WINDOW GOTO 16";
53 | 17 = "WINDOW GOTO 17";
54 | 18 = "WINDOW GOTO 18";
55 | 19 = "WINDOW GOTO 19";
56 | 20 = "WINDOW GOTO 20";
57 | 21 = "WINDOW GOTO 21";
58 | 22 = "WINDOW GOTO 22";
59 | 23 = "WINDOW GOTO 23";
60 | 24 = "WINDOW GOTO 24";
61 | 25 = "WINDOW GOTO 25";
62 | 26 = "WINDOW GOTO 26";
63 | 27 = "WINDOW GOTO 27";
64 | 28 = "WINDOW GOTO 28";
65 | 29 = "WINDOW GOTO 29";
66 | 30 = "WINDOW GOTO 30";
67 | 31 = "WINDOW GOTO 31";
68 | 32 = "WINDOW GOTO 32";
69 | 33 = "WINDOW GOTO 33";
70 | 34 = "WINDOW GOTO 34";
71 | 35 = "WINDOW GOTO 35";
72 | 36 = "WINDOW GOTO 36";
73 | 37 = "WINDOW GOTO 37";
74 | 38 = "WINDOW GOTO 38";
75 | 39 = "WINDOW GOTO 39";
76 | 40 = "WINDOW GOTO 40";
77 | 41 = "WINDOW GOTO 41";
78 | 42 = "WINDOW GOTO 42";
79 | 43 = "WINDOW GOTO 43";
80 | 44 = "WINDOW GOTO 44";
81 | 45 = "WINDOW GOTO 45";
82 | 46 = "WINDOW GOTO 46";
83 | 47 = "WINDOW GOTO 47";
84 | 48 = "WINDOW GOTO 48";
85 | 49 = "WINDOW GOTO 49";
86 | 50 = "WINDOW GOTO 50";
87 | 51 = "WINDOW GOTO 51";
88 | 52 = "WINDOW GOTO 52";
89 | 53 = "WINDOW GOTO 53";
90 | 54 = "WINDOW GOTO 54";
91 | 55 = "WINDOW GOTO 55";
92 | 56 = "WINDOW GOTO 56";
93 | 57 = "WINDOW GOTO 57";
94 | 58 = "WINDOW GOTO 58";
95 | 59 = "WINDOW GOTO 59";
96 | 60 = "WINDOW GOTO 60";
97 | 61 = "WINDOW GOTO 61";
98 | 62 = "WINDOW GOTO 62";
99 | 63 = "WINDOW GOTO 63";
100 | 64 = "WINDOW GOTO 64";
101 | 65 = "WINDOW GOTO 65";
102 | 66 = "WINDOW GOTO 66";
103 | 67 = "WINDOW GOTO 67";
104 | 68 = "WINDOW GOTO 68";
105 | 69 = "WINDOW GOTO 69";
106 | 70 = "WINDOW GOTO 70";
107 | 71 = "WINDOW GOTO 71";
108 | 72 = "WINDOW GOTO 72";
109 | 73 = "WINDOW GOTO 73";
110 | 74 = "WINDOW GOTO 74";
111 | 75 = "WINDOW GOTO 75";
112 | 76 = "WINDOW GOTO 76";
113 | 77 = "WINDOW GOTO 77";
114 | 78 = "WINDOW GOTO 78";
115 | 79 = "WINDOW GOTO 79";
116 | 80 = "WINDOW GOTO 80";
117 | 81 = "WINDOW GOTO 81";
118 | 82 = "WINDOW GOTO 82";
119 | 83 = "WINDOW GOTO 83";
120 | 84 = "WINDOW GOTO 84";
121 | 85 = "WINDOW GOTO 85";
122 | 86 = "WINDOW GOTO 86";
123 | 87 = "WINDOW GOTO 87";
124 | 88 = "WINDOW GOTO 88";
125 | 89 = "WINDOW GOTO 89";
126 | 90 = "WINDOW GOTO 90";
127 | 91 = "WINDOW GOTO 91";
128 | 92 = "WINDOW GOTO 92";
129 | 93 = "WINDOW GOTO 93";
130 | 94 = "WINDOW GOTO 94";
131 | 95 = "WINDOW GOTO 95";
132 | 96 = "WINDOW GOTO 96";
133 | 97 = "WINDOW GOTO 97";
134 | 98 = "WINDOW GOTO 98";
135 | 99 = "WINDOW GOTO 99";
136 | };
137 |
138 | settings = {
139 | core = {
140 | real_name = "Unknown";
141 | user_name = "poq";
142 | nick = "poq";
143 | recode_transliterate = "no";
144 | };
145 | "fe-text" = {
146 | actlist_sort = "refnum";
147 | term_force_colors = "yes";
148 | indent = "12";
149 | };
150 | "fe-common/core" = {
151 | theme = "allego.theme";
152 | autolog_path = "/home/poq/var/logs/irc/$tag/$0.log";
153 | autolog = "yes";
154 | };
155 | };
156 | logs = { };
157 | statusbar = {
158 | default = {
159 | window = {
160 | items = {
161 | barstart = { priority = "100"; };
162 | user = { };
163 | window = { };
164 | window_empty = { };
165 | lag = { priority = "-1"; };
166 | act = { priority = "10"; };
167 | more = { priority = "-1"; alignment = "right"; };
168 | barend = { priority = "100"; alignment = "right"; };
169 | };
170 | };
171 | };
172 | };
173 |
--------------------------------------------------------------------------------
/rofi/.config/rofimenu/rofimenu.rasi:
--------------------------------------------------------------------------------
1 | configuration {
2 | me-select-entry: "MouseSecondary";
3 | me-accept-entry: "MousePrimary";
4 | scroll-method: 2;
5 | show-icons: true;
6 | sidebar-mode: true;
7 | kb-custom-1: ""
8 | kb-custom-2: "";
9 | kb-custom-3: "";
10 | kb-custom-4: "";
11 | kb-custom-5: "";
12 | kb-custom-6: "";
13 | kb-custom-7: "";
14 | kb-custom-8: "";
15 | kb-custom-9: "";
16 | kb-custom-10: "";
17 | kb-select-1: "Alt+1";
18 | kb-select-2: "Alt+2";
19 | kb-select-3: "Alt+3";
20 | kb-select-4: "Alt+4";
21 | kb-select-5: "Alt+5";
22 | kb-select-6: "Alt+6";
23 | kb-select-7: "Alt+7";
24 | kb-select-8: "Alt+8";
25 | kb-select-9: "Alt+9";
26 | kb-select-10: "Alt+0";
27 | }
28 |
29 | * {
30 | //// COLORS ////
31 |
32 | //// uncomment to match bspwm edition theme
33 | background: #1C2023FF;
34 | background-color: #1C202300;
35 | foreground: #F6F9FFFF;
36 | selected: #95c7aeFF;
37 | selected-foreground: @foreground;
38 |
39 | //// uncomment to match Adapta Nokto theme
40 | // background: #222D32E8;
41 | // background-color: #00000000;
42 | // foreground: #CFD8DCFF;
43 | // selected: #00BCD4FF;
44 | // selected-foreground: #FFFFFFFF;
45 |
46 | //// common - active and urgent
47 | active-background: #3A464BFF;
48 | urgent-background: #800000FF;
49 | urgent-foreground: @foreground;
50 | selected-urgent-background: @urgent-foreground;
51 | selected-urgent-foreground: @urgent-background;
52 |
53 | //// TEXT ////
54 |
55 | // font: "xos4 Terminus 18px";
56 | // font: "Knack Nerd Font 14px";
57 | font: "Noto Sans 16px";
58 | text-color: @foreground;
59 |
60 | //// PADDING ETC ////
61 |
62 | margin: 0px;
63 | border: 0px;
64 | padding: 0px;
65 | spacing: 0px;
66 | elementpadding: 2px 0px;
67 | elementmargin: 0px 2px;
68 | listmargin: 0px 2px 0px 0px;
69 |
70 | //// SIZE ////
71 |
72 | windowwidth: 40ch;
73 | buttonwidth: 18ch;
74 | lines: 12;
75 | fixed-height: false;
76 |
77 | //// POSITION ////
78 |
79 | location: center;
80 | anchor: center;
81 | x-offset: 0px;
82 | y-offset: 24px;
83 |
84 | //// LAYOUT ////
85 |
86 | scrollbar: true;
87 |
88 | //// uncomment to get submenu-like style
89 | menustyle: [ sb-mainbox ];
90 | buttonpadding: 2px 1ch;
91 | button-bg: @background;
92 | dynamic: true;
93 |
94 | //// uncomment to get tabs-like style
95 | // menustyle: [ tb-mainbox ];
96 | // buttonpadding: 14px 1ch;
97 | // dynamic: false;
98 | }
99 | //////////////////////////////////////////
100 | window {
101 | width: @windowwidth;
102 | children: @menustyle;
103 | }
104 | //submenu-style
105 | sb-mainbox {
106 | orientation: horizontal;
107 | children: [ mode-switcher, vertibox ];
108 | }
109 | //tabs-style
110 | tb-mainbox {
111 | orientation: vertical;
112 | children: [ inputbar, horibox ];
113 | background-color: @background;
114 | }
115 | //desktop-submenu
116 | dt-mainbox {
117 | orientation: vertical;
118 | children: [ boxdummy, sb-mainbox ];
119 | }
120 | horibox {
121 | orientation: horizontal;
122 | children: [ listview, mode-switcher ];
123 | }
124 | mode-switcher {
125 | orientation: vertical;
126 | }
127 | button {
128 | horizontal-align: 0;
129 | padding: @buttonpadding;
130 | width: @buttonwidth;
131 | background-color: @button-bg;
132 | expand: false;
133 | }
134 | vertibox {
135 | orientation: vertical;
136 | children: [ inputbar, listview ];
137 | background-color: @background;
138 | }
139 | prompt {
140 | enabled: false;
141 | }
142 | listview {
143 | margin: @listmargin;
144 | }
145 | scrollbar {
146 | handle-width: 0.5ch;
147 | handle-color: @selected;
148 | }
149 | boxdummy {
150 | enabled: false;
151 | orientation: vertical;
152 | expand: false;
153 | children: [ textboxdummy ];
154 | }
155 | textboxdummy {
156 | str: " ";
157 | }
158 | element, inputbar, textboxdummy {
159 | padding: @elementpadding;
160 | margin: @elementmargin;
161 | width: @elementwidth;
162 | }
163 | element.normal.active,
164 | element.alternate.active {
165 | background-color: @active-background;
166 | text-color: @selected-foreground;
167 | }
168 | element.selected,
169 | button.selected {
170 | background-color: @selected;
171 | text-color: @selected-foreground;
172 | }
173 | element.normal.urgent,
174 | element.alternate.urgent {
175 | background-color: @urgent-background;
176 | text-color: @urgent-foreground;
177 | }
178 | element.selected.urgent {
179 | background-color: @selected-urgent-background;
180 | text-color: @selected-urgent-foreground;
181 | }
182 |
--------------------------------------------------------------------------------
/rofi/.local/share/rofi/themes/base16-ashes.rasi:
--------------------------------------------------------------------------------
1 | /**
2 | * Base16 Ashes ROFI Color theme
3 | *
4 | * Authors
5 | * Scheme: Jannik Siebert (https://github.com/janniks)
6 | * Template: Jordi Pakey-Rodriguez (https://github.com/0xdec), Andrea Scarpino (https://github.com/ilpianista)
7 | */
8 |
9 | * {
10 | red: rgba ( 199, 174, 149, 100 % );
11 | blue: rgba ( 174, 149, 199, 100 % );
12 | lightfg: rgba ( 223, 226, 229, 100 % );
13 | lightbg: rgba ( 57, 63, 69, 100 % );
14 | foreground: rgba ( 199, 204, 209, 100 % );
15 | background: rgba ( 28, 32, 35, 100 % );
16 | background-color: rgba ( 28, 32, 35, 0 % );
17 | separatorcolor: @foreground;
18 | border-color: @foreground;
19 | selected-normal-foreground: @lightbg;
20 | selected-normal-background: @lightfg;
21 | selected-active-foreground: @background;
22 | selected-active-background: @blue;
23 | selected-urgent-foreground: @background;
24 | selected-urgent-background: @red;
25 | normal-foreground: @foreground;
26 | normal-background: @background;
27 | active-foreground: @blue;
28 | active-background: @background;
29 | urgent-foreground: @red;
30 | urgent-background: @background;
31 | alternate-normal-foreground: @foreground;
32 | alternate-normal-background: @lightbg;
33 | alternate-active-foreground: @blue;
34 | alternate-active-background: @lightbg;
35 | alternate-urgent-foreground: @red;
36 | alternate-urgent-background: @lightbg;
37 | spacing: 2;
38 | }
39 | window {
40 | background-color: @background;
41 | border: 1;
42 | padding: 5;
43 | }
44 | mainbox {
45 | border: 0;
46 | padding: 0;
47 | }
48 | message {
49 | border: 1px dash 0px 0px ;
50 | border-color: @separatorcolor;
51 | padding: 1px ;
52 | }
53 | textbox {
54 | text-color: @foreground;
55 | }
56 | listview {
57 | fixed-height: 0;
58 | border: 2px dash 0px 0px ;
59 | border-color: @separatorcolor;
60 | spacing: 2px ;
61 | scrollbar: true;
62 | padding: 2px 0px 0px ;
63 | }
64 | element {
65 | border: 0;
66 | padding: 1px ;
67 | }
68 | element normal.normal {
69 | background-color: @normal-background;
70 | text-color: @normal-foreground;
71 | }
72 | element normal.urgent {
73 | background-color: @urgent-background;
74 | text-color: @urgent-foreground;
75 | }
76 | element normal.active {
77 | background-color: @active-background;
78 | text-color: @active-foreground;
79 | }
80 | element selected.normal {
81 | background-color: @selected-normal-background;
82 | text-color: @selected-normal-foreground;
83 | }
84 | element selected.urgent {
85 | background-color: @selected-urgent-background;
86 | text-color: @selected-urgent-foreground;
87 | }
88 | element selected.active {
89 | background-color: @selected-active-background;
90 | text-color: @selected-active-foreground;
91 | }
92 | element alternate.normal {
93 | background-color: @alternate-normal-background;
94 | text-color: @alternate-normal-foreground;
95 | }
96 | element alternate.urgent {
97 | background-color: @alternate-urgent-background;
98 | text-color: @alternate-urgent-foreground;
99 | }
100 | element alternate.active {
101 | background-color: @alternate-active-background;
102 | text-color: @alternate-active-foreground;
103 | }
104 | scrollbar {
105 | width: 4px ;
106 | border: 0;
107 | handle-color: @normal-foreground;
108 | handle-width: 8px ;
109 | padding: 0;
110 | }
111 | sidebar {
112 | border: 2px dash 0px 0px ;
113 | border-color: @separatorcolor;
114 | }
115 | button {
116 | spacing: 0;
117 | text-color: @normal-foreground;
118 | }
119 | button selected {
120 | background-color: @selected-normal-background;
121 | text-color: @selected-normal-foreground;
122 | }
123 | inputbar {
124 | spacing: 0px;
125 | text-color: @normal-foreground;
126 | padding: 1px ;
127 | children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
128 | }
129 | case-indicator {
130 | spacing: 0;
131 | text-color: @normal-foreground;
132 | }
133 | entry {
134 | spacing: 0;
135 | text-color: @normal-foreground;
136 | }
137 | prompt {
138 | spacing: 0;
139 | text-color: @normal-foreground;
140 | }
141 | textbox-prompt-colon {
142 | expand: false;
143 | str: ":";
144 | margin: 0px 0.3000em 0.0000em 0.0000em ;
145 | text-color: inherit;
146 | }
147 |
--------------------------------------------------------------------------------
/dwm/patches/dwm-status2d-6.2.diff:
--------------------------------------------------------------------------------
1 | diff --git a/dwm.c b/dwm.c
2 | index d27cb67..464c9d6 100644
3 | --- a/dwm.c
4 | +++ b/dwm.c
5 | @@ -163,6 +163,7 @@ static void detach(Client *c);
6 | static Monitor *dirtomon(int dir);
7 | static void drawbar(Monitor *m);
8 | static void drawbars(void);
9 | +static int drawstatusbar(Monitor *m, int bh, char* text);
10 | static void enternotify(XEvent *e);
11 | static void expose(XEvent *e);
12 | static void focus(Client *c);
13 | @@ -237,7 +238,7 @@ static void zoom(const Arg *arg);
14 |
15 | /* variables */
16 | static const char broken[] = "broken";
17 | -static char stext[256];
18 | +static char stext[1024];
19 | static int screen;
20 | static int sw, sh; /* X display screen geometry width, height */
21 | static int bh, blw = 0; /* bar geometry */
22 | @@ -483,7 +484,7 @@ cleanup(void)
23 | cleanupmon(mons);
24 | for (i = 0; i < CurLast; i++)
25 | drw_cur_free(drw, cursor[i]);
26 | - for (i = 0; i < LENGTH(colors); i++)
27 | + for (i = 0; i < LENGTH(colors) + 1; i++)
28 | free(scheme[i]);
29 | XDestroyWindow(dpy, wmcheckwin);
30 | drw_free(drw);
31 | @@ -690,6 +691,114 @@ dirtomon(int dir)
32 | return m;
33 | }
34 |
35 | +int
36 | +drawstatusbar(Monitor *m, int bh, char* stext) {
37 | + int ret, i, w, x, len;
38 | + short isCode = 0;
39 | + char *text;
40 | + char *p;
41 | +
42 | + len = strlen(stext) + 1 ;
43 | + if (!(text = (char*) malloc(sizeof(char)*len)))
44 | + die("malloc");
45 | + p = text;
46 | + memcpy(text, stext, len);
47 | +
48 | + /* compute width of the status text */
49 | + w = 0;
50 | + i = -1;
51 | + while (text[++i]) {
52 | + if (text[i] == '^') {
53 | + if (!isCode) {
54 | + isCode = 1;
55 | + text[i] = '\0';
56 | + w += TEXTW(text) - lrpad;
57 | + text[i] = '^';
58 | + if (text[++i] == 'f')
59 | + w += atoi(text + ++i);
60 | + } else {
61 | + isCode = 0;
62 | + text = text + i + 1;
63 | + i = -1;
64 | + }
65 | + }
66 | + }
67 | + if (!isCode)
68 | + w += TEXTW(text) - lrpad;
69 | + else
70 | + isCode = 0;
71 | + text = p;
72 | +
73 | + w += 2; /* 1px padding on both sides */
74 | + ret = x = m->ww - w;
75 | +
76 | + drw_setscheme(drw, scheme[LENGTH(colors)]);
77 | + drw->scheme[ColFg] = scheme[SchemeNorm][ColFg];
78 | + drw->scheme[ColBg] = scheme[SchemeNorm][ColBg];
79 | + drw_rect(drw, x, 0, w, bh, 1, 1);
80 | + x++;
81 | +
82 | + /* process status text */
83 | + i = -1;
84 | + while (text[++i]) {
85 | + if (text[i] == '^' && !isCode) {
86 | + isCode = 1;
87 | +
88 | + text[i] = '\0';
89 | + w = TEXTW(text) - lrpad;
90 | + drw_text(drw, x, 0, w, bh, 0, text, 0);
91 | +
92 | + x += w;
93 | +
94 | + /* process code */
95 | + while (text[++i] != '^') {
96 | + if (text[i] == 'c') {
97 | + char buf[8];
98 | + memcpy(buf, (char*)text+i+1, 7);
99 | + buf[7] = '\0';
100 | + drw_clr_create(drw, &drw->scheme[ColFg], buf);
101 | + i += 7;
102 | + } else if (text[i] == 'b') {
103 | + char buf[8];
104 | + memcpy(buf, (char*)text+i+1, 7);
105 | + buf[7] = '\0';
106 | + drw_clr_create(drw, &drw->scheme[ColBg], buf);
107 | + i += 7;
108 | + } else if (text[i] == 'd') {
109 | + drw->scheme[ColFg] = scheme[SchemeNorm][ColFg];
110 | + drw->scheme[ColBg] = scheme[SchemeNorm][ColBg];
111 | + } else if (text[i] == 'r') {
112 | + int rx = atoi(text + ++i);
113 | + while (text[++i] != ',');
114 | + int ry = atoi(text + ++i);
115 | + while (text[++i] != ',');
116 | + int rw = atoi(text + ++i);
117 | + while (text[++i] != ',');
118 | + int rh = atoi(text + ++i);
119 | +
120 | + drw_rect(drw, rx + x, ry, rw, rh, 1, 0);
121 | + } else if (text[i] == 'f') {
122 | + x += atoi(text + ++i);
123 | + }
124 | + }
125 | +
126 | + text = text + i + 1;
127 | + i=-1;
128 | + isCode = 0;
129 | + }
130 | + }
131 | +
132 | + if (!isCode) {
133 | + w = TEXTW(text) - lrpad;
134 | + drw_text(drw, x, 0, w, bh, 0, text, 0);
135 | + }
136 | +
137 | + drw_setscheme(drw, scheme[SchemeNorm]);
138 | + free(p);
139 | +
140 | + return ret;
141 | +}
142 | +
143 | void
144 | drawbar(Monitor *m)
145 | {
146 | @@ -701,9 +802,7 @@ drawbar(Monitor *m)
147 |
148 | /* draw status first so it can be overdrawn by tags later */
149 | if (m == selmon) { /* status is only drawn on selected monitor */
150 | - drw_setscheme(drw, scheme[SchemeNorm]);
151 | - sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
152 | - drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);
153 | + sw = m->ww - drawstatusbar(m, bh, stext);
154 | }
155 |
156 | for (c = m->clients; c; c = c->next) {
157 | @@ -1572,7 +1671,8 @@ setup(void)
158 | cursor[CurResize] = drw_cur_create(drw, XC_sizing);
159 | cursor[CurMove] = drw_cur_create(drw, XC_fleur);
160 | /* init appearance */
161 | - scheme = ecalloc(LENGTH(colors), sizeof(Clr *));
162 | + scheme = ecalloc(LENGTH(colors) + 1, sizeof(Clr *));
163 | + scheme[LENGTH(colors)] = drw_scm_create(drw, colors[0], 3);
164 | for (i = 0; i < LENGTH(colors); i++)
165 | scheme[i] = drw_scm_create(drw, colors[i], 3);
166 | /* init bars */
167 |
--------------------------------------------------------------------------------
/dwm/patches/dwm-ru_gaps-6.2.diff:
--------------------------------------------------------------------------------
1 | diff -up a/config.def.h b/config.def.h
2 | --- a/config.def.h 2019-07-21 22:43:04.535873031 +0200
3 | +++ b/config.def.h 2019-07-24 08:48:08.038433535 +0200
4 | @@ -2,6 +2,7 @@
5 |
6 | /* appearance */
7 | static const unsigned int borderpx = 1; /* border pixel of windows */
8 | +static const unsigned int gappx = 5; /* gaps between windows */
9 | static const unsigned int snap = 32; /* snap pixel */
10 | static const int showbar = 1; /* 0 means no bar */
11 | static const int topbar = 1; /* 0 means bottom bar */
12 | @@ -84,6 +85,9 @@ static Key keys[] = {
13 | { MODKEY, XK_period, focusmon, {.i = +1 } },
14 | { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
15 | { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
16 | + { MODKEY, XK_minus, setgaps, {.i = -5 } },
17 | + { MODKEY, XK_equal, setgaps, {.i = +5 } },
18 | + { MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
19 | TAGKEYS( XK_1, 0)
20 | TAGKEYS( XK_2, 1)
21 | TAGKEYS( XK_3, 2)
22 | diff -up a/dwm.c b/dwm.c
23 | --- a/dwm.c 2019-07-21 22:43:04.535873031 +0200
24 | +++ b/dwm.c 2019-07-24 08:50:44.989360476 +0200
25 | @@ -119,6 +119,7 @@ struct Monitor {
26 | int by; /* bar geometry */
27 | int mx, my, mw, mh; /* screen size */
28 | int wx, wy, ww, wh; /* window area */
29 | + int gappx; /* gaps between windows */
30 | unsigned int seltags;
31 | unsigned int sellt;
32 | unsigned int tagset[2];
33 | @@ -199,6 +200,7 @@ static void sendmon(Client *c, Monitor *
34 | static void setclientstate(Client *c, long state);
35 | static void setfocus(Client *c);
36 | static void setfullscreen(Client *c, int fullscreen);
37 | +static void setgaps(const Arg *arg);
38 | static void setlayout(const Arg *arg);
39 | static void setmfact(const Arg *arg);
40 | static void setup(void);
41 | @@ -638,6 +640,7 @@ createmon(void)
42 | m->nmaster = nmaster;
43 | m->showbar = showbar;
44 | m->topbar = topbar;
45 | + m->gappx = gappx;
46 | m->lt[0] = &layouts[0];
47 | m->lt[1] = &layouts[1 % LENGTH(layouts)];
48 | strncpy(m->ltsymbol, layouts[0].symbol, sizeof m->ltsymbol);
49 | @@ -1282,6 +1285,13 @@ resizeclient(Client *c, int x, int y, in
50 | c->oldw = c->w; c->w = wc.width = w;
51 | c->oldh = c->h; c->h = wc.height = h;
52 | wc.border_width = c->bw;
53 | + if (((nexttiled(c->mon->clients) == c && !nexttiled(c->next))
54 | + || &monocle == c->mon->lt[c->mon->sellt]->arrange))
55 | + {
56 | + c->w = wc.width += c->bw * 2;
57 | + c->h = wc.height += c->bw * 2;
58 | + wc.border_width = 0;
59 | + }
60 | XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
61 | configure(c);
62 | XSync(dpy, False);
63 | @@ -1498,6 +1508,16 @@ setfullscreen(Client *c, int fullscreen)
64 | }
65 |
66 | void
67 | +setgaps(const Arg *arg)
68 | +{
69 | + if ((arg->i == 0) || (selmon->gappx + arg->i < 0))
70 | + selmon->gappx = 0;
71 | + else
72 | + selmon->gappx += arg->i;
73 | + arrange(selmon);
74 | +}
75 | +
76 | +void
77 | setlayout(const Arg *arg)
78 | {
79 | if (!arg || !arg->v || arg->v != selmon->lt[selmon->sellt])
80 | @@ -1673,26 +1693,35 @@ tagmon(const Arg *arg)
81 | void
82 | tile(Monitor *m)
83 | {
84 | - unsigned int i, n, h, mw, my, ty;
85 | + unsigned int i, n, h, mw, my, ty, ns;
86 | Client *c;
87 |
88 | for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
89 | if (n == 0)
90 | return;
91 | + if(n == 1){
92 | + c = nexttiled(m->clients);
93 | + resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0);
94 | + return;
95 | + }
96 |
97 | - if (n > m->nmaster)
98 | + if (n > m->nmaster){
99 | mw = m->nmaster ? m->ww * m->mfact : 0;
100 | - else
101 | - mw = m->ww;
102 | - for (i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
103 | + ns = m->nmaster > 0 ? 2 : 1;
104 | + }
105 | + else{
106 | + mw = m->ww - m->gappx;
107 | + ns = 1;
108 | + }
109 | + for (i = 0, my = ty = m->gappx, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
110 | if (i < m->nmaster) {
111 | - h = (m->wh - my) / (MIN(n, m->nmaster) - i);
112 | - resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0);
113 | - my += HEIGHT(c);
114 | + h = (m->wh - my) / (MIN(n, m->nmaster) - i) - m->gappx;
115 | + resize(c, m->wx + m->gappx, m->wy + my, mw - 2*c->bw - m->gappx*(5-ns)/2, h - 2*c->bw, 0);
116 | + my += HEIGHT(c) + m->gappx;
117 | } else {
118 | - h = (m->wh - ty) / (n - i);
119 | - resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0);
120 | - ty += HEIGHT(c);
121 | + h = (m->wh - ty) / (n - i) - m->gappx;
122 | + resize(c, m->wx + mw + m->gappx/ns, m->wy + ty, m->ww - mw - (2*c->bw) - m->gappx*(5-ns)/2, h - 2*c->bw, 0);
123 | + ty += HEIGHT(c) + m->gappx;
124 | }
125 | }
126 |
--------------------------------------------------------------------------------
/rofi/.config/rofi/config.rasi:
--------------------------------------------------------------------------------
1 | configuration {
2 | modi: "run,window,drun,ssh";
3 | width: 50;
4 | lines: 5;
5 | columns: 3;
6 | font: "Noto Sans 14";
7 | bw: 0;
8 | /* location: 0;*/
9 | /* padding: 5;*/
10 | /* yoffset: 0;*/
11 | /* xoffset: 0;*/
12 | /* fixed-num-lines: true;*/
13 | show-icons: true;
14 | terminal: "urxvtc";
15 | /* ssh-client: "ssh";*/
16 | /* ssh-command: "{terminal} -e {ssh-client} {host} [-p {port}]";*/
17 | /* run-command: "{cmd}";*/
18 | /* run-list-command: "";*/
19 | /* run-shell-command: "{terminal} -e {cmd}";*/
20 | /* window-command: "wmctrl -i -R {window}";*/
21 | /* window-match-fields: "all";*/
22 | /* icon-theme: ;*/
23 | /* drun-match-fields: "name,generic,exec,categories";*/
24 | /* drun-show-actions: false;*/
25 | /* drun-display-format: "{name} [({generic})]";*/
26 | disable-history: false;
27 | /* ignored-prefixes: "";*/
28 | /* sort: false;*/
29 | /* sorting-method: ;*/
30 | /* case-sensitive: false;*/
31 | /* cycle: true;*/
32 | /* sidebar-mode: true;*/
33 | /* eh: 1;*/
34 | /* auto-select: false;*/
35 | /* parse-hosts: false;*/
36 | /* parse-known-hosts: true;*/
37 | /* combi-modi: "run,drun,window";*/
38 | /* matching: "normal";*/
39 | /* tokenize: true;*/
40 | m: "-4";
41 | /* line-margin: 2;*/
42 | /* line-padding: 1;*/
43 | /* filter: ;*/
44 | /* separator-style: "dash";*/
45 | /* hide-scrollbar: false;*/
46 | /* fullscreen: false;*/
47 | /* fake-transparency: false;*/
48 | /* dpi: -1;*/
49 | /* threads: 0;*/
50 | /* scrollbar-width: 8;*/
51 | /* scroll-method: 1;*/
52 | /* fake-background: "screenshot";*/
53 | /* window-format: "{w} {c} {t}";*/
54 | /* click-to-exit: true;*/
55 | /* show-match: true;*/
56 | /* theme: ;*/
57 | /* color-normal: ;*/
58 | /* color-urgent: ;*/
59 | /* color-active: ;*/
60 | /* color-window: ;*/
61 | /* max-history-size: 25;*/
62 | /* combi-hide-mode-prefix: false;*/
63 | /* matching-negate-char: '-' /* unsupported */;*/
64 | /* cache-dir: ;*/
65 | /* pid: "/run/user/1000/rofi.pid";*/
66 | /* display-window: ;*/
67 | /* display-windowcd: ;*/
68 | /* display-run: ;*/
69 | /* display-ssh: ;*/
70 | /* display-drun: ;*/
71 | /* display-combi: ;*/
72 | /* display-keys: ;*/
73 | /* kb-primary-paste: "Control+V,Shift+Insert";*/
74 | /* kb-secondary-paste: "Control+v,Insert";*/
75 | /* kb-clear-line: "Control+w";*/
76 | /* kb-move-front: "Control+a";*/
77 | /* kb-move-end: "Control+e";*/
78 | /* kb-move-word-back: "Alt+b,Control+Left";*/
79 | /* kb-move-word-forward: "Alt+f,Control+Right";*/
80 | /* kb-move-char-back: "Left,Control+b";*/
81 | /* kb-move-char-forward: "Right,Control+f";*/
82 | /* kb-remove-word-back: "Control+Alt+h,Control+BackSpace";*/
83 | /* kb-remove-word-forward: "Control+Alt+d";*/
84 | /* kb-remove-char-forward: "Delete,Control+d";*/
85 | /* kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h";*/
86 | /* kb-remove-to-eol: "Control+k";*/
87 | /* kb-remove-to-sol: "Control+u";*/
88 | /* kb-accept-entry: "Control+j,Control+m,Return,KP_Enter";*/
89 | /* kb-accept-custom: "Control+Return";*/
90 | /* kb-accept-alt: "Shift+Return";*/
91 | /* kb-delete-entry: "Shift+Delete";*/
92 | /* kb-mode-next: "Shift+Right,Control+Tab";*/
93 | /* kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";*/
94 | /* kb-row-left: "Control+Page_Up";*/
95 | /* kb-row-right: "Control+Page_Down";*/
96 | /* kb-row-up: "Up,Control+p,ISO_Left_Tab";*/
97 | /* kb-row-down: "Down,Control+n";*/
98 | /* kb-row-tab: "Tab";*/
99 | /* kb-page-prev: "Page_Up";*/
100 | /* kb-page-next: "Page_Down";*/
101 | /* kb-row-first: "Home,KP_Home";*/
102 | /* kb-row-last: "End,KP_End";*/
103 | /* kb-row-select: "Control+space";*/
104 | /* kb-screenshot: "Alt+S";*/
105 | /* kb-ellipsize: "Alt+period";*/
106 | /* kb-toggle-case-sensitivity: "grave,dead_grave";*/
107 | /* kb-toggle-sort: "Alt+grave";*/
108 | /* kb-cancel: "Escape,Control+g,Control+bracketleft";*/
109 | /* kb-custom-1: "Alt+1";*/
110 | /* kb-custom-2: "Alt+2";*/
111 | /* kb-custom-3: "Alt+3";*/
112 | /* kb-custom-4: "Alt+4";*/
113 | /* kb-custom-5: "Alt+5";*/
114 | /* kb-custom-6: "Alt+6";*/
115 | /* kb-custom-7: "Alt+7";*/
116 | /* kb-custom-8: "Alt+8";*/
117 | /* kb-custom-9: "Alt+9";*/
118 | /* kb-custom-10: "Alt+0";*/
119 | /* kb-custom-11: "Alt+exclam";*/
120 | /* kb-custom-12: "Alt+at";*/
121 | /* kb-custom-13: "Alt+numbersign";*/
122 | /* kb-custom-14: "Alt+dollar";*/
123 | /* kb-custom-15: "Alt+percent";*/
124 | /* kb-custom-16: "Alt+dead_circumflex";*/
125 | /* kb-custom-17: "Alt+ampersand";*/
126 | /* kb-custom-18: "Alt+asterisk";*/
127 | /* kb-custom-19: "Alt+parenleft";*/
128 | /* kb-select-1: "Super+1";*/
129 | /* kb-select-2: "Super+2";*/
130 | /* kb-select-3: "Super+3";*/
131 | /* kb-select-4: "Super+4";*/
132 | /* kb-select-5: "Super+5";*/
133 | /* kb-select-6: "Super+6";*/
134 | /* kb-select-7: "Super+7";*/
135 | /* kb-select-8: "Super+8";*/
136 | /* kb-select-9: "Super+9";*/
137 | /* kb-select-10: "Super+0";*/
138 | /* ml-row-left: "ScrollLeft";*/
139 | /* ml-row-right: "ScrollRight";*/
140 | /* ml-row-up: "ScrollUp";*/
141 | /* ml-row-down: "ScrollDown";*/
142 | /* me-select-entry: "MousePrimary";*/
143 | /* me-accept-entry: "MouseDPrimary";*/
144 | /* me-accept-custom: "Control+MouseDPrimary";*/
145 | }
146 | @import "/home/poq/.local/share/rofi/themes/slate.rasi"
147 |
--------------------------------------------------------------------------------
/hlwm/.config/herbstluftwm/autostart:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # poq's hlwm cfg
3 | hc() {
4 | herbstclient "$@"
5 | }
6 |
7 | hc emit_hook reload
8 |
9 | # remove all existing keybindings
10 | hc keyunbind --all
11 | # keybindings
12 | # if you have a super key you will be much happier with Mod set to Mod4
13 | #Mod=Mod1 # Use alt as the main modifier
14 | Mod=Mod4 # Use the super key as the main modifier
15 |
16 | hc keybind $Mod-Shift-q quit
17 | hc keybind $Mod-Shift-r reload
18 | hc keybind $Mod-Shift-c close
19 | hc keybind $Mod-Return spawn urxvtc
20 | hc keybind $Mod-p spawn rofilauncher
21 | hc keybind $Mod-e spawn emacs
22 | # basic movement
23 | # focusing clients
24 | hc keybind $Mod-Left focus left
25 | hc keybind $Mod-Down focus down
26 | hc keybind $Mod-Up focus up
27 | hc keybind $Mod-Right focus right
28 | hc keybind $Mod-h focus left
29 | hc keybind $Mod-t focus down
30 | hc keybind $Mod-n focus up
31 | hc keybind $Mod-s focus right
32 |
33 | # moving clients
34 | hc keybind $Mod-Shift-Left shift left
35 | hc keybind $Mod-Shift-Down shift down
36 | hc keybind $Mod-Shift-Up shift up
37 | hc keybind $Mod-Shift-Right shift right
38 | hc keybind $Mod-Shift-h shift left
39 | hc keybind $Mod-Shift-t shift down
40 | hc keybind $Mod-Shift-n shift up
41 | hc keybind $Mod-Shift-s shift right
42 |
43 | # splitting frames
44 | # create an empty frame at the specified direction
45 | hc keybind $Mod-a split bottom 0.5
46 | hc keybind $Mod-o split right 0.5
47 | # let the current frame explode into subframes
48 | hc keybind $Mod-Control-space split explode
49 |
50 | # resizing frames
51 | resizestep=0.05
52 | hc keybind $Mod-Control-h resize left +$resizestep
53 | hc keybind $Mod-Control-t resize down +$resizestep
54 | hc keybind $Mod-Control-n resize up +$resizestep
55 | hc keybind $Mod-Control-s resize right +$resizestep
56 | hc keybind $Mod-Control-Left resize left +$resizestep
57 | hc keybind $Mod-Control-Down resize down +$resizestep
58 | hc keybind $Mod-Control-Up resize up +$resizestep
59 | hc keybind $Mod-Control-Right resize right +$resizestep
60 |
61 | # custom
62 | ## music
63 | hc keybind XF86AudioRaiseVolume spawn ponymix increase 1
64 | hc keybind XF86AudioLowerVolume spawn ponymix decrease 1
65 | hc keybind XF86AudioPause spawn mpc toggle
66 | ## scrot
67 | hc keybind Print spawn srot
68 | hc keybind Control-Print spawn scrot
69 |
70 | # tags
71 | tag_names=( {1..5} )
72 | tag_keys=( {1..5} 0 )
73 |
74 | hc rename default "${tag_names[0]}" || true
75 | for i in ${!tag_names[@]} ; do
76 | hc add "${tag_names[$i]}"
77 | key="${tag_keys[$i]}"
78 | if ! [ -z "$key" ] ; then
79 | hc keybind "$Mod-$key" use_index "$i"
80 | hc keybind "$Mod-Shift-$key" move_index "$i"
81 | fi
82 | done
83 |
84 | # cycle through tags
85 | hc keybind $Mod-period use_index +1 --skip-visible
86 | hc keybind $Mod-comma use_index -1 --skip-visible
87 |
88 | # layouting
89 | hc keybind $Mod-x remove
90 | hc keybind $Mod-z floating toggle
91 | hc keybind $Mod-f fullscreen toggle
92 | hc keybind $Mod-d pseudotile toggle
93 | # The following cycles through the available layouts within a frame, but skips
94 | # layouts, if the layout change wouldn't affect the actual window positions.
95 | # I.e. if there are two windows within a frame, the grid layout is skipped.
96 | hc keybind $Mod-space \
97 | or , and . compare tags.focus.curframe_wcount = 2 \
98 | . cycle_layout +1 vertical horizontal max vertical grid \
99 | , cycle_layout +1
100 |
101 | # mouse
102 | hc mouseunbind --all
103 | hc mousebind $Mod-Button1 move
104 | hc mousebind $Mod-Button2 zoom
105 | hc mousebind $Mod-Button3 resize
106 |
107 | # focus
108 | hc keybind $Mod-BackSpace cycle_monitor
109 | hc keybind $Mod-Tab cycle_all +1
110 | hc keybind $Mod-Shift-Tab cycle_all -1
111 | hc keybind $Mod-c cycle
112 | hc keybind $Mod-i jumpto urgent
113 |
114 | # theme
115 | hc attr theme.tiling.reset 1
116 | hc attr theme.floating.reset 1
117 | hc set frame_border_active_color '#222222'
118 | hc set frame_border_normal_color '#222222'
119 | hc set frame_bg_normal_color '#222222'
120 | hc set frame_bg_active_color '#ad456e'
121 | hc set frame_border_width 0
122 | hc set always_show_frame 0
123 | hc set frame_bg_transparent 1
124 | hc set frame_transparent_width 0
125 | hc set frame_gap 5
126 |
127 | hc attr theme.active.color '#10adee'
128 | hc attr theme.normal.color '#002566'
129 | hc attr theme.urgent.color orange
130 | hc attr theme.inner_width 0
131 | hc attr theme.inner_color "#765898"
132 | hc attr theme.border_width 2
133 | hc attr theme.floating.border_width 4
134 | hc attr theme.floating.outer_width 4
135 | hc attr theme.floating.outer_color black
136 | hc attr theme.active.outer_color '#134332'
137 | hc attr theme.active.inner_color '#aaaaaa'
138 | hc attr theme.background_color '#141414'
139 |
140 | hc set window_gap 0
141 | hc set frame_padding 0
142 | hc set smart_window_surroundings 0
143 | hc set smart_frame_surroundings 1
144 | hc set mouse_recenter_gap 0
145 | hc set focus_follows_mouse 1
146 |
147 | hc pad 0 20
148 |
149 | # rules
150 | hc unrule -F
151 | #hc rule class=XTerm tag=3 # move all xterms to tag 3
152 | hc rule focus=on # normally focus new clients
153 | #hc rule focus=off # normally do not focus new clients
154 | # give focus to most common terminals
155 | #hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on
156 | hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' pseudotile=on
157 | hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
158 | hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off
159 |
160 |
161 | # other shit because no .xinitrc
162 | hc spawn export GTK_IM_MODULE=ibus
163 | hc spawn export export XMODIFIERS=@im=ibus
164 | hc spawn export QT_IM_MODULE=ibus
165 | hc spawn ibus-daemon -drx
166 | hc spawn xsetroot -solid "#102530"
167 | hc spawn sbar 2>/dev/null
168 | # unlock, just to be sure
169 | hc unlock
170 |
171 | hc set tree_style '╾│ ├└╼─┐'
172 |
173 | # do multi monitor setup here, e.g.:
174 | # hc set_monitors 1280x1024+0+0 1280x1024+1280+0
175 | # or simply:
176 | # hc detect_monitors
177 |
--------------------------------------------------------------------------------
/dwm/patches/dwm-pertag-20170513-ceac8c9.diff:
--------------------------------------------------------------------------------
1 | diff --git a/dwm.c b/dwm.c
2 | index a5ce993..45f1e27 100644
3 | --- a/dwm.c
4 | +++ b/dwm.c
5 | @@ -112,6 +112,7 @@ typedef struct {
6 | void (*arrange)(Monitor *);
7 | } Layout;
8 |
9 | +typedef struct Pertag Pertag;
10 | struct Monitor {
11 | char ltsymbol[16];
12 | float mfact;
13 | @@ -131,6 +132,7 @@ struct Monitor {
14 | Monitor *next;
15 | Window barwin;
16 | const Layout *lt[2];
17 | + Pertag *pertag;
18 | };
19 |
20 | typedef struct {
21 | @@ -272,6 +274,15 @@ static Window root, wmcheckwin;
22 | /* configuration, allows nested code to access above variables */
23 | #include "config.h"
24 |
25 | +struct Pertag {
26 | + unsigned int curtag, prevtag; /* current and previous tag */
27 | + int nmasters[LENGTH(tags) + 1]; /* number of windows in master area */
28 | + float mfacts[LENGTH(tags) + 1]; /* mfacts per tag */
29 | + unsigned int sellts[LENGTH(tags) + 1]; /* selected layouts */
30 | + const Layout *ltidxs[LENGTH(tags) + 1][2]; /* matrix of tags and layouts indexes */
31 | + int showbars[LENGTH(tags) + 1]; /* display bar for the current tag */
32 | +};
33 | +
34 | /* compile-time check if all tags fit into an unsigned int bit array. */
35 | struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; };
36 |
37 | @@ -632,6 +643,7 @@ Monitor *
38 | createmon(void)
39 | {
40 | Monitor *m;
41 | + unsigned int i;
42 |
43 | m = ecalloc(1, sizeof(Monitor));
44 | m->tagset[0] = m->tagset[1] = 1;
45 | @@ -642,6 +654,20 @@ createmon(void)
46 | m->lt[0] = &layouts[0];
47 | m->lt[1] = &layouts[1 % LENGTH(layouts)];
48 | strncpy(m->ltsymbol, layouts[0].symbol, sizeof m->ltsymbol);
49 | + m->pertag = ecalloc(1, sizeof(Pertag));
50 | + m->pertag->curtag = m->pertag->prevtag = 1;
51 | +
52 | + for (i = 0; i <= LENGTH(tags); i++) {
53 | + m->pertag->nmasters[i] = m->nmaster;
54 | + m->pertag->mfacts[i] = m->mfact;
55 | +
56 | + m->pertag->ltidxs[i][0] = m->lt[0];
57 | + m->pertag->ltidxs[i][1] = m->lt[1];
58 | + m->pertag->sellts[i] = m->sellt;
59 | +
60 | + m->pertag->showbars[i] = m->showbar;
61 | + }
62 | +
63 | return m;
64 | }
65 |
66 | @@ -968,7 +994,7 @@ grabkeys(void)
67 | void
68 | incnmaster(const Arg *arg)
69 | {
70 | - selmon->nmaster = MAX(selmon->nmaster + arg->i, 0);
71 | + selmon->nmaster = selmon->pertag->nmasters[selmon->pertag->curtag] = MAX(selmon->nmaster + arg->i, 0);
72 | arrange(selmon);
73 | }
74 |
75 | @@ -1503,9 +1529,9 @@ void
76 | setlayout(const Arg *arg)
77 | {
78 | if (!arg || !arg->v || arg->v != selmon->lt[selmon->sellt])
79 | - selmon->sellt ^= 1;
80 | + selmon->sellt = selmon->pertag->sellts[selmon->pertag->curtag] ^= 1;
81 | if (arg && arg->v)
82 | - selmon->lt[selmon->sellt] = (Layout *)arg->v;
83 | + selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt] = (Layout *)arg->v;
84 | strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol);
85 | if (selmon->sel)
86 | arrange(selmon);
87 | @@ -1524,7 +1550,7 @@ setmfact(const Arg *arg)
88 | f = arg->f < 1.0 ? arg->f + selmon->mfact : arg->f - 1.0;
89 | if (f < 0.1 || f > 0.9)
90 | return;
91 | - selmon->mfact = f;
92 | + selmon->mfact = selmon->pertag->mfacts[selmon->pertag->curtag] = f;
93 | arrange(selmon);
94 | }
95 |
96 | @@ -1701,7 +1727,7 @@ tile(Monitor *m)
97 | void
98 | togglebar(const Arg *arg)
99 | {
100 | - selmon->showbar = !selmon->showbar;
101 | + selmon->showbar = selmon->pertag->showbars[selmon->pertag->curtag] = !selmon->showbar;
102 | updatebarpos(selmon);
103 | XMoveResizeWindow(dpy, selmon->barwin, selmon->wx, selmon->by, selmon->ww, bh);
104 | arrange(selmon);
105 | @@ -1740,9 +1766,33 @@ void
106 | toggleview(const Arg *arg)
107 | {
108 | unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK);
109 | + int i;
110 |
111 | if (newtagset) {
112 | selmon->tagset[selmon->seltags] = newtagset;
113 | +
114 | + if (newtagset == ~0) {
115 | + selmon->pertag->prevtag = selmon->pertag->curtag;
116 | + selmon->pertag->curtag = 0;
117 | + }
118 | +
119 | + /* test if the user did not select the same tag */
120 | + if (!(newtagset & 1 << (selmon->pertag->curtag - 1))) {
121 | + selmon->pertag->prevtag = selmon->pertag->curtag;
122 | + for (i = 0; !(newtagset & 1 << i); i++) ;
123 | + selmon->pertag->curtag = i + 1;
124 | + }
125 | +
126 | + /* apply settings for this view */
127 | + selmon->nmaster = selmon->pertag->nmasters[selmon->pertag->curtag];
128 | + selmon->mfact = selmon->pertag->mfacts[selmon->pertag->curtag];
129 | + selmon->sellt = selmon->pertag->sellts[selmon->pertag->curtag];
130 | + selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt];
131 | + selmon->lt[selmon->sellt^1] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt^1];
132 | +
133 | + if (selmon->showbar != selmon->pertag->showbars[selmon->pertag->curtag])
134 | + togglebar(NULL);
135 | +
136 | focus(NULL);
137 | arrange(selmon);
138 | }
139 | @@ -2036,11 +2086,37 @@ updatewmhints(Client *c)
140 | void
141 | view(const Arg *arg)
142 | {
143 | + int i;
144 | + unsigned int tmptag;
145 | +
146 | if ((arg->ui & TAGMASK) == selmon->tagset[selmon->seltags])
147 | return;
148 | selmon->seltags ^= 1; /* toggle sel tagset */
149 | - if (arg->ui & TAGMASK)
150 | + if (arg->ui & TAGMASK) {
151 | selmon->tagset[selmon->seltags] = arg->ui & TAGMASK;
152 | + selmon->pertag->prevtag = selmon->pertag->curtag;
153 | +
154 | + if (arg->ui == ~0)
155 | + selmon->pertag->curtag = 0;
156 | + else {
157 | + for (i = 0; !(arg->ui & 1 << i); i++) ;
158 | + selmon->pertag->curtag = i + 1;
159 | + }
160 | + } else {
161 | + tmptag = selmon->pertag->prevtag;
162 | + selmon->pertag->prevtag = selmon->pertag->curtag;
163 | + selmon->pertag->curtag = tmptag;
164 | + }
165 | +
166 | + selmon->nmaster = selmon->pertag->nmasters[selmon->pertag->curtag];
167 | + selmon->mfact = selmon->pertag->mfacts[selmon->pertag->curtag];
168 | + selmon->sellt = selmon->pertag->sellts[selmon->pertag->curtag];
169 | + selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt];
170 | + selmon->lt[selmon->sellt^1] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt^1];
171 | +
172 | + if (selmon->showbar != selmon->pertag->showbars[selmon->pertag->curtag])
173 | + togglebar(NULL);
174 | +
175 | focus(NULL);
176 | arrange(selmon);
177 | }
178 |
--------------------------------------------------------------------------------
/stumpwm/.config/stumpwm/config:
--------------------------------------------------------------------------------
1 | ;; -*-lisp-*-
2 |
3 | (in-package :stumpwm)
4 | (set-module-dir "/home/poq/.config/stumpwm/contrib")
5 | ;;(add-to-load-path "/home/poq/src/pkg/swm-gaps")
6 | ;;(load-module "maildir")
7 | (load-module "mem")
8 | (load-module "swm-gaps")
9 | (load-module "ttf-fonts")
10 | (require 'clx-truetype)
11 |
12 | ;(set-font "-*-tewi-medium-r-normal--*-*-*-*-*-*-*-*")
13 |
14 | ;; functions
15 | (ql:quickload :swank)
16 | (defcommand swank () ()
17 | (swank:create-server :port 4005
18 | :dont-close t)
19 | (echo-string (current-screen)
20 | "Getting swanky"))
21 | (swank)
22 |
23 |
24 |
25 | (defcommand colon1 (&optional (initial "")) (:rest)
26 | (let ((cmd (read-one-line (current-screen) ": " :initial-input initial)))
27 | (when cmd
28 | (eval-command cmd t))))
29 |
30 | (defcommand surfsearch (&optional (initial "")) (:rest)
31 | (let ((url (read-one-line (current-screen) "search: " :initial-input initial)))
32 | (when url
33 | (run-shell-command (format nil "surfraw -browser=surf duckduckgo ~a" url)))))
34 |
35 | (defcommand surfurl (&optional (initial "")) (:rest)
36 | (let ((url (read-one-line (current-screen) "url: " :initial-input initial)))
37 | (when url
38 | (run-shell-command (format nil "surf ~a" url)))))
39 |
40 | (defcommand surflaunch (url)
41 | ((:string))
42 | (run-shell-command (format nil "surf ~a" url)))
43 |
44 | (defcommand xprint (msg)
45 | ((:string))
46 | (run-shell-command (format nil "seq 3 | xargs -I{} xdotool getwindowfocus windowfocus --sync type --delay 2 'bajo~a '" msg)))
47 |
48 |
49 | ;; macros
50 | (defmacro make-groups-bg (&rest names)
51 | (let ((ns (mapcar #'(lambda (n) (concatenate 'string "gnewbg " n)) names)))
52 | `(run-commands ,@ns)))
53 |
54 | (defmacro auto-commands (&rest commands)
55 | (let ((coms (mapcar #'(lambda (n) (concatenate 'string "exec " n)) commands)))
56 | `(run-commands ,@coms)))
57 |
58 |
59 | ;; colours
60 | (setf *colors* (append *colors*
61 | (list "LightCoral")))
62 |
63 | ;; modeline
64 | (setf *mode-line-border-width* 0)
65 | (setf *mode-line-pad-y* 1)
66 | (setf *mode-line-pad-x* 100)
67 | (setf *mode-line-foreground-color* "orange")
68 | (setf *mode-line-background-color* "black")
69 | (setf *group-format* " %t ")
70 | (setf *window-format* "%m[%n] %20t ")
71 | (setf *mode-line-timeout* 2)
72 | (setf *time-modeline-string* "%e %B %l:%M ")
73 |
74 | (defun get-date-modeline ()
75 | (stumpwm:run-shell-command
76 | (format nil "date +\"~A\""
77 | *time-modeline-string*) t))
78 |
79 | (setf *screen-mode-line-format*
80 | (list "[^3%g^n] / %W ^> %N / "
81 | '(:eval (get-date-modeline))))
82 | (mode-line)
83 |
84 |
85 | ;; borders
86 | (set-unfocus-color "gray5")
87 | (set-focus-color "lightsalmon")
88 | (set-float-focus-color "lightsalmon")
89 | (set-float-unfocus-color "gray5")
90 | (setf *maxsize-border-width* 3)
91 | (setf *normal-border-width* 3)
92 | (setf *transient-border-width* 3)
93 | (setf *window-border-style* :tight)
94 |
95 |
96 | ;; gaps
97 | (setf swm-gaps:*inner-gaps-size* 5)
98 | (setf swm-gaps:*outer-gaps-size* 20)
99 |
100 |
101 | ;; mouse focus
102 | (setf *mouse-focus-policy* :click)
103 |
104 |
105 | ;; custom maps
106 | (defvar *my-emote-bindings*
107 | (let ((m (make-sparse-keymap)))
108 | (stumpwm:define-key m (stumpwm:kbd "s") "xprint Sad")
109 | (define-key m (kbd "y") "xprint Yeahnah")
110 | (define-key m (kbd "8") "xprint 8bit")
111 | (define-key m (kbd "q") "xprint Quasarface")
112 | (define-key m (kbd "z") "xprint Quasar")
113 | (define-key m (kbd "t") "xprint Sads")
114 | (define-key m (kbd "d") "xprint Djbj")
115 | (define-key m (kbd "u") "xprint Milk")
116 | (define-key m (kbd "r") "xprint Rage")
117 | (define-key m (kbd "g") "xprint Graphics")
118 | (define-key m (kbd "w") "xprint Bidet")
119 | (define-key m (kbd "m") "xprint Maker")
120 | (define-key m (kbd "1") "xprint 17th")
121 | (define-key m (kbd "p") "xprint Ponder")
122 | (define-key m (kbd "k") "xprint Kisses")
123 | (define-key m (kbd "v") "xprint Praise")
124 | (define-key m (kbd "c") "xprint Clownin")
125 | (define-key m (kbd "b") "xprint Broken")
126 | (define-key m (kbd "a") "xprint Art")
127 | ; (define-key m (kbd ""))
128 |
129 | m ; NOTE: this is important
130 | ))
131 |
132 | (defvar *browser-bindings*
133 | (let ((m (make-sparse-keymap)))
134 | (define-key m (kbd "r") "surflaunch reddit.com")
135 | (define-key m (kbd "g") "surflaunch geekhack.com")
136 | (define-key m (kbd "n") "surflaunch nixers.net")
137 | (define-key m (kbd "f") "surflaunch facebook.com")
138 | (define-key m (kbd "p") "surflaunch nhentai.net")
139 | (define-key m (kbd "t") "surflaunch twitter.com")
140 | (define-key m (kbd "u") "surfurl")
141 | m
142 | ))
143 |
144 | ;; binds
145 | (define-key *root-map* (kbd "B") "surfsearch")
146 | (define-key *root-map* (kbd "b") '*browser-bindings*)
147 | (define-key *root-map* (kbd "c") "exec st")
148 | (define-key *root-map* (kbd "e") "exec emacsclient -c")
149 | (define-key *root-map* (kbd "z") "exec mupdf") ;; make this ask for input
150 | (define-key *root-map* (kbd "C-c") "exec st")
151 | (define-key *root-map* (kbd "C-q") "quit")
152 | (define-key *root-map* (kbd "C-;") "gselect 1")
153 | (define-key *root-map* (kbd "C-,") "gselect 2")
154 | (define-key *root-map* (kbd "C-.") "gselect 3")
155 | (define-key *root-map* (kbd "C-p") "gselect 4")
156 | (define-key *root-map* (kbd "C-f") "fullscreen")
157 | (define-key *root-map* (kbd "!") "exec dmenu_run")
158 | (define-key *root-map* (kbd "RET") "mode-line")
159 | (define-key *root-map* (kbd "C-RET") "toggle-gaps")
160 | (define-key *root-map* (kbd "C-e") '*my-emote-bindings*)
161 |
162 |
163 | ;; window rules
164 | (clear-window-placement-rules)
165 |
166 | (define-frame-preference "dota"
167 | (0 nil t :class "Steam"))
168 |
169 | (define-frame-preference "irc"
170 | (0 nil t :title "irc"))
171 |
172 | (define-frame-preference "www"
173 | (1 t t :class "qutebrowser")
174 | (1 nil t :class "Firefox"))
175 |
176 |
177 | (run-commands "grename def")
178 | (make-groups-bg "www" "irc" "dota")
179 | (run-shell-command "emacs --daemon")
180 | ;;(auto-commands "st -e irc" "ibus-daemon -drx")
181 |
182 | (in-package :clx-truetype)
183 | (setq *font-dirs* '("/home/poq/.local/share/fonts"
184 | "/usr/share/fonts/"))
185 | (xft:cache-fonts)
186 |
187 | (in-package :stumpwm)
188 | (set-font (make-instance 'xft:font :family "Liberation Mono" :subfamily "Regular" :size 11 :antialias t :hints t))
189 |
--------------------------------------------------------------------------------