mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-09 17:41:12 +10:00
Pulling then pushing.
This commit is contained in:
+3
-4
@@ -15,7 +15,7 @@ Xft.lcdfilter: lcdfilter
|
|||||||
|
|
||||||
XTerm*renderFont: true
|
XTerm*renderFont: true
|
||||||
XTerm*faceName: xft:Mononoki Nerd Font
|
XTerm*faceName: xft:Mononoki Nerd Font
|
||||||
XTerm*faceSize: 11
|
XTerm*faceSize: 12
|
||||||
XTerm*utf8: 2
|
XTerm*utf8: 2
|
||||||
XTerm*locale: true
|
XTerm*locale: true
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ URxvt*depth: 32
|
|||||||
|
|
||||||
! special
|
! special
|
||||||
URxvt*foreground: #bbc5ff
|
URxvt*foreground: #bbc5ff
|
||||||
URxvt*background: [95]#292d3e
|
URxvt*background: [100]#292d3e
|
||||||
URxvt*cursorColor: #bbc5ff
|
URxvt*cursorColor: #bbc5ff
|
||||||
|
|
||||||
XTerm*foreground: #bbc5ff
|
XTerm*foreground: #bbc5ff
|
||||||
@@ -83,8 +83,7 @@ XTerm*background: #292d3e
|
|||||||
XTerm*cursorColor: #bbc5ff
|
XTerm*cursorColor: #bbc5ff
|
||||||
|
|
||||||
! black
|
! black
|
||||||
!! color0 was originally #292d3e
|
*.color0: #101010 !! originally #292d3e
|
||||||
*.color0: #101010
|
|
||||||
*.color8: #434758
|
*.color8: #434758
|
||||||
|
|
||||||
! red
|
! red
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
# ____ _____
|
# ____ _____
|
||||||
# | _ \_ _| Derek Taylor (DistroTube)
|
# | _ \_ _| Derek Taylor (DistroTube)
|
||||||
# | | | || | http://www.youtube.com/c/DistroTube
|
# | | | || | http://www.youtube.com/c/DistroTube
|
||||||
# | |_| || | http://www.gitlab.com/dwt1/
|
# | |_| || | http://www.gitlab.com/dwt1/
|
||||||
# |____/ |_|
|
# |____/ |_|
|
||||||
#
|
|
||||||
# My bash config. Not much to see here. Some pretty standard stuff.
|
EDITOR=vim
|
||||||
|
export TERM="st-256color"
|
||||||
EDITOR="emacsclient -c"
|
|
||||||
export TERM="xterm-256color"
|
|
||||||
|
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
@@ -42,7 +40,7 @@ colors() {
|
|||||||
|
|
||||||
# Change the window title of X terminals
|
# Change the window title of X terminals
|
||||||
case ${TERM} in
|
case ${TERM} in
|
||||||
xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|st|interix|konsole*)
|
xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*)
|
||||||
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"'
|
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"'
|
||||||
;;
|
;;
|
||||||
screen*)
|
screen*)
|
||||||
@@ -82,9 +80,10 @@ if ${use_color} ; then
|
|||||||
PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '
|
PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '
|
||||||
fi
|
fi
|
||||||
|
|
||||||
grep='grep --colour=auto' \
|
alias ls='ls --color=auto'
|
||||||
egrep='egrep --colour=auto' \
|
alias grep='grep --colour=auto'
|
||||||
fgrep='fgrep --colour=auto'
|
alias egrep='egrep --colour=auto'
|
||||||
|
alias fgrep='fgrep --colour=auto'
|
||||||
else
|
else
|
||||||
if [[ ${EUID} == 0 ]] ; then
|
if [[ ${EUID} == 0 ]] ; then
|
||||||
# show root@ when we don't have colors
|
# show root@ when we don't have colors
|
||||||
@@ -96,6 +95,16 @@ fi
|
|||||||
|
|
||||||
unset use_color safe_term match_lhs sh
|
unset use_color safe_term match_lhs sh
|
||||||
|
|
||||||
|
alias cp="cp -i" # confirm before overwriting something
|
||||||
|
alias df='df -h' # human-readable sizes
|
||||||
|
alias free='free -m' # show sizes in MB
|
||||||
|
alias np='nano -w PKGBUILD'
|
||||||
|
alias more=less
|
||||||
|
|
||||||
|
# terminal rickroll!
|
||||||
|
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
|
||||||
|
|
||||||
|
|
||||||
xhost +local:root > /dev/null 2>&1
|
xhost +local:root > /dev/null 2>&1
|
||||||
|
|
||||||
complete -cf sudo
|
complete -cf sudo
|
||||||
@@ -113,72 +122,37 @@ shopt -s expand_aliases
|
|||||||
# Enable history appending instead of overwriting. #139609
|
# Enable history appending instead of overwriting. #139609
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
|
|
||||||
### ARCHIVE EXTRACTION ###
|
#
|
||||||
# usage: ex <file>
|
# # ex - archive extractor
|
||||||
|
# # usage: ex <file>
|
||||||
ex ()
|
ex ()
|
||||||
{
|
{
|
||||||
if [ -f $1 ] ; then
|
if [ -f $1 ] ; then
|
||||||
case $1 in
|
case $1 in
|
||||||
*.tar.bz2|*.tbz2) tar xjf $1 ;;
|
*.tar.bz2) tar xjf $1 ;;
|
||||||
*.tar.gz|*.tgz) tar xzf $1 ;;
|
*.tar.gz) tar xzf $1 ;;
|
||||||
*.bz2) bunzip2 $1 ;;
|
*.bz2) bunzip2 $1 ;;
|
||||||
*.rar) unrar x $1 ;;
|
*.rar) unrar x $1 ;;
|
||||||
*.gz) gunzip $1 ;;
|
*.gz) gunzip $1 ;;
|
||||||
*.tar) tar xf $1 ;;
|
*.tar) tar xf $1 ;;
|
||||||
*.zip) unzip $1 ;;
|
*.tbz2) tar xjf $1 ;;
|
||||||
*.Z) uncompress $1;;
|
*.tgz) tar xzf $1 ;;
|
||||||
*.7z) 7z x $1 ;;
|
*.zip) unzip $1 ;;
|
||||||
*) echo "'$1' cannot be extracted via ex()" ;;
|
*.Z) uncompress $1;;
|
||||||
|
*.7z) 7z x $1 ;;
|
||||||
|
*) echo "'$1' cannot be extracted via ex()" ;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
echo "'$1' is not a valid file"
|
echo "'$1' is not a valid file"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
### ALIASES ###
|
# better yaourt colors
|
||||||
# navigation
|
export YAOURT_COLORS="nb=1:pkg=1:ver=1;32:lver=1;45:installed=1;42:grp=1;34:od=1;41;5:votes=1;44:dsc=0:other=1;35"
|
||||||
alias ..='cd ..' \
|
|
||||||
...='cd ../..'
|
|
||||||
|
|
||||||
# broot
|
neofetch
|
||||||
alias br='br -dhp'
|
|
||||||
alias bs='br --sizes'
|
|
||||||
|
|
||||||
# Changing "ls" to "exa"
|
alias config='/usr/bin/git --git-dir=/home/dt/dotfiles --work-tree=/home/dt'
|
||||||
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
|
|
||||||
alias la='exa -a --color=always --group-directories-first' # all files and dirs
|
|
||||||
alias ll='exa -l --color=always --group-directories-first' # long format
|
|
||||||
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
|
||||||
|
|
||||||
# adding flags
|
|
||||||
alias cp="cp -i" # confirm before overwriting something
|
|
||||||
alias df='df -h' # human-readable sizes
|
|
||||||
alias free='free -m' # show sizes in MB
|
|
||||||
alias lynx='lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss -vikeys'
|
|
||||||
alias vifm='./.config/vifm/scripts/vifmrun'
|
|
||||||
|
|
||||||
# the terminal rickroll
|
|
||||||
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
|
|
||||||
|
|
||||||
# bare git repo alias for dotfiles
|
|
||||||
alias config="/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME"
|
|
||||||
|
|
||||||
# termbin
|
|
||||||
alias tb="nc termbin.com 9999"
|
alias tb="nc termbin.com 9999"
|
||||||
|
|
||||||
### ENABLE VI MODE ###
|
|
||||||
set -o vi
|
set -o vi
|
||||||
|
|
||||||
### SET VIM AS MANPAGER ###
|
|
||||||
export MANPAGER="/bin/sh -c \"col -b | vim --not-a-term -c 'set ft=man ts=8 nomod nolist noma' -\""
|
|
||||||
|
|
||||||
### BASH POWERLINE ###
|
|
||||||
source ~/.bash-powerline.sh
|
|
||||||
|
|
||||||
### BROOT ###
|
|
||||||
source /home/dt/.config/broot/launcher/bash/br
|
|
||||||
|
|
||||||
### BASH INSULTER ###
|
|
||||||
if [ -f /etc/bash.command-not-found ]; then
|
|
||||||
. /etc/bash.command-not-found
|
|
||||||
fi
|
|
||||||
|
|||||||
+7
-52
@@ -1,60 +1,15 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# ____ _____
|
|
||||||
# | _ \_ _| Derek Taylor (DistroTube)
|
|
||||||
# | | | || | http://www.youtube.com/c/DistroTube
|
|
||||||
# | |_| || | http://www.gitlab.com/dwt1/
|
|
||||||
# |____/ |_|
|
|
||||||
#
|
|
||||||
# A customized bspwmrc for the bspwm window manager.
|
|
||||||
# https://github.com/baskerville/sxhkd
|
|
||||||
# https://github.com/baskerville/bspwm
|
|
||||||
|
|
||||||
#### AUTOSTART ####
|
|
||||||
sxhkd &
|
sxhkd &
|
||||||
compton &
|
|
||||||
nitrogen --restore &
|
|
||||||
./.config/bspwm/panel.sh &
|
|
||||||
|
|
||||||
#### MONITORS ####
|
bspc monitor -d I II III IV V VI VII VIII IX X
|
||||||
bspc monitor DisplayPort-0 -d 1 2 3 4 5 6 7 8 9
|
|
||||||
bspc monitor DisplayPort-1 -d 1 2 3 4 5 6 7 8 9
|
|
||||||
bspc monitor HDMI-A-0 -d 1 2 3 4 5 6 7 8 9
|
|
||||||
|
|
||||||
#### BSPWM configuration ####
|
bspc config border_width 2
|
||||||
#bspc config border_radius 8
|
bspc config window_gap 12
|
||||||
bspc config border_width 2
|
bspc config top_padding 20
|
||||||
bspc config window_gap 10
|
bspc config split_ratio 0.52
|
||||||
bspc config top_padding 20
|
bspc config borderless_monocle true
|
||||||
bspc config bottom_padding 0
|
bspc config gapless_monocle true
|
||||||
bspc config left_padding 0
|
|
||||||
bspc config right_padding 0
|
|
||||||
bspc config single_monocle false
|
|
||||||
bspc config click_to_focus true
|
|
||||||
bspc config split_ratio 0.50
|
|
||||||
bspc config borderless_monocle true
|
|
||||||
bspc config gapless_monocle true
|
|
||||||
bspc config focus_by_distance true
|
|
||||||
bspc config focus_follows_pointer true
|
|
||||||
bspc config history_aware_focus true
|
|
||||||
bspc config remove_disabled_monitors true
|
|
||||||
bspc config merge_overlapping_monitors true
|
|
||||||
bspc config pointer_modifier mod4
|
|
||||||
bspc config pointer_action1 move
|
|
||||||
bspc config pointer_action2 resize_side
|
|
||||||
bspc config pointer_action3 resize_corner
|
|
||||||
|
|
||||||
#### BSPWM coloring ####
|
|
||||||
bspc config normal_border_color "#4c566a"
|
|
||||||
bspc config active_border_color "#1e1e1e"
|
|
||||||
bspc config focused_border_color "#5e81ac"
|
|
||||||
bspc config presel_feedback_color "#5e81ac"
|
|
||||||
bspc config urgent_border_color "#dd2727"
|
|
||||||
|
|
||||||
#polybar hidden when fullscreen for vlc, youtube, mpv ...
|
|
||||||
#find out the name of your monitor with xrandr
|
|
||||||
xdo below -t $(xdo id -n root) $(xdo id -a polybar-main_DisplayPort-0)
|
|
||||||
xdo below -t $(xdo id -n root) $(xdo id -a polybar-main_DisplayPort-1)
|
|
||||||
xdo below -t $(xdo id -n root) $(xdo id -a polybar-main_HDMI-A-0)
|
|
||||||
|
|
||||||
bspc rule -a Gimp desktop='^8' state=floating follow=on
|
bspc rule -a Gimp desktop='^8' state=floating follow=on
|
||||||
bspc rule -a Chromium desktop='^2'
|
bspc rule -a Chromium desktop='^2'
|
||||||
|
|||||||
@@ -37,8 +37,7 @@ opacity-rule = [ "99:name *?= 'Call'",
|
|||||||
"95:name *?= 'toot'",
|
"95:name *?= 'toot'",
|
||||||
"95:name *?= 'nmon'",
|
"95:name *?= 'nmon'",
|
||||||
"95:name *?= 'httping'",
|
"95:name *?= 'httping'",
|
||||||
"96:name *?= 'xmobar'",
|
"92:name *?= 'xmobar'",
|
||||||
"95:class_g *?= 'emacs'",
|
|
||||||
"95:class_g *?= 'surf' && name *?='suckless.org'",
|
"95:class_g *?= 'surf' && name *?='suckless.org'",
|
||||||
"95:class_g *?= 'tabbed'",
|
"95:class_g *?= 'tabbed'",
|
||||||
"95:name *?= 'newsboat'",
|
"95:name *?= 'newsboat'",
|
||||||
|
|||||||
@@ -35,30 +35,40 @@ hc keybind $Mod-Shift-q quit
|
|||||||
hc keybind $Mod-Shift-r reload
|
hc keybind $Mod-Shift-r reload
|
||||||
hc keybind $Mod-Shift-c close
|
hc keybind $Mod-Shift-c close
|
||||||
hc keybind $Mod-Return spawn st
|
hc keybind $Mod-Return spawn st
|
||||||
|
hc keybind $Mod-KP_Insert spawn dmenu_run -fn 'Mononoki Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'
|
||||||
|
|
||||||
# Dmenu launcher
|
# Apps Launched with <SUPER> + <KEYPAD 0-9>
|
||||||
hc keybind Mod1-Control-Return spawn dmenu_run -fn 'Mononoki Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'
|
hc keybind $Mod-KP_End spawn st -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com
|
||||||
|
hc keybind $Mod-KP_Down spawn st -e sh ./scripts/googler-script.sh
|
||||||
|
hc keybind $Mod-KP_Page_Down spawn st -e newsboat
|
||||||
|
hc keybind $Mod-KP_Left spawn st -e rtv
|
||||||
|
hc keybind $Mod-KP_Begin spawn st -e neomutt
|
||||||
|
hc keybind $Mod-KP_Right spawn st -e twitch-curses
|
||||||
|
hc keybind $Mod-KP_Home spawn st -e sh ./scripts/haxor-news.sh
|
||||||
|
hc keybind $Mod-KP_Up spawn st -e toot curses
|
||||||
|
hc keybind $Mod-KP_Page_Up spawn st -e sh ./scripts/tig-script.sh
|
||||||
|
|
||||||
# My dmenu scripts (Alt+Ctrl+Key)
|
# Apps Launched with <SUPER> + <SHIFT> + <KEYPAD 0-9>
|
||||||
hc keybind Mod1-Control-e spawn ./.dmenu/dmenu-edit-configs.sh
|
hc keybind $Mod-Shift-KP_End spawn st -e ~/.config/vifm/scripts/vifmrun
|
||||||
hc keybind Mod1-Control-m spawn ./.dmenu/dmenu-sysmon.sh
|
hc keybind $Mod-Shift-KP_Down spawn st -e joplin
|
||||||
hc keybind Mod1-Control-p spawn passmenu
|
hc keybind $Mod-Shift-KP_Page_Down spawn st -e cmus
|
||||||
hc keybind Mod1-Control-s spawn ./.dmenu/dmenu-surfraw.sh
|
hc keybind $Mod-Shift-KP_Left spawn st -e irssi
|
||||||
hc keybind Mod1-Control-t spawn ./.dmenu/dmenu-trading.sh
|
hc keybind $Mod-Shift-KP_Begin spawn st -e rtorrent
|
||||||
|
hc keybind $Mod-Shift-KP_Right spawn st -e youtube-viewer
|
||||||
|
hc keybind $Mod-Shift-KP_Home spawn st -e ncpamixer
|
||||||
|
hc keybind $Mod-Shift-KP_Up spawn st -e calcurse
|
||||||
|
hc keybind $Mod-Shift-KP_Page_Up spawn st -e vim ~/.config/herbstluftwm/autostart
|
||||||
|
|
||||||
# My applications (Super+Alt+Key)
|
# Apps Launched with <SUPER> + <CONTROL> + <KEYPAD 0-9>
|
||||||
hc keybind $Mod-Mod1-l spawn st -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com
|
hc keybind $Mod-Control-KP_End spawn st -e htop
|
||||||
hc keybind $Mod-Mod1-n spawn st -e newsboat
|
hc keybind $Mod-Control-KP_Down spawn st -e gtop
|
||||||
hc keybind $Mod-Mod1-r spawn st -e rtv
|
hc keybind $Mod-Control-KP_Page_Down spawn st -e nmon
|
||||||
hc keybind $Mod-Mod1-e spawn st -e neomutt
|
hc keybind $Mod-Control-KP_Left spawn st -e glances
|
||||||
hc keybind $Mod-Mod1-m spawn st -e toot curses
|
hc keybind $Mod-Control-KP_Begin spawn st -e s-tui
|
||||||
hc keybind $Mod-Mod1-t spawn st -e sh ./scripts/tig-script.sh
|
hc keybind $Mod-Control-KP_Right spawn st -e httping -KY --draw-phase localhost
|
||||||
hc keybind $Mod-Mod1-f spawn st -e ~/.config/vifm/scripts/vifmrun
|
hc keybind $Mod-Control-KP_Home spawn st -e cmatrix -C cyan
|
||||||
hc keybind $Mod-Mod1-j spawn st -e joplin
|
hc keybind $Mod-Control-KP_Up spawn st -e pianobar
|
||||||
hc keybind $Mod-Mod1-c spawn st -e cmus
|
hc keybind $Mod-Control-KP_Page_Up spawn st -e wopr report.xml
|
||||||
hc keybind $Mod-Mod1-i spawn st -e irssi
|
|
||||||
hc keybind $Mod-Mod1-y spawn st -e youtube-viewer
|
|
||||||
hc keybind $Mod-Mod1-a spawn st -e ncpamixer
|
|
||||||
|
|
||||||
# basic movement
|
# basic movement
|
||||||
# focusing clients
|
# focusing clients
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
|
|
||||||
nowplaying=`deadbeef --nowplaying "%n %a - %t - %b - %y" | sed -n '1p' | tr -d '"'`
|
nowplaying=`deadbeef --nowplaying "%n %a - %t - %b - %y" | sed -n '1p' | tr -d '"'`
|
||||||
tracktime=`deadbeef --nowplaying "%l" | sed -n '1p'`
|
tracktime=`deadbeef --nowplaying "%l" | sed -n '1p'`
|
||||||
playlist_num=`ls -l /home/dt/.config/deadbeef/playlists/* | wc -l | sed -n '1p'`
|
playlist_dir=`/home/derek/.config/deadbeef/playlists/`
|
||||||
|
playlist_num=`ls -l /home/derek/.config/deadbeef/playlists/* | wc -l | sed -n '1p'`
|
||||||
|
|
||||||
echo "<openbox_pipe_menu>"
|
echo "<openbox_pipe_menu>"
|
||||||
echo "<menu id=\"root-menu-325671\" label=\""Track Info"\">"
|
echo "<menu id=\"root-menu-325671\" label=\""Track Info"\">"
|
||||||
@@ -34,7 +35,7 @@ echo "<separator/>"
|
|||||||
echo "<item label=\"Open Music Player\"><action name=\"Execute\"><execute>deadbeef</execute></action></item>"
|
echo "<item label=\"Open Music Player\"><action name=\"Execute\"><execute>deadbeef</execute></action></item>"
|
||||||
echo "</menu>"
|
echo "</menu>"
|
||||||
echo "<menu id=\"root-menu-325676\" label=\"Playlists ($playlist_num)\">"
|
echo "<menu id=\"root-menu-325676\" label=\"Playlists ($playlist_num)\">"
|
||||||
for file in $(ls /home/dt/.config/deadbeef/playlists/*.dbpl -1v); do
|
for file in $(ls /home/derek/.config/deadbeef/playlists/*.dbpl -1v); do
|
||||||
NAME=$(echo "$file" | rev | cut -d"/" -f1 | rev)
|
NAME=$(echo "$file" | rev | cut -d"/" -f1 | rev)
|
||||||
echo "<item label=\"$NAME\"><action name=\"Execute\"><execute>deadbeef $file</execute></action></item>"
|
echo "<item label=\"$NAME\"><action name=\"Execute\"><execute>deadbeef $file</execute></action></item>"
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
'Active' - where the active window is -->
|
'Active' - where the active window is -->
|
||||||
</placement>
|
</placement>
|
||||||
<theme>
|
<theme>
|
||||||
<name>Adapta-Nokto</name>
|
<name>Mabox-superdesk</name>
|
||||||
<titleLayout>CSIML</titleLayout>
|
<titleLayout>CSIML</titleLayout>
|
||||||
<!--
|
<!--
|
||||||
available characters are NDSLIMC, each can occur at most once.
|
available characters are NDSLIMC, each can occur at most once.
|
||||||
|
|||||||
+71
-46
@@ -127,7 +127,7 @@ font-4 = "Font Awesome 5 Brands:pixelsize=8;1"
|
|||||||
|
|
||||||
modules-left = i3 xwindow
|
modules-left = i3 xwindow
|
||||||
modules-center =
|
modules-center =
|
||||||
modules-right = arrow1 networkspeedup networkspeeddown arrow2 memory2 arrow3 cpu2 arrow2 pavolume arrow3 arch-aur-updates arrow2 date
|
modules-right = arrow1 networkspeedup networkspeeddown arrow2 memory2 arrow3 cpu2 arrow4 pavolume arrow5 arch-aur-updates arrow6 date
|
||||||
|
|
||||||
separator =
|
separator =
|
||||||
|
|
||||||
@@ -302,13 +302,13 @@ tray-background = ${colors.background}
|
|||||||
monitor = ${env:MONITOR}
|
monitor = ${env:MONITOR}
|
||||||
;monitor-fallback = HDMI1
|
;monitor-fallback = HDMI1
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 20
|
height = 30
|
||||||
;offset-x = 1%
|
;offset-x = 1%
|
||||||
;offset-y = 1%
|
;offset-y = 1%
|
||||||
radius = 0.0
|
radius = 0.0
|
||||||
fixed-center = true
|
fixed-center = true
|
||||||
bottom = false
|
bottom = false
|
||||||
separator =
|
separator = |
|
||||||
|
|
||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
@@ -330,22 +330,21 @@ border-size = 0
|
|||||||
;border-bottom-size = 25
|
;border-bottom-size = 25
|
||||||
border-color = #00000000
|
border-color = #00000000
|
||||||
|
|
||||||
padding-left = 1
|
padding-left = 0
|
||||||
padding-right = 1
|
padding-right = 1
|
||||||
|
|
||||||
module-margin-left = 0
|
module-margin-left = 3
|
||||||
module-margin-right = 0
|
module-margin-right = 3
|
||||||
|
|
||||||
;https://github.com/jaagr/polybar/wiki/Fonts
|
;https://github.com/jaagr/polybar/wiki/Fonts
|
||||||
font-0 = "UbuntuMono Nerd Font:size=10;2"
|
font-0 = "Noto Sans:size=10;0"
|
||||||
font-1 = "UbuntuMono Nerd Font:size=16;3"
|
font-1 = "FontAwesome:size=13;0"
|
||||||
font-2 = "Font Awesome 5 Free:style=Regular:pixelsize=8;1"
|
font-2 = "Noto Sans:size=10;0"
|
||||||
font-3 = "Font Awesome 5 Free:style=Solid:pixelsize=8;1"
|
font-3 = "Noto Sans Mono:size=10;0"
|
||||||
font-4 = "Font Awesome 5 Brands:pixelsize=8;1"
|
|
||||||
|
|
||||||
modules-left = bspwm xwindow
|
modules-left = bspwm xwindow
|
||||||
modules-center =
|
modules-center = kernel
|
||||||
modules-right = arrow1 networkspeedup networkspeeddown arrow2 memory2 arrow3 cpu2 arrow2 pavolume arrow3 arch-aur-updates arrow2 date
|
modules-right = pavolume memory2 cpu2 date
|
||||||
|
|
||||||
tray-detached = false
|
tray-detached = false
|
||||||
tray-offset-x = 0
|
tray-offset-x = 0
|
||||||
@@ -354,7 +353,7 @@ tray-position = right
|
|||||||
tray-padding = 2
|
tray-padding = 2
|
||||||
tray-maxsize = 20
|
tray-maxsize = 20
|
||||||
tray-scale = 1.0
|
tray-scale = 1.0
|
||||||
tray-background = ${colors.background}
|
tray-background = #2e3440
|
||||||
|
|
||||||
scroll-up = bspwm-desknext
|
scroll-up = bspwm-desknext
|
||||||
scroll-down = bspwm-deskprev
|
scroll-down = bspwm-deskprev
|
||||||
@@ -412,7 +411,7 @@ font-4 = "Font Awesome 5 Brands:pixelsize=8;1"
|
|||||||
|
|
||||||
modules-left = ewmh xwindow
|
modules-left = ewmh xwindow
|
||||||
modules-center =
|
modules-center =
|
||||||
modules-right = arrow1 networkspeedup networkspeeddown arrow2 memory2 arrow3 cpu2 arrow2 pavolume arrow3 arch-aur-updates arrow2 date
|
modules-right = arrow1 networkspeedup networkspeeddown arrow2 memory2 arrow3 cpu2 arrow4 pavolume arrow5 arch-aur-updates arrow6 date
|
||||||
|
|
||||||
tray-detached = false
|
tray-detached = false
|
||||||
tray-offset-x = 0
|
tray-offset-x = 0
|
||||||
@@ -567,9 +566,9 @@ ws-icon-4 = 5;
|
|||||||
ws-icon-5 = 6;
|
ws-icon-5 = 6;
|
||||||
ws-icon-6 = 7;
|
ws-icon-6 = 7;
|
||||||
ws-icon-7 = 8;
|
ws-icon-7 = 8;
|
||||||
ws-icon-8 = 9;
|
;ws-icon-8 = 9;
|
||||||
ws-icon-9 = 10;
|
;ws-icon-9 = 10;
|
||||||
ws-icon-default = " "
|
;ws-icon-default = " "
|
||||||
|
|
||||||
|
|
||||||
format = <label-state> <label-mode>
|
format = <label-state> <label-mode>
|
||||||
@@ -577,7 +576,7 @@ format = <label-state> <label-mode>
|
|||||||
label-focused = %icon%
|
label-focused = %icon%
|
||||||
label-focused-background = ${colors.background}
|
label-focused-background = ${colors.background}
|
||||||
label-focused-underline= #6790eb
|
label-focused-underline= #6790eb
|
||||||
label-focused-padding = 2
|
label-focused-padding = 4
|
||||||
label-focused-foreground = ${colors.foreground}
|
label-focused-foreground = ${colors.foreground}
|
||||||
|
|
||||||
label-occupied = %icon%
|
label-occupied = %icon%
|
||||||
@@ -631,7 +630,7 @@ format-background = ${colors.background}
|
|||||||
type = custom/text
|
type = custom/text
|
||||||
content = "%{T2} %{T-}"
|
content = "%{T2} %{T-}"
|
||||||
content-font = 2
|
content-font = 2
|
||||||
content-foreground = #A77AC4
|
content-foreground = #C3E88D
|
||||||
content-background = #292d3e
|
content-background = #292d3e
|
||||||
|
|
||||||
[module/arrow2]
|
[module/arrow2]
|
||||||
@@ -639,16 +638,42 @@ content-background = #292d3e
|
|||||||
type = custom/text
|
type = custom/text
|
||||||
content = "%{T2} %{T-}"
|
content = "%{T2} %{T-}"
|
||||||
content-font = 2
|
content-font = 2
|
||||||
content-foreground = #7197E7
|
content-foreground = #82AAFF
|
||||||
content-background = #A77AC4
|
content-background = #C3E88D
|
||||||
|
|
||||||
[module/arrow3]
|
[module/arrow3]
|
||||||
; grey to Blue
|
; grey to Blue
|
||||||
type = custom/text
|
type = custom/text
|
||||||
content = "%{T2} %{T-}"
|
content = "%{T2} %{T-}"
|
||||||
content-font = 2
|
content-font = 2
|
||||||
content-foreground = #A77AC4
|
content-foreground = #C792EA
|
||||||
content-background = #7197E7
|
content-background = #82AAFF
|
||||||
|
|
||||||
|
[module/arrow4]
|
||||||
|
; grey to Blue
|
||||||
|
type = custom/text
|
||||||
|
content = "%{T2} %{T-}"
|
||||||
|
content-font = 2
|
||||||
|
content-foreground = #FFE585
|
||||||
|
content-background = #C792EA
|
||||||
|
|
||||||
|
[module/arrow5]
|
||||||
|
; grey to Blue
|
||||||
|
type = custom/text
|
||||||
|
content = "%{T2} %{T-}"
|
||||||
|
content-font = 2
|
||||||
|
content-foreground = #F07178
|
||||||
|
content-background = #FFE585
|
||||||
|
|
||||||
|
[module/arrow6]
|
||||||
|
; grey to Blue
|
||||||
|
type = custom/text
|
||||||
|
content = "%{T2} %{T-}"
|
||||||
|
content-font = 2
|
||||||
|
content-foreground = #1D2330
|
||||||
|
content-background = #F07178
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@@ -661,10 +686,10 @@ type = custom/script
|
|||||||
exec = ~/.config/polybar/scripts/check-all-updates.sh
|
exec = ~/.config/polybar/scripts/check-all-updates.sh
|
||||||
interval = 1000
|
interval = 1000
|
||||||
label = Updates: %output%
|
label = Updates: %output%
|
||||||
format-foreground = #fefefe
|
format-foreground = #ffffff
|
||||||
format-background = #A77AC4
|
format-background = #F07178
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
format-prefix-foreground = #fefefe
|
format-prefix-foreground = #ffffff
|
||||||
|
|
||||||
|
|
||||||
[module/aur-updates]
|
[module/aur-updates]
|
||||||
@@ -842,10 +867,10 @@ type = internal/cpu
|
|||||||
; Seconds to sleep between updates
|
; Seconds to sleep between updates
|
||||||
; Default: 1
|
; Default: 1
|
||||||
interval = 1
|
interval = 1
|
||||||
format-foreground = #fefefe
|
format-foreground = ${colors.background}
|
||||||
format-background = #A77AC4
|
format-background = #C792EA
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
format-prefix-foreground = #fefefe
|
format-prefix-foreground = ${colors.background}
|
||||||
|
|
||||||
label-font = 1
|
label-font = 1
|
||||||
|
|
||||||
@@ -877,9 +902,9 @@ date-alt = " %a %b %d, %Y"
|
|||||||
time = %l:%M%p
|
time = %l:%M%p
|
||||||
time-alt = %l:%M%p
|
time-alt = %l:%M%p
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
format-prefix-foreground = #fefefe
|
format-prefix-foreground = ${colors.foreground}
|
||||||
format-foreground = #fefefe
|
format-foreground = ${colors.foreground}
|
||||||
format-background = #7197E7
|
format-background = ${colors.background}
|
||||||
label = "%date% %time% "
|
label = "%date% %time% "
|
||||||
|
|
||||||
#################################################################
|
#################################################################
|
||||||
@@ -1077,9 +1102,9 @@ label = %percentage_used%%
|
|||||||
|
|
||||||
format = Mem <label>
|
format = Mem <label>
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
format-prefix-foreground = #fefefe
|
format-prefix-foreground = #292d3e
|
||||||
format-foreground = #fefefe
|
format-foreground = #292d3e
|
||||||
format-background = #7197E7
|
format-background = #82AAFF
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
@@ -1138,13 +1163,13 @@ type = internal/network
|
|||||||
;interface = wlp3s0
|
;interface = wlp3s0
|
||||||
;interface = enp14s0
|
;interface = enp14s0
|
||||||
;interface = enp0s31f6
|
;interface = enp0s31f6
|
||||||
interface = enp4s0
|
interface = enp3s0
|
||||||
label-connected = "%upspeed:7%"
|
label-connected = "%upspeed:7%"
|
||||||
format-connected = <label-connected>
|
format-connected = <label-connected>
|
||||||
format-connected-prefix = " "
|
format-connected-prefix = " "
|
||||||
format-connected-prefix-foreground = #fefefe
|
format-connected-prefix-foreground = #292d3e
|
||||||
format-connected-foreground = #fefefe
|
format-connected-foreground = #292d3e
|
||||||
format-connected-background = #A77AC4
|
format-connected-background = #C3E88D
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
@@ -1154,13 +1179,13 @@ type = internal/network
|
|||||||
;interface = wlp3s0
|
;interface = wlp3s0
|
||||||
;interface = enp14s0
|
;interface = enp14s0
|
||||||
;interface = enp0s31f6
|
;interface = enp0s31f6
|
||||||
interface = enp4s0
|
interface = enp3s0
|
||||||
label-connected = "%downspeed:7%"
|
label-connected = "%downspeed:7%"
|
||||||
format-connected = <label-connected>
|
format-connected = <label-connected>
|
||||||
format-connected-prefix = " "
|
format-connected-prefix = " "
|
||||||
format-connected-prefix-foreground = #fefefe
|
format-connected-prefix-foreground = #292d3e
|
||||||
format-connected-foreground = #fefefe
|
format-connected-foreground = #292d3e
|
||||||
format-connected-background = #A77AC4
|
format-connected-background = #C3E88D
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
@@ -1187,8 +1212,8 @@ click-right = exec pavucontrol
|
|||||||
click-left = ~/.config/polybar/scripts/pavolume.sh --togmute
|
click-left = ~/.config/polybar/scripts/pavolume.sh --togmute
|
||||||
scroll-up = ~/.config/polybar/scripts/pavolume.sh --up
|
scroll-up = ~/.config/polybar/scripts/pavolume.sh --up
|
||||||
scroll-down = ~/.config/polybar/scripts/pavolume.sh --down
|
scroll-down = ~/.config/polybar/scripts/pavolume.sh --down
|
||||||
format-foreground = #fefefe
|
format-foreground = ${colors.background}
|
||||||
format-background = #7197E7
|
format-background = #FFE585
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ The MODKEY is set to the Super key (aka the Windows key).
|
|||||||
|
|
||||||
| Keybinding | Action |
|
| Keybinding | Action |
|
||||||
| :--- | :--- |
|
| :--- | :--- |
|
||||||
| `ALT + CRTL + Enter` | opens run launcher (dmenu is the run launcher but can be easily changed) |
|
| `MODKEY + Keypad Insert` | opens run launcher (dmenu is the run launcher but can be easily changed) |
|
||||||
| `MODKEY + Enter` | opens terminal (st is the terminal but can be easily changed) |
|
| `MODKEY + Enter` | opens terminal (st is the terminal but can be easily changed) |
|
||||||
| `MODKEY + SHIFT + c` | closes window with focus |
|
| `MODKEY + SHIFT + c` | closes window with focus |
|
||||||
| `MODKEY + SHIFT + q` | quits qtile |
|
| `MODKEY + SHIFT + q` | quits qtile |
|
||||||
|
|||||||
Regular → Executable
+190
-149
@@ -1,9 +1,9 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# ____ _____
|
# ____ _____
|
||||||
# | _ \_ _| Derek Taylor (DistroTube)
|
# | _ \_ _| Derek Taylor (DistroTube)
|
||||||
# | | | || | http://www.youtube.com/c/DistroTube
|
# | | | || | http://www.youtube.com/c/DistroTube
|
||||||
# | |_| || | http://www.gitlab.com/dwt1/
|
# | |_| || | http://www.gitlab.com/dwt1/
|
||||||
# |____/ |_|
|
# |____/ |_|
|
||||||
#
|
#
|
||||||
# A customized config.py for Qtile window manager (http://www.qtile.org)
|
# A customized config.py for Qtile window manager (http://www.qtile.org)
|
||||||
# Modified by Derek Taylor (http://www.gitlab.com/dwt1/ )
|
# Modified by Derek Taylor (http://www.gitlab.com/dwt1/ )
|
||||||
@@ -83,13 +83,13 @@ def init_keys():
|
|||||||
lazy.shutdown() # Shutdown Qtile
|
lazy.shutdown() # Shutdown Qtile
|
||||||
),
|
),
|
||||||
Key([mod], "w",
|
Key([mod], "w",
|
||||||
lazy.to_screen(0) # Keyboard focus screen(0)
|
lazy.to_screen(2) # Keyboard focus screen(0)
|
||||||
),
|
),
|
||||||
Key([mod], "e",
|
Key([mod], "e",
|
||||||
lazy.to_screen(1) # Keyboard focus screen(1)
|
lazy.to_screen(0) # Keyboard focus screen(1)
|
||||||
),
|
),
|
||||||
Key([mod], "r",
|
Key([mod], "r",
|
||||||
lazy.to_screen(2) # Keyboard focus screen(2)
|
lazy.to_screen(1) # Keyboard focus screen(2)
|
||||||
),
|
),
|
||||||
Key([mod, "control"], "k",
|
Key([mod, "control"], "k",
|
||||||
lazy.layout.section_up() # Move up a section in treetab
|
lazy.layout.section_up() # Move up a section in treetab
|
||||||
@@ -97,7 +97,7 @@ def init_keys():
|
|||||||
Key([mod, "control"], "j",
|
Key([mod, "control"], "j",
|
||||||
lazy.layout.section_down() # Move down a section in treetab
|
lazy.layout.section_down() # Move down a section in treetab
|
||||||
),
|
),
|
||||||
### Window controls
|
# Window controls
|
||||||
Key(
|
Key(
|
||||||
[mod], "k",
|
[mod], "k",
|
||||||
lazy.layout.down() # Switch between windows in current stack pane
|
lazy.layout.down() # Switch between windows in current stack pane
|
||||||
@@ -149,7 +149,7 @@ def init_keys():
|
|||||||
lazy.layout.rotate(), # Swap panes of split stack (Stack)
|
lazy.layout.rotate(), # Swap panes of split stack (Stack)
|
||||||
lazy.layout.flip() # Switch which side main pane occupies (XmonadTall)
|
lazy.layout.flip() # Switch which side main pane occupies (XmonadTall)
|
||||||
),
|
),
|
||||||
### Stack controls
|
# Stack controls
|
||||||
Key(
|
Key(
|
||||||
[mod], "space",
|
[mod], "space",
|
||||||
lazy.layout.next() # Switch window focus to other pane(s) of stack
|
lazy.layout.next() # Switch window focus to other pane(s) of stack
|
||||||
@@ -158,121 +158,165 @@ def init_keys():
|
|||||||
[mod, "control"], "Return",
|
[mod, "control"], "Return",
|
||||||
lazy.layout.toggle_split() # Toggle between split and unsplit sides of stack
|
lazy.layout.toggle_split() # Toggle between split and unsplit sides of stack
|
||||||
),
|
),
|
||||||
|
# GUI Apps
|
||||||
### Dmenu Run Launcher
|
|
||||||
Key(
|
Key(
|
||||||
["mod1", "control"], "Return",
|
[mod], "b",
|
||||||
lazy.spawn("dmenu_run -fn 'UbuntuMono Nerd Font:size=10' -nb '#282a36' -nf '#ffffff' -sb '#bd93f9' -sf '#282a36' -p 'dmenu:'")
|
lazy.function(app_or_group("WWW", "firefox"))
|
||||||
),
|
|
||||||
|
|
||||||
### Dmenu scripts launched with ALT + CTRL + KEY
|
|
||||||
Key(
|
|
||||||
["mod1", "control"], "e",
|
|
||||||
lazy.spawn("./.dmenu/dmenu-edit-configs.sh")
|
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
["mod1", "control"], "m",
|
[mod], "f",
|
||||||
lazy.spawn("./.dmenu/dmenu-sysmon.sh")
|
lazy.spawn("pcmanfm")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
["mod1", "control"], "p",
|
[mod], "g",
|
||||||
lazy.spawn("passmenu")
|
lazy.spawn("geany")
|
||||||
|
),
|
||||||
|
# Apps Launched with <SUPER> + <KEYPAD 0-9>
|
||||||
|
Key(
|
||||||
|
[mod], "KP_Insert", # Keypad 0
|
||||||
|
# lazy.spawncmd() # Qtile Run Dialog
|
||||||
|
lazy.spawn("dmenu_run -fn 'UbuntuMono Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
["mod1", "control"], "r",
|
[mod], "KP_End", # Keypad 1
|
||||||
lazy.spawn("./.dmenu/dmenu-reddio.sh")
|
lazy.spawn(myTerm+" -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com")
|
||||||
|
# lazy.spawn(myTerm+" -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
["mod1", "control"], "s",
|
[mod], "KP_Down", # Keypad 2
|
||||||
lazy.spawn("./.dmenu/dmenu-surfraw.sh")
|
lazy.spawn(myTerm+" -e sh ./scripts/googler-script.sh")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
["mod1", "control"], "t",
|
[mod], "KP_Page_Down", # Keypad 3
|
||||||
lazy.spawn("./.dmenu/dmenu-trading.sh")
|
|
||||||
),
|
|
||||||
Key(
|
|
||||||
["mod1", "control"], "i",
|
|
||||||
lazy.spawn("./.dmenu/dmenu-scrot.sh")
|
|
||||||
),
|
|
||||||
|
|
||||||
### My applications launched with SUPER + ALT + KEY
|
|
||||||
Key(
|
|
||||||
[mod, "mod1"], "l",
|
|
||||||
lazy.spawn(myTerm+" -e lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss gopher://distro.tube")
|
|
||||||
),
|
|
||||||
Key(
|
|
||||||
[mod, "mod1"], "n",
|
|
||||||
lazy.spawn(myTerm+" -e newsboat")
|
lazy.spawn(myTerm+" -e newsboat")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "r",
|
[mod], "KP_Left", # Keypad 4
|
||||||
lazy.spawn(myTerm+" -e rtv")
|
lazy.spawn(myTerm+" -e rtv")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "e",
|
[mod], "KP_Begin", # Keypad 5
|
||||||
lazy.spawn(myTerm+" -e neomutt")
|
lazy.spawn(myTerm+" -e neomutt")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "m",
|
[mod], "KP_Right", # Keypad 6
|
||||||
|
lazy.spawn(myTerm+" -e twitch-curses")
|
||||||
|
),
|
||||||
|
Key(
|
||||||
|
[mod], "KP_Home", # Keypad 7
|
||||||
|
lazy.spawn(myTerm+" -e sh ./scripts/haxor-news.sh")
|
||||||
|
),
|
||||||
|
Key(
|
||||||
|
[mod], "KP_Up", # Keypad 8
|
||||||
lazy.spawn(myTerm+" -e sh ./scripts/toot.sh")
|
lazy.spawn(myTerm+" -e sh ./scripts/toot.sh")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "t",
|
[mod], "KP_Page_Up", # Keypad 9
|
||||||
lazy.spawn(myTerm+" -e sh ./scripts/tig-script.sh")
|
lazy.spawn(myTerm+" -e sh ./scripts/tig-script.sh")
|
||||||
),
|
),
|
||||||
|
# Apps Launched with <SUPER> + <SHIFT> + <KEYPAD 0-9>
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "f",
|
[mod, "shift"], "KP_End", # Keypad 1
|
||||||
lazy.spawn(myTerm+" -e sh ./.config/vifm/scripts/vifmrun")
|
lazy.spawn(myTerm+" -e sh ./.config/vifm/scripts/vifmrun")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "j",
|
[mod, "shift"], "KP_Down", # Keypad 2
|
||||||
lazy.spawn(myTerm+" -e joplin")
|
lazy.spawn(myTerm+" -e joplin")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "c",
|
[mod, "shift"], "KP_Page_Down", # Keypad 3
|
||||||
lazy.spawn(myTerm+" -e cmus")
|
lazy.spawn(myTerm+" -e cmus")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "i",
|
[mod, "shift"], "KP_Left", # Keypad 4
|
||||||
lazy.spawn(myTerm+" -e irssi")
|
lazy.spawn(myTerm+" -e irssi")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "y",
|
[mod, "shift"], "KP_Begin", # Keypad 5
|
||||||
|
lazy.spawn(myTerm+" -e rtorrent")
|
||||||
|
),
|
||||||
|
Key(
|
||||||
|
[mod, "shift"], "KP_Right", # Keypad 6
|
||||||
lazy.spawn(myTerm+" -e youtube-viewer")
|
lazy.spawn(myTerm+" -e youtube-viewer")
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[mod, "mod1"], "a",
|
[mod, "shift"], "KP_Home", # Keypad 7
|
||||||
lazy.spawn(myTerm+" -e ncpamixer")
|
lazy.spawn(myTerm+" -e ncpamixer")
|
||||||
),
|
),
|
||||||
|
Key(
|
||||||
|
[mod, "shift"], "KP_Up", # Keypad 8
|
||||||
|
lazy.spawn(myTerm+" -e calcurse")
|
||||||
|
),
|
||||||
|
Key(
|
||||||
|
[mod, "shift"], "KP_Page_Up", # Keypad 9
|
||||||
|
lazy.spawn(myTerm+" -e vim /home/dt/.config/qtile/config.py")
|
||||||
|
),
|
||||||
|
# Apps Launched with <SUPER> + <CONTROL> + <KEYPAD 0-9>
|
||||||
|
Key(
|
||||||
|
[mod, "control"], "KP_End", # Keypad 1
|
||||||
|
lazy.spawn(myTerm+" -e htop")
|
||||||
|
),
|
||||||
|
Key(
|
||||||
|
[mod, "control"], "KP_Down", # Keypad 2
|
||||||
|
lazy.spawn(myTerm+" -e gtop")
|
||||||
|
),
|
||||||
|
Key(
|
||||||
|
[mod, "control"], "KP_Page_Down", # Keypad 3
|
||||||
|
lazy.spawn(myTerm+" -e nmon")
|
||||||
|
),
|
||||||
|
Key(
|
||||||
|
[mod, "control"], "KP_Left", # Keypad 4
|
||||||
|
lazy.spawn(myTerm+" -e glances")
|
||||||
|
),
|
||||||
|
Key(
|
||||||
|
[mod, "control"], "KP_Begin", # Keypad 5
|
||||||
|
lazy.spawn(myTerm+" -e s-tui")
|
||||||
|
),
|
||||||
|
Key(
|
||||||
|
[mod, "control"], "KP_Right", # Keypad 6
|
||||||
|
lazy.spawn(myTerm+" -e httping -KY --draw-phase localhost")
|
||||||
|
),
|
||||||
|
Key(
|
||||||
|
[mod, "control"], "KP_Home", # Keypad 7
|
||||||
|
lazy.spawn(myTerm+" -e cmatrix -C cyan")
|
||||||
|
),
|
||||||
|
Key(
|
||||||
|
[mod, "control"], "KP_Up", # Keypad 8
|
||||||
|
lazy.spawn(myTerm+" -e pianobar")
|
||||||
|
),
|
||||||
|
Key(
|
||||||
|
[mod, "control"], "KP_Page_Up", # Keypad 9
|
||||||
|
lazy.spawn(myTerm+" -e wopr report.xml")
|
||||||
|
),
|
||||||
]
|
]
|
||||||
return keys
|
return keys
|
||||||
|
|
||||||
##### BAR COLORS #####
|
##### BAR COLORS #####
|
||||||
|
|
||||||
def init_colors():
|
def init_colors():
|
||||||
return [["#282a36", "#282a36"], # panel background
|
return [["#292D3E", "#292D3E"], # panel background
|
||||||
["#434758", "#434758"], # background for current screen tab
|
["#434758", "#434758"], # background for current screen tab
|
||||||
["#ffffff", "#ffffff"], # font color for group names
|
["#D0D0D0", "#D0D0D0"], # font color for group names
|
||||||
["#ff5555", "#ff5555"], # background color for layout widget
|
["#F07178", "#F07178"], # background color for layout widget
|
||||||
["#000000", "#000000"], # background for other screen tabs
|
["#000000", "#000000"], # background for other screen tabs
|
||||||
["#A77AC4", "#A77AC4"], # dark green gradiant for other screen tabs
|
["#AD69AF", "#AD69AF"], # dark green gradiant for other screen tabs
|
||||||
["#50fa7b", "#50fa7b"], # background color for network widget
|
["#C3E88D", "#C3E88D"], # background color for network widget
|
||||||
["#7197E7", "#7197E7"], # background color for pacman widget
|
["#C792EA", "#C792EA"], # background color for pacman widget
|
||||||
["#9AEDFE", "#9AEDFE"], # background color for cmus widget
|
["#9CC4FF", "#9CC4FF"], # background color for cmus widget
|
||||||
["#000000", "#000000"], # background color for clock widget
|
["#000000", "#000000"], # background color for clock widget
|
||||||
["#434758", "#434758"]] # background color for systray widget
|
["#434758", "#434758"]] # background color for systray widget
|
||||||
|
|
||||||
##### GROUPS #####
|
##### GROUPS #####
|
||||||
|
|
||||||
def init_group_names():
|
def init_group_names():
|
||||||
return [("WWW", {'layout': 'monadtall'}),
|
return [("DEV", {'layout': 'max'}),
|
||||||
("DEV", {'layout': 'monadtall'}),
|
("WWW", {'layout': 'max'}),
|
||||||
("SYS", {'layout': 'monadtall'}),
|
("SYS", {'layout': 'monadtall'}),
|
||||||
("DOC", {'layout': 'monadtall'}),
|
("DOC", {'layout': 'monadtall'}),
|
||||||
("VBOX", {'layout': 'monadtall'}),
|
("VBOX", {'layout': 'floating'}),
|
||||||
("CHAT", {'layout': 'monadtall'}),
|
("CHAT", {'layout': 'bsp'}),
|
||||||
("MUS", {'layout': 'monadtall'}),
|
("MEDIA", {'layout': 'monadtall'}),
|
||||||
("VID", {'layout': 'monadtall'}),
|
|
||||||
("GFX", {'layout': 'floating'})]
|
("GFX", {'layout': 'floating'})]
|
||||||
|
|
||||||
def init_groups():
|
def init_groups():
|
||||||
@@ -286,7 +330,7 @@ def init_floating_layout():
|
|||||||
|
|
||||||
def init_layout_theme():
|
def init_layout_theme():
|
||||||
return {"border_width": 2,
|
return {"border_width": 2,
|
||||||
"margin": 4,
|
"margin": 10,
|
||||||
"border_focus": "AD69AF",
|
"border_focus": "AD69AF",
|
||||||
"border_normal": "1D2330"
|
"border_normal": "1D2330"
|
||||||
}
|
}
|
||||||
@@ -295,17 +339,10 @@ def init_border_args():
|
|||||||
return {"border_width": 2}
|
return {"border_width": 2}
|
||||||
|
|
||||||
def init_layouts():
|
def init_layouts():
|
||||||
return [#layout.MonadWide(**layout_theme),
|
return [layout.Max(**layout_theme),
|
||||||
#layout.Bsp(**layout_theme),
|
|
||||||
#layout.Stack(stacks=2, **layout_theme),
|
|
||||||
#layout.Columns(**layout_theme),
|
|
||||||
#layout.RatioTile(**layout_theme),
|
|
||||||
#layout.VerticalTile(**layout_theme),
|
|
||||||
#layout.Tile(shift_windows=True, **layout_theme),
|
|
||||||
#layout.Matrix(**layout_theme),
|
|
||||||
#layout.Zoomy(**layout_theme),
|
|
||||||
layout.MonadTall(**layout_theme),
|
layout.MonadTall(**layout_theme),
|
||||||
layout.Max(**layout_theme),
|
layout.MonadWide(**layout_theme),
|
||||||
|
layout.Bsp(**layout_theme),
|
||||||
layout.TreeTab(
|
layout.TreeTab(
|
||||||
font = "Ubuntu",
|
font = "Ubuntu",
|
||||||
fontsize = 10,
|
fontsize = 10,
|
||||||
@@ -321,13 +358,23 @@ def init_layouts():
|
|||||||
panel_width = 320,
|
panel_width = 320,
|
||||||
**layout_theme
|
**layout_theme
|
||||||
),
|
),
|
||||||
|
layout.Slice(side="left", width=192, name="gimp", role="gimp-toolbox",
|
||||||
|
fallback=layout.Slice(side="right", width=256, role="gimp-dock",
|
||||||
|
fallback=layout.Stack(num_stacks=1, **border_args))),
|
||||||
|
#layout.Stack(stacks=2, **layout_theme),
|
||||||
|
#layout.Columns(**layout_theme),
|
||||||
|
#layout.RatioTile(**layout_theme),
|
||||||
|
#layout.VerticalTile(**layout_theme),
|
||||||
|
#layout.Tile(shift_windows=True, **layout_theme),
|
||||||
|
#layout.Matrix(**layout_theme),
|
||||||
|
#layout.Zoomy(**layout_theme),
|
||||||
layout.Floating(**layout_theme)]
|
layout.Floating(**layout_theme)]
|
||||||
|
|
||||||
##### WIDGETS #####
|
##### WIDGETS #####
|
||||||
|
|
||||||
def init_widgets_defaults():
|
def init_widgets_defaults():
|
||||||
return dict(font="Ubuntu Mono",
|
return dict(font="Ubuntu Mono",
|
||||||
fontsize = 12,
|
fontsize = 11,
|
||||||
padding = 2,
|
padding = 2,
|
||||||
background=colors[2])
|
background=colors[2])
|
||||||
|
|
||||||
@@ -344,15 +391,15 @@ def init_widgets_list():
|
|||||||
fontsize = 9,
|
fontsize = 9,
|
||||||
margin_y = 0,
|
margin_y = 0,
|
||||||
margin_x = 0,
|
margin_x = 0,
|
||||||
padding_y = 5,
|
padding_y = 9,
|
||||||
padding_x = 5,
|
padding_x = 5,
|
||||||
borderwidth = 1,
|
borderwidth = 1,
|
||||||
active = colors[2],
|
active = colors[2],
|
||||||
inactive = colors[2],
|
inactive = colors[2],
|
||||||
rounded = False,
|
rounded = False,
|
||||||
highlight_method = "block",
|
highlight_method = "block",
|
||||||
this_current_screen_border = colors[5],
|
this_current_screen_border = colors[1],
|
||||||
this_screen_border = colors [1],
|
this_screen_border = colors [4],
|
||||||
other_current_screen_border = colors[0],
|
other_current_screen_border = colors[0],
|
||||||
other_screen_border = colors[0],
|
other_screen_border = colors[0],
|
||||||
foreground = colors[2],
|
foreground = colors[2],
|
||||||
@@ -375,126 +422,120 @@ def init_widgets_list():
|
|||||||
fontsize = 11,
|
fontsize = 11,
|
||||||
foreground = colors[5],
|
foreground = colors[5],
|
||||||
background = colors[0],
|
background = colors[0],
|
||||||
padding = 5
|
padding = 6
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.Image(
|
||||||
text='',
|
scale = True,
|
||||||
background = colors[0],
|
filename = "~/.config/qtile/bar06.png",
|
||||||
foreground = colors[5],
|
background = colors[6]
|
||||||
padding=0,
|
),
|
||||||
fontsize=37
|
widget.Systray(
|
||||||
|
background=colors[10],
|
||||||
|
padding = 6
|
||||||
|
),
|
||||||
|
widget.Image(
|
||||||
|
scale = True,
|
||||||
|
filename = "~/.config/qtile/bar02-b.png",
|
||||||
|
background = colors[6]
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
text=" ↯",
|
text=" ↯",
|
||||||
foreground=colors[2],
|
foreground=colors[0],
|
||||||
background=colors[5],
|
background=colors[6],
|
||||||
padding = 0,
|
padding = 0,
|
||||||
fontsize=14
|
fontsize=14
|
||||||
),
|
),
|
||||||
widget.Net(
|
widget.Net(
|
||||||
interface = "enp4s0",
|
interface = "enp3s0",
|
||||||
foreground = colors[2],
|
foreground = colors[0],
|
||||||
background = colors[5],
|
background = colors[6],
|
||||||
padding = 5
|
padding = 6
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.Image(
|
||||||
text='',
|
scale = True,
|
||||||
background = colors[5],
|
filename = "~/.config/qtile/bar03.png",
|
||||||
foreground = colors[7],
|
background = colors[3]
|
||||||
padding=0,
|
|
||||||
fontsize=37
|
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
font="Ubuntu Bold",
|
font="Ubuntu Bold",
|
||||||
text=" ☵",
|
text=" ☵",
|
||||||
padding = 5,
|
padding = 6,
|
||||||
foreground=colors[2],
|
foreground=colors[0],
|
||||||
background=colors[7],
|
background=colors[3],
|
||||||
fontsize=14
|
fontsize=14
|
||||||
),
|
),
|
||||||
widget.CurrentLayout(
|
widget.CurrentLayout(
|
||||||
foreground = colors[2],
|
foreground = colors[0],
|
||||||
background = colors[7],
|
background = colors[3],
|
||||||
padding = 5
|
padding = 6
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.Image(
|
||||||
text='',
|
scale = True,
|
||||||
background = colors[7],
|
filename = "~/.config/qtile/bar04.png",
|
||||||
foreground = colors[5],
|
background = colors[7]
|
||||||
padding=0,
|
|
||||||
fontsize=37
|
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
font="Ubuntu Bold",
|
font="Ubuntu Bold",
|
||||||
text=" ⟳",
|
text=" ⟳",
|
||||||
padding = 5,
|
padding = 6,
|
||||||
foreground=colors[2],
|
foreground=colors[0],
|
||||||
background=colors[5],
|
background=colors[7],
|
||||||
fontsize=14
|
fontsize=14
|
||||||
),
|
),
|
||||||
widget.Pacman(
|
widget.Pacman(
|
||||||
execute = "urxvtc",
|
execute = "urxvtc",
|
||||||
update_interval = 1800,
|
update_interval = 1800,
|
||||||
foreground = colors[2],
|
foreground = colors[0],
|
||||||
background = colors[5]
|
background = colors[7]
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
text="Updates",
|
text="Updates",
|
||||||
padding = 5,
|
padding = 6,
|
||||||
foreground=colors[2],
|
foreground=colors[0],
|
||||||
background=colors[5]
|
background=colors[7]
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.Image(
|
||||||
text='',
|
scale = True,
|
||||||
background = colors[5],
|
filename = "~/.config/qtile/bar05.png",
|
||||||
foreground = colors[7],
|
background = colors[8]
|
||||||
padding=0,
|
|
||||||
fontsize=37
|
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
font="Ubuntu Bold",
|
font="Ubuntu Bold",
|
||||||
text=" ♫",
|
text=" ♫",
|
||||||
padding = 5,
|
padding = 6,
|
||||||
foreground=colors[2],
|
foreground=colors[0],
|
||||||
background=colors[7],
|
background=colors[8],
|
||||||
fontsize=14
|
fontsize=14
|
||||||
),
|
),
|
||||||
widget.Cmus(
|
widget.Cmus(
|
||||||
max_chars = 40,
|
max_chars = 40,
|
||||||
update_interval = 0.5,
|
update_interval = 0.5,
|
||||||
background=colors[7],
|
foreground=colors[0],
|
||||||
play_color = colors[2],
|
background = colors[8]
|
||||||
noplay_color = colors[2]
|
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.Image(
|
||||||
text='',
|
scale = True,
|
||||||
background = colors[7],
|
filename = "~/.config/qtile/bar07.png",
|
||||||
foreground = colors[5],
|
background = colors[9]
|
||||||
padding=0,
|
|
||||||
fontsize=37
|
|
||||||
),
|
),
|
||||||
widget.TextBox(
|
widget.TextBox(
|
||||||
font="Ubuntu Bold",
|
font="Ubuntu Bold",
|
||||||
text=" 🕒",
|
text=" 🕒",
|
||||||
foreground=colors[2],
|
foreground=colors[2],
|
||||||
background=colors[5],
|
background=colors[9],
|
||||||
padding = 5,
|
padding = 6,
|
||||||
fontsize=14
|
fontsize=14
|
||||||
),
|
),
|
||||||
widget.Clock(
|
widget.Clock(
|
||||||
foreground = colors[2],
|
foreground = colors[2],
|
||||||
background = colors[5],
|
background = colors[9],
|
||||||
format="%A, %B %d - %H:%M"
|
format="%A, %B %d - %H:%M"
|
||||||
),
|
),
|
||||||
widget.Sep(
|
widget.Sep(
|
||||||
linewidth = 0,
|
linewidth = 0,
|
||||||
padding = 5,
|
padding = 6,
|
||||||
foreground = colors[0],
|
foreground = colors[0],
|
||||||
background = colors[5]
|
background = colors[9]
|
||||||
),
|
|
||||||
widget.Systray(
|
|
||||||
background=colors[0],
|
|
||||||
padding = 5
|
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
return widgets_list
|
return widgets_list
|
||||||
@@ -510,9 +551,9 @@ def init_widgets_screen2():
|
|||||||
return widgets_screen2 # Monitor 2 will display all widgets in widgets_list
|
return widgets_screen2 # Monitor 2 will display all widgets in widgets_list
|
||||||
|
|
||||||
def init_screens():
|
def init_screens():
|
||||||
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), opacity=0.95, size=20)),
|
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), opacity=0.95, size=25)),
|
||||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), opacity=0.95, size=20)),
|
Screen(top=bar.Bar(widgets=init_widgets_screen2(), opacity=0.95, size=25)),
|
||||||
Screen(top=bar.Bar(widgets=init_widgets_screen1(), opacity=0.95, size=20))]
|
Screen(top=bar.Bar(widgets=init_widgets_screen1(), opacity=0.95, size=25))]
|
||||||
|
|
||||||
##### FLOATING WINDOWS #####
|
##### FLOATING WINDOWS #####
|
||||||
|
|
||||||
@@ -534,7 +575,7 @@ def init_mouse():
|
|||||||
|
|
||||||
if __name__ in ["config", "__main__"]:
|
if __name__ in ["config", "__main__"]:
|
||||||
mod = "mod4" # Sets mod key to SUPER/WINDOWS
|
mod = "mod4" # Sets mod key to SUPER/WINDOWS
|
||||||
myTerm = "alacritty" # My terminal of choice
|
myTerm = "st" # My terminal of choice
|
||||||
myConfig = "/home/dt/.config/qtile/config.py" # Qtile config file location
|
myConfig = "/home/dt/.config/qtile/config.py" # Qtile config file location
|
||||||
|
|
||||||
colors = init_colors()
|
colors = init_colors()
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ allow_bold = true
|
|||||||
#audible_bell = false
|
#audible_bell = false
|
||||||
clickable_url = true
|
clickable_url = true
|
||||||
#dynamic_title = true
|
#dynamic_title = true
|
||||||
font = Cascadia Code 13
|
font = UbuntuMono Nerd Font 13
|
||||||
#fullscreen = true
|
#fullscreen = true
|
||||||
geometry = 700x520
|
geometry = 700x520
|
||||||
icon_name = terminal
|
icon_name = terminal
|
||||||
|
|||||||
+23
-19
@@ -1,18 +1,25 @@
|
|||||||
|
" ____ _____
|
||||||
|
" | _ \_ _| Derek Taylor (DistroTube)
|
||||||
" | | | || | http://www.youtube.com/c/DistroTube
|
" | | | || | http://www.youtube.com/c/DistroTube
|
||||||
" | |_| || | http://www.gitlab.com/dwt1/
|
" | |_| || | http://www.gitlab.com/dwt1/
|
||||||
" |____/ |_|
|
" |____/ |_|
|
||||||
|
|
||||||
" vim: filetype=vifm :
|
" vim: filetype=vifm :
|
||||||
" My config file for the vifm terminal file manager.
|
" Sample configuration file for vifm (last updated: 20 July, 2018)
|
||||||
|
" You can edit this file by hand.
|
||||||
|
" The " character at the beginning of a line comments out the line.
|
||||||
|
" Blank lines are ignored.
|
||||||
|
" The basic format for each item is shown with an example.
|
||||||
|
|
||||||
" ------------------------------------------------------------------------------
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
" This is the actual command used to start vi. The default is vim.
|
" This is the actual command used to start vi. The default is vim.
|
||||||
" If you would like to use emacs or emacsclient, you can use them.
|
" If you would like to use another vi clone such as Elvis or Vile
|
||||||
" Since emacs is a GUI app and not a terminal app like vim, append the command
|
" you will need to change this setting.
|
||||||
" with an ampersand (&).
|
|
||||||
|
|
||||||
set vicmd=emacsclient\ -c\ &
|
set vicmd=vim
|
||||||
" set vicmd=vim
|
" set vicmd=elvis\ -G\ termcap
|
||||||
|
" set vicmd=vile
|
||||||
|
|
||||||
" This makes vifm perform file operations on its own instead of relying on
|
" This makes vifm perform file operations on its own instead of relying on
|
||||||
" standard utilities like `cp`. While using `cp` and alike is a more universal
|
" standard utilities like `cp`. While using `cp` and alike is a more universal
|
||||||
@@ -194,8 +201,6 @@ filextype *.djvu
|
|||||||
|
|
||||||
" Audio
|
" Audio
|
||||||
filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus
|
filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus
|
||||||
\ {View using cmus}
|
|
||||||
\ alacritty -e cmus %f &,
|
|
||||||
\ {Play using ffplay}
|
\ {Play using ffplay}
|
||||||
\ ffplay -nodisp -autoexit %c,
|
\ ffplay -nodisp -autoexit %c,
|
||||||
\ {Play using MPlayer}
|
\ {Play using MPlayer}
|
||||||
@@ -223,10 +228,6 @@ fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
|||||||
|
|
||||||
" Web
|
" Web
|
||||||
filextype *.html,*.htm
|
filextype *.html,*.htm
|
||||||
\ {Open with emacs}
|
|
||||||
\ emacsclient -c %c &,
|
|
||||||
\ {Open with vim}
|
|
||||||
\ vim %c &,
|
|
||||||
\ {Open with dwb}
|
\ {Open with dwb}
|
||||||
\ dwb %f %i &,
|
\ dwb %f %i &,
|
||||||
\ {Open with firefox}
|
\ {Open with firefox}
|
||||||
@@ -245,7 +246,7 @@ fileviewer *.[1-8] man ./%c | col -b
|
|||||||
" Images
|
" Images
|
||||||
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
|
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
|
||||||
\ {View in sxiv}
|
\ {View in sxiv}
|
||||||
\ sxiv -ia %f &,
|
\ sxiv -ia %c %d &,
|
||||||
\ {View in imv}
|
\ {View in imv}
|
||||||
\ imv -b 1D2330 -d %d &,
|
\ imv -b 1D2330 -d %d &,
|
||||||
\ {View in feh}
|
\ {View in feh}
|
||||||
@@ -256,6 +257,10 @@ fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm
|
|||||||
\ vifmimg draw %px %py %pw %ph %c
|
\ vifmimg draw %px %py %pw %ph %c
|
||||||
\ %pc
|
\ %pc
|
||||||
\ vifmimg clear
|
\ vifmimg clear
|
||||||
|
" Get w3m image previews inside vifm
|
||||||
|
" \ imgt %px %py %pw %ph %c
|
||||||
|
" \ %pc
|
||||||
|
" \ imgc %px %py %pw %ph NOT NEEDED IN XTERM
|
||||||
fileviewer *.gif
|
fileviewer *.gif
|
||||||
\ vifmimg gifpreview %px %py %pw %ph %c
|
\ vifmimg gifpreview %px %py %pw %ph %c
|
||||||
\ %pc
|
\ %pc
|
||||||
@@ -436,12 +441,6 @@ set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,
|
|||||||
|
|
||||||
" Sample mappings
|
" Sample mappings
|
||||||
|
|
||||||
"Open all images in current directory in sxiv thumbnail mode
|
|
||||||
nnoremap sx :!sxiv -t %d & <cr>
|
|
||||||
|
|
||||||
"Open selected images in gimp
|
|
||||||
nnoremap gp :!gimp %f & <cr>
|
|
||||||
|
|
||||||
" Start shell in current directory
|
" Start shell in current directory
|
||||||
nnoremap s :shell<cr>
|
nnoremap s :shell<cr>
|
||||||
|
|
||||||
@@ -452,6 +451,11 @@ nnoremap S :sort<cr>
|
|||||||
nnoremap w :view<cr>
|
nnoremap w :view<cr>
|
||||||
vnoremap w :view<cr>gv
|
vnoremap w :view<cr>gv
|
||||||
|
|
||||||
|
" Open file in existing instance of gvim
|
||||||
|
nnoremap o :!gvim --remote-tab-silent %f<cr>
|
||||||
|
" Open file in new instance of gvim
|
||||||
|
nnoremap O :!gvim %f<cr>
|
||||||
|
|
||||||
" Open file in the background using its default program
|
" Open file in the background using its default program
|
||||||
nnoremap gb :file &<cr>l
|
nnoremap gb :file &<cr>l
|
||||||
|
|
||||||
|
|||||||
@@ -2,24 +2,18 @@
|
|||||||
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
||||||
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
||||||
|
|
||||||
Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=true"
|
Config { font = "xft:Mononoki Nerd Font:pixelsize=14:antialias=true:hinting=true"
|
||||||
, additionalFonts = [ "xft:FontAwesome:pixelsize=13" ]
|
, bgColor = "#292d3e"
|
||||||
, bgColor = "#282A36"
|
, fgColor = "#bbc5ff"
|
||||||
, fgColor = "#B45BCF"
|
|
||||||
, position = Top
|
, position = Top
|
||||||
, lowerOnStart = True
|
, lowerOnStart = True
|
||||||
, hideOnStart = False
|
, hideOnStart = False
|
||||||
, allDesktops = True
|
, allDesktops = True
|
||||||
, persistent = True
|
, persistent = True
|
||||||
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
, commands = [ Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
|
||||||
, commands = [ Run Date "%a, %b %d %Y, %H:%M:%S" "date" 10
|
|
||||||
, Run Network "enp4s0" ["-t", "<icon=net_up_20.xpm/>up <rxbar> <icon=net_down_20.xpm/>dn <txbar>"] 10
|
|
||||||
, Run Cpu ["-t", "<icon=cpu_20.xpm/> cpu <bar> (<total>%)","-H","50","--high","red"] 10
|
|
||||||
, Run Memory ["-t", "<icon=memory-icon_20.xpm/> mem <usedbar> (<usedratio>%)"] 10
|
|
||||||
, Run DiskU [("/", "<icon=harddisk-icon_20.xpm/> hdd <usedbar> (<used>)")] [] 3600
|
|
||||||
, Run UnsafeStdinReader
|
, Run UnsafeStdinReader
|
||||||
]
|
]
|
||||||
, sepChar = "%"
|
, sepChar = "%"
|
||||||
, alignSep = "}{"
|
, alignSep = "}{"
|
||||||
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#FFB86C>%cpu%</fc> <fc=#FF5555>%memory%</fc> <fc=#82AAFF>%disku%</fc> <fc=#c3e88d>%enp4s0%</fc> <icon=calendar-clock-icon_20.xpm/> <fc=#8BE9FD>%date%</fc> "
|
, template = "%UnsafeStdinReader% }{ <fc=#91A0BD> <fc=#fdf6e3>%date%</fc> </fc> "
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,24 +2,18 @@
|
|||||||
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
||||||
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
||||||
|
|
||||||
Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=true"
|
Config { font = "xft:Mononoki Nerd Font:pixelsize=14:antialias=true:hinting=true"
|
||||||
, additionalFonts = [ "xft:FontAwesome:pixelsize=13" ]
|
, bgColor = "#292d3e"
|
||||||
, bgColor = "#282A36"
|
, fgColor = "#bbc5ff"
|
||||||
, fgColor = "#B45BCF"
|
|
||||||
, position = Top
|
, position = Top
|
||||||
, lowerOnStart = True
|
, lowerOnStart = True
|
||||||
, hideOnStart = False
|
, hideOnStart = False
|
||||||
, allDesktops = True
|
, allDesktops = True
|
||||||
, persistent = True
|
, persistent = True
|
||||||
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
, commands = [ Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
|
||||||
, commands = [ Run Date "%a, %b %d %Y, %H:%M:%S" "date" 10
|
|
||||||
, Run Network "enp4s0" ["-t", "<icon=net_up_20.xpm/>up <rxbar> <icon=net_down_20.xpm/>dn <txbar>"] 10
|
|
||||||
, Run Cpu ["-t", "<icon=cpu_20.xpm/> cpu <bar> (<total>%)","-H","50","--high","red"] 10
|
|
||||||
, Run Memory ["-t", "<icon=memory-icon_20.xpm/> mem <usedbar> (<usedratio>%)"] 10
|
|
||||||
, Run DiskU [("/", "<icon=harddisk-icon_20.xpm/> hdd <usedbar> (<used>)")] [] 3600
|
|
||||||
, Run UnsafeStdinReader
|
, Run UnsafeStdinReader
|
||||||
]
|
]
|
||||||
, sepChar = "%"
|
, sepChar = "%"
|
||||||
, alignSep = "}{"
|
, alignSep = "}{"
|
||||||
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#FFB86C>%cpu%</fc> <fc=#FF5555>%memory%</fc> <fc=#82AAFF>%disku%</fc> <fc=#c3e88d>%enp4s0%</fc> <icon=calendar-clock-icon_20.xpm/> <fc=#8BE9FD>%date%</fc> "
|
, template = "%UnsafeStdinReader% }{ <fc=#91A0BD> <fc=#fdf6e3>%date%</fc> </fc> "
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,24 +2,23 @@
|
|||||||
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
||||||
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
||||||
|
|
||||||
Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=true"
|
Config { font = "xft:Mononoki Nerd Font:pixelsize=14:antialias=true:hinting=true"
|
||||||
, additionalFonts = [ "xft:FontAwesome:pixelsize=13" ]
|
, additionalFonts = [ "xft:FontAwesome:pixelsize=13" ]
|
||||||
, bgColor = "#282A36"
|
, bgColor = "#292d3e"
|
||||||
, fgColor = "#B45BCF"
|
, fgColor = "#bbc5ff"
|
||||||
, position = Top
|
, position = Top
|
||||||
, lowerOnStart = True
|
, lowerOnStart = True
|
||||||
, hideOnStart = False
|
, hideOnStart = False
|
||||||
, allDesktops = True
|
, allDesktops = True
|
||||||
, persistent = True
|
, persistent = True
|
||||||
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
, commands = [ Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
|
||||||
, commands = [ Run Date "%a, %b %d %Y, %H:%M:%S" "date" 10
|
, Run Network "enp3s0" ["-t", "net: <rx>kb|<tx>kb"] 10
|
||||||
, Run Network "enp4s0" ["-t", "<icon=net_up_20.xpm/>up <rxbar> <icon=net_down_20.xpm/>dn <txbar>"] 10
|
, Run Cpu ["-t","cpu: <total>%","-H","50","--high","red"] 10
|
||||||
, Run Cpu ["-t", "<icon=cpu_20.xpm/> cpu <bar> (<total>%)","-H","50","--high","red"] 10
|
, Run Memory ["-t","mem: <usedratio>%"] 10
|
||||||
, Run Memory ["-t", "<icon=memory-icon_20.xpm/> mem <usedbar> (<usedratio>%)"] 10
|
, Run DiskU [("/","hdd: <used>/<size>")] [] 3600
|
||||||
, Run DiskU [("/", "<icon=harddisk-icon_20.xpm/> hdd <usedbar> (<used>)")] [] 3600
|
|
||||||
, Run UnsafeStdinReader
|
, Run UnsafeStdinReader
|
||||||
]
|
]
|
||||||
, sepChar = "%"
|
, sepChar = "%"
|
||||||
, alignSep = "}{"
|
, alignSep = "}{"
|
||||||
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#FFB86C>%cpu%</fc> <fc=#FF5555>%memory%</fc> <fc=#82AAFF>%disku%</fc> <fc=#c3e88d>%enp4s0%</fc> <icon=calendar-clock-icon_20.xpm/> <fc=#8BE9FD>%date%</fc> "
|
, template = "%UnsafeStdinReader% }{ <fc=#91A0BD> <fc=#FFE585>%cpu%</fc> : <fc=#F07178>%memory%</fc> : <fc=#82AAFF>%disku%</fc> : <fc=#c3e88d>%enp3s0%</fc> : <fc=#A3F7FF>%date%</fc> </fc> "
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-3
@@ -5,12 +5,17 @@ urxvtd -q -o -f &
|
|||||||
|
|
||||||
dte(){
|
dte(){
|
||||||
dte="$(date +"%A, %B %d | 🕒 %l:%M%p")"
|
dte="$(date +"%A, %B %d | 🕒 %l:%M%p")"
|
||||||
echo -e "$dte"
|
echo -e "📅 $dte"
|
||||||
|
}
|
||||||
|
|
||||||
|
upd(){
|
||||||
|
upd=`checkupdates | wc -l`
|
||||||
|
echo -e "⟳ $upd updates"
|
||||||
}
|
}
|
||||||
|
|
||||||
mem(){
|
mem(){
|
||||||
mem=`free | awk '/Mem/ {printf "%d MiB/%d MiB\n", $3 / 1024.0, $2 / 1024.0 }'`
|
mem=`free | awk '/Mem/ {printf "%d MiB/%d MiB\n", $3 / 1024.0, $2 / 1024.0 }'`
|
||||||
echo -e "🖪 $mem"
|
echo -e "🖪 $mem"
|
||||||
}
|
}
|
||||||
|
|
||||||
cpu(){
|
cpu(){
|
||||||
@@ -20,7 +25,7 @@ cpu(){
|
|||||||
read cpu a b c idle rest < /proc/stat
|
read cpu a b c idle rest < /proc/stat
|
||||||
total=$((a+b+c+idle))
|
total=$((a+b+c+idle))
|
||||||
cpu=$((100*( (total-prevtotal) - (idle-previdle) ) / (total-prevtotal) ))
|
cpu=$((100*( (total-prevtotal) - (idle-previdle) ) / (total-prevtotal) ))
|
||||||
echo -e "💻 $cpu% cpu"
|
echo -e "💻 $cpu% cpu"
|
||||||
}
|
}
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
|||||||
+40
-28
@@ -31,42 +31,54 @@ bindsym $mod+n border normal
|
|||||||
# is used in the bar {} block below.
|
# is used in the bar {} block below.
|
||||||
font xft:URWGothic-Book 11
|
font xft:URWGothic-Book 11
|
||||||
|
|
||||||
# USE MOUSE + MODKEY TO DRAG FLOATING WINDOWS
|
# Use Mouse+$mod to drag floating windows
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
# OPENING A TERMINAL
|
# start a $myTerm
|
||||||
set $myTerm st
|
set $myTerm st
|
||||||
bindsym $mod+Return exec $myTerm
|
bindsym $mod+Return exec $myTerm
|
||||||
|
|
||||||
# KILL FOCUSED WINDOW
|
# kill focused window
|
||||||
bindsym $mod+Shift+c kill
|
bindsym $mod+Shift+c kill
|
||||||
|
|
||||||
# MY PROGRAM LAUNCHER (DMENU)
|
# start program launcher
|
||||||
bindsym $mod+Shift+Return exec dmenu_run -i -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -fn 'UbuntuMono Nerd Font:bold:pixelsize=14'
|
bindsym $mod+KP_Insert exec --no-startup-id rofi -show run
|
||||||
|
|
||||||
# MY DMENU SCRIPTS
|
# launch categorized menu
|
||||||
bindsym Mod1+Control+e exec ./.dmenu/dmenu-edit-configs.sh
|
bindsym $mod+' exec --no-startup-id morc_menu
|
||||||
bindsym Mod1+Control+m exec ./.dmenu/dmenu-sysmon.sh
|
|
||||||
bindsym Mod1+Control+p exec passmenu
|
|
||||||
bindsym Mod1+Control+r exec ./.dmenu/dmenu-reddio.sh
|
|
||||||
bindsym Mod1+Control+s exec ./.dmenu/dmenu-surfraw.sh
|
|
||||||
bindsym Mod1+Control+t exec ./.dmenu/dmenu-trading.sh
|
|
||||||
|
|
||||||
# MY APPLICATIONS
|
# Apps Launched with <SUPER> + <KEYPAD 1-9>
|
||||||
bindsym $mod+Mod1+a exec $myTerm -e ncpamixer
|
bindsym $mod+KP_End exec $myTerm -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com
|
||||||
bindsym $mod+Mod1+b exec surf www.youtube.com/c/DistroTube
|
bindsym $mod+KP_Down exec $myTerm -e sh ./scripts/googler-script.sh
|
||||||
bindsym $mod+Mod1+c exec $myTerm -e cmus
|
bindsym $mod+KP_Page_Down exec $myTerm -e newsboat
|
||||||
bindsym $mod+Mod1+e exec $myTerm -e neomutt
|
bindsym $mod+KP_Left exec $myTerm -e rtv
|
||||||
bindsym $mod+Mod1+f exec $myTerm -e sh ./.config/vifm/scripts/vifmrun
|
bindsym $mod+KP_Begin exec $myTerm -e neomutt
|
||||||
bindsym $mod+Mod1+i exec $myTerm -e irssi
|
bindsym $mod+KP_Right exec $myTerm -e twitch-curses
|
||||||
bindsym $mod+Mod1+j exec $myTerm -e joplin
|
bindsym $mod+KP_Home exec $myTerm -e sh ./scripts/haxor-news.sh
|
||||||
bindsym $mod+Mod1+l exec $myTerm -e lynx --cfg=~/.lynx/lynx.cfg --lss=~/.lynx/lynx.lss -vikeys gopher://distro.tube
|
bindsym $mod+KP_Up exec $myTerm -e toot curses
|
||||||
bindsym $mod+Mod1+m exec $myTerm -e sh ./scripts/toot.sh
|
bindsym $mod+KP_Page_Up exec $myTerm -e sh ./scripts/tig-script.sh
|
||||||
bindsym $mod+Mod1+n exec $myTerm -e newsboat
|
|
||||||
bindsym $mod+Mod1+p exec $myTerm -e pianobar
|
# Apps Launched with <SUPER> + <SHIFT> + <KEYPAD 1-9>
|
||||||
bindsym $mod+Mod1+r exec $myTerm -e rtv
|
bindsym $mod+Shift+KP_1 exec $myTerm -e vifm
|
||||||
bindsym $mod+Mod1+w exec $myTerm -e wopr report.xml
|
bindsym $mod+Shift+KP_2 exec $myTerm -e joplin
|
||||||
bindsym $mod+Mod1+y exec $myTerm -e youtube-viewer
|
bindsym $mod+Shift+KP_3 exec $myTerm -e cmus
|
||||||
|
bindsym $mod+Shift+KP_4 exec $myTerm -e irssi
|
||||||
|
bindsym $mod+Shift+KP_5 exec $myTerm -e rtorrent
|
||||||
|
bindsym $mod+Shift+KP_6 exec $myTerm -e youtube-viewer
|
||||||
|
bindsym $mod+Shift+KP_7 exec $myTerm -e ncpamixer
|
||||||
|
bindsym $mod+Shift+KP_8 exec $myTerm -e calcurse
|
||||||
|
bindsym $mod+Shift+KP_9 exec $myTerm -e vim /home/dt/.i3/config
|
||||||
|
|
||||||
|
# Apps Launched with <SUPER> + <CTRL> + <KEYPAD 1-9>
|
||||||
|
bindsym $mod+Ctrl+KP_End exec $myTerm -e htop
|
||||||
|
bindsym $mod+Ctrl+KP_Down exec $myTerm -e gtop
|
||||||
|
bindsym $mod+Ctrl+KP_Page_Down exec $myTerm -e nmon
|
||||||
|
bindsym $mod+Ctrl+KP_Left exec $myTerm -e glances
|
||||||
|
bindsym $mod+Ctrl+KP_Begin exec $myTerm -e s-tui
|
||||||
|
bindsym $mod+Ctrl+KP_Right exec $myTerm -e httping -KY --draw-phase localhost
|
||||||
|
bindsym $mod+Ctrl+KP_Home exec $myTerm -e cmatrix -C cyan
|
||||||
|
bindsym $mod+Ctrl+KP_Up exec $myTerm -e pianobar
|
||||||
|
bindsym $mod+Ctrl+KP_Page_Up exec $myTerm -e wopr report.xml
|
||||||
|
|
||||||
################################################################################################
|
################################################################################################
|
||||||
## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
|
## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
|
||||||
@@ -147,7 +159,7 @@ bindsym $mod+space focus mode_toggle
|
|||||||
|
|
||||||
# toggle sticky
|
# toggle sticky
|
||||||
# bindsym $mod+Shift+s sticky toggle
|
# bindsym $mod+Shift+s sticky toggle
|
||||||
bindsym $mod+Shift+d exec ~/.i3/i3-display-swap.sh
|
bindsym $mod+Shift+s exec ~/.i3/i3-display-swap.sh
|
||||||
|
|
||||||
# focus the parent container
|
# focus the parent container
|
||||||
bindsym $mod+a focus parent
|
bindsym $mod+a focus parent
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB |
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Vundle For Managing Plugins
|
" => Vundle For Managing Plugins
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
@@ -22,7 +23,7 @@ Plugin 'severin-lemaignan/vim-minimap'
|
|||||||
Plugin 'vimwiki/vimwiki' " Vim wiki
|
Plugin 'vimwiki/vimwiki' " Vim wiki
|
||||||
Plugin 'ap/vim-css-color' " Color previews for CSS
|
Plugin 'ap/vim-css-color' " Color previews for CSS
|
||||||
Plugin 'tpope/vim-surround' " Change surrounding marks
|
Plugin 'tpope/vim-surround' " Change surrounding marks
|
||||||
Plugin 'hsitz/VimOrganizer' " Org Mode
|
"Plugin 'klen/python-mode' " Python Mode
|
||||||
|
|
||||||
call vundle#end() " required, all plugins must appear before this line.
|
call vundle#end() " required, all plugins must appear before this line.
|
||||||
|
|
||||||
@@ -69,7 +70,7 @@ set laststatus=2
|
|||||||
" Use 256 colours (Use this setting only if your terminal supports 256 colours)
|
" Use 256 colours (Use this setting only if your terminal supports 256 colours)
|
||||||
" set t_Co=256
|
" set t_Co=256
|
||||||
|
|
||||||
syntax enable
|
syntax on
|
||||||
set relativenumber
|
set relativenumber
|
||||||
let g:rehash256 = 1
|
let g:rehash256 = 1
|
||||||
let g:Powerline_symbols='unicode'
|
let g:Powerline_symbols='unicode'
|
||||||
@@ -107,11 +108,13 @@ let NERDTreeShowLineNumbers=1
|
|||||||
let NERDTreeShowHidden=1
|
let NERDTreeShowHidden=1
|
||||||
let NERDTreeMinimalUI = 1
|
let NERDTreeMinimalUI = 1
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Colors
|
" => Colors
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
colo default
|
hi LineNr ctermfg=242
|
||||||
|
hi CursorLineNr ctermfg=15
|
||||||
|
hi VertSplit ctermfg=8 ctermbg=0
|
||||||
|
hi Statement ctermfg=3
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Mouse Scrolling
|
" => Mouse Scrolling
|
||||||
@@ -134,16 +137,4 @@ let g:minimap_highlight='Visual'
|
|||||||
let g:python_highlight_all = 1
|
let g:python_highlight_all = 1
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
|
||||||
au BufEnter *.org call org#SetOrgFileType()
|
|
||||||
|
|
||||||
set guioptions-=m "remove menu bar
|
|
||||||
set guioptions-=T "remove toolbar
|
|
||||||
set guioptions-=r "remove right-hand scroll bar
|
|
||||||
set guioptions-=L "remove left-hand scroll bar
|
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
" => Fixes mouse issues using Alacritty terminal
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
||||||
set ttymouse=sgr
|
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@ The MODKEY is set to the Super key (aka the Windows key).
|
|||||||
|
|
||||||
| Keybinding | Action |
|
| Keybinding | Action |
|
||||||
| :--- | :--- |
|
| :--- | :--- |
|
||||||
| `ALT + CTRL + Enter` | opens run launcher (dmenu is the run launcher but can be easily changed) |
|
| `MODKEY + Keypad Insert` | opens run launcher (dmenu is the run launcher but can be easily changed) |
|
||||||
| `MODKEY + Enter` | opens terminal (st is the terminal but can be easily changed) |
|
| `MODKEY + Enter` | opens terminal (st is the terminal but can be easily changed) |
|
||||||
| `MODKEY + SHIFT + c` | closes window with focus |
|
| `MODKEY + SHIFT + c` | closes window with focus |
|
||||||
| `MODKEY + SHIFT + q` | quits xmonad |
|
| `MODKEY + SHIFT + q` | quits xmonad |
|
||||||
|
|||||||
+59
-98
@@ -16,7 +16,7 @@ import qualified XMonad.StackSet as W
|
|||||||
|
|
||||||
-- Utilities
|
-- Utilities
|
||||||
import XMonad.Util.Loggers
|
import XMonad.Util.Loggers
|
||||||
import XMonad.Util.EZConfig (additionalKeysP, additionalMouseBindings)
|
import XMonad.Util.EZConfig (additionalKeysP, additionalMouseBindings)
|
||||||
import XMonad.Util.NamedScratchpad
|
import XMonad.Util.NamedScratchpad
|
||||||
import XMonad.Util.Run (safeSpawn, unsafeSpawn, runInTerm, spawnPipe)
|
import XMonad.Util.Run (safeSpawn, unsafeSpawn, runInTerm, spawnPipe)
|
||||||
import XMonad.Util.SpawnOnce
|
import XMonad.Util.SpawnOnce
|
||||||
@@ -37,7 +37,7 @@ import XMonad.Actions.CopyWindow (kill1, copyToAll, killAllOtherCopies, runOrCop
|
|||||||
import XMonad.Actions.WindowGo (runOrRaise, raiseMaybe)
|
import XMonad.Actions.WindowGo (runOrRaise, raiseMaybe)
|
||||||
import XMonad.Actions.WithAll (sinkAll, killAll)
|
import XMonad.Actions.WithAll (sinkAll, killAll)
|
||||||
import XMonad.Actions.CycleWS (moveTo, shiftTo, WSType(..), shiftNextScreen, shiftPrevScreen)
|
import XMonad.Actions.CycleWS (moveTo, shiftTo, WSType(..), shiftNextScreen, shiftPrevScreen)
|
||||||
import XMonad.Actions.GridSelect
|
import XMonad.Actions.GridSelect (GSConfig(..), goToSelected, bringSelected, colorRangeFromClassName, buildDefaultGSConfig)
|
||||||
import XMonad.Actions.DynamicWorkspaces (addWorkspacePrompt, removeEmptyWorkspace)
|
import XMonad.Actions.DynamicWorkspaces (addWorkspacePrompt, removeEmptyWorkspace)
|
||||||
import XMonad.Actions.MouseResize
|
import XMonad.Actions.MouseResize
|
||||||
import qualified XMonad.Actions.ConstrainedResize as Sqr
|
import qualified XMonad.Actions.ConstrainedResize as Sqr
|
||||||
@@ -70,19 +70,16 @@ import XMonad.Prompt (defaultXPConfig, XPConfig(..), XPPosition(Top), Direction1
|
|||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
---CONFIG
|
---CONFIG
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
myFont = "xft:Mononoki Nerd Font:regular:pixelsize=12"
|
|
||||||
myModMask = mod4Mask -- Sets modkey to super/windows key
|
myModMask = mod4Mask -- Sets modkey to super/windows key
|
||||||
myTerminal = "alacritty" -- Sets default terminal
|
myTerminal = "st" -- Sets default terminal
|
||||||
myTextEditor = "emacsclient -c" -- Sets default text editor
|
myTextEditor = "vim" -- Sets default text editor
|
||||||
myBorderWidth = 2 -- Sets border width for windows
|
myBorderWidth = 2 -- Sets border width for windows
|
||||||
windowCount = gets $ Just . show . length . W.integrate' . W.stack . W.workspace . W.current . windowset
|
windowCount = gets $ Just . show . length . W.integrate' . W.stack . W.workspace . W.current . windowset
|
||||||
|
|
||||||
main = do
|
main = do
|
||||||
-- Launching three instances of xmobar on their monitors.
|
xmproc0 <- spawnPipe "xmobar -x 0 /home/dt/.config/xmobar/xmobarrc2" -- xmobar mon 2
|
||||||
xmproc0 <- spawnPipe "xmobar -x 0 /home/dt/.config/xmobar/xmobarrc0"
|
xmproc1 <- spawnPipe "xmobar -x 1 /home/dt/.config/xmobar/xmobarrc1" -- xmobar mon 1
|
||||||
xmproc1 <- spawnPipe "xmobar -x 1 /home/dt/.config/xmobar/xmobarrc2"
|
xmproc2 <- spawnPipe "xmobar -x 2 /home/dt/.config/xmobar/xmobarrc0" -- xmobar mon 0
|
||||||
xmproc2 <- spawnPipe "xmobar -x 2 /home/dt/.config/xmobar/xmobarrc1"
|
|
||||||
-- the xmonad, ya know...what the WM is named after!
|
|
||||||
xmonad $ ewmh desktopConfig
|
xmonad $ ewmh desktopConfig
|
||||||
{ manageHook = ( isFullscreen --> doFullFloat ) <+> myManageHook <+> manageHook desktopConfig <+> manageDocks
|
{ manageHook = ( isFullscreen --> doFullFloat ) <+> myManageHook <+> manageHook desktopConfig <+> manageDocks
|
||||||
, logHook = dynamicLogWithPP xmobarPP
|
, logHook = dynamicLogWithPP xmobarPP
|
||||||
@@ -111,81 +108,31 @@ main = do
|
|||||||
---AUTOSTART
|
---AUTOSTART
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
myStartupHook = do
|
myStartupHook = do
|
||||||
--spawnOnce "emacs --daemon &"
|
spawnOnce "urxvtd &"
|
||||||
spawnOnce "nitrogen --restore &"
|
spawnOnce "nitrogen --restore &"
|
||||||
spawnOnce "compton --config /home/dt/.config/compton/compton.conf &"
|
spawnOnce "compton --config /home/dt/.config/compton/compton.conf &"
|
||||||
setWMName "LG3D"
|
setWMName "LG3D"
|
||||||
--spawnOnce "exec /usr/bin/trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 15 --transparent true --alpha 0 --tint 0x292d3e --height 19 &"
|
--spawnOnce "exec /usr/bin/trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 15 --transparent true --alpha 0 --tint 0x292d3e --height 19 &"
|
||||||
--spawnOnce "/home/dt/.xmonad/xmonad.start" -- Sets our wallpaper
|
--spawnOnce "/home/dt/.xmonad/xmonad.start" -- Sets our wallpaper
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
---GRID SELECT
|
|
||||||
------------------------------------------------------------------------
|
|
||||||
|
|
||||||
myColorizer :: Window -> Bool -> X (String, String)
|
|
||||||
myColorizer = colorRangeFromClassName
|
|
||||||
(0x31,0x2e,0x39) -- lowest inactive bg
|
|
||||||
(0x31,0x2e,0x39) -- highest inactive bg
|
|
||||||
(0x61,0x57,0x72) -- active bg
|
|
||||||
(0xc0,0xa7,0x9a) -- inactive fg
|
|
||||||
(0xff,0xff,0xff) -- active fg
|
|
||||||
|
|
||||||
-- gridSelect menu layout
|
|
||||||
mygridConfig colorizer = (buildDefaultGSConfig myColorizer)
|
|
||||||
{ gs_cellheight = 30
|
|
||||||
, gs_cellwidth = 200
|
|
||||||
, gs_cellpadding = 8
|
|
||||||
, gs_originFractX = 0.5
|
|
||||||
, gs_originFractY = 0.5
|
|
||||||
, gs_font = myFont
|
|
||||||
}
|
|
||||||
|
|
||||||
spawnSelected' :: [(String, String)] -> X ()
|
|
||||||
spawnSelected' lst = gridselect conf lst >>= flip whenJust spawn
|
|
||||||
where conf = defaultGSConfig
|
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
---KEYBINDINGS
|
---KEYBINDINGS
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
myKeys =
|
myKeys =
|
||||||
--- Xmonad
|
-- Xmonad
|
||||||
[ ("M-C-r", spawn "xmonad --recompile") -- Recompiles xmonad
|
[ ("M-C-r", spawn "xmonad --recompile") -- Recompiles xmonad
|
||||||
, ("M-S-r", spawn "xmonad --restart") -- Restarts xmonad
|
, ("M-S-r", spawn "xmonad --restart") -- Restarts xmonad
|
||||||
, ("M-S-q", io exitSuccess) -- Quits xmonad
|
, ("M-S-q", io exitSuccess) -- Quits xmonad
|
||||||
|
|
||||||
--- Windows
|
-- Windows
|
||||||
, ("M-S-c", kill1) -- Kill the currently focused client
|
, ("M-S-c", kill1) -- Kill the currently focused client
|
||||||
, ("M-S-a", killAll) -- Kill all the windows on current workspace
|
, ("M-S-a", killAll) -- Kill all the windows on current workspace
|
||||||
|
|
||||||
--- Floating windows
|
-- Floating windows
|
||||||
, ("M-<Delete>", withFocused $ windows . W.sink) -- Push floating window back to tile.
|
, ("M-<Delete>", withFocused $ windows . W.sink) -- Push floating window back to tile.
|
||||||
, ("M-S-<Delete>", sinkAll) -- Push ALL floating windows back to tile.
|
, ("M-S-<Delete>", sinkAll) -- Push ALL floating windows back to tile.
|
||||||
|
|
||||||
|
-- Windows navigation
|
||||||
--- Grid Select
|
|
||||||
, (("M-S-t"), spawnSelected'
|
|
||||||
[ ("Audacity", "audacity")
|
|
||||||
, ("Deadbeef", "deadbeef")
|
|
||||||
, ("Emacs", "emacs")
|
|
||||||
, ("Firefox", "firefox")
|
|
||||||
, ("Geany", "geany")
|
|
||||||
, ("Geary", "geary")
|
|
||||||
, ("Gimp", "gimp")
|
|
||||||
, ("Kdenlive", "kdenlive")
|
|
||||||
, ("LibreOffice Impress", "loimpress")
|
|
||||||
, ("LibreOffice Writer", "lowriter")
|
|
||||||
, ("OBS", "obs")
|
|
||||||
, ("PCManFM", "pcmanfm")
|
|
||||||
, ("Simple Terminal", "st")
|
|
||||||
, ("Steam", "steam")
|
|
||||||
, ("Surf Browser", "surf suckless.org")
|
|
||||||
, ("Xonotic", "xonotic-glx")
|
|
||||||
])
|
|
||||||
|
|
||||||
, ("M-S-g", goToSelected $ mygridConfig myColorizer)
|
|
||||||
, ("M-S-b", bringSelected $ mygridConfig myColorizer)
|
|
||||||
|
|
||||||
--- Windows navigation
|
|
||||||
, ("M-m", windows W.focusMaster) -- Move focus to the master window
|
, ("M-m", windows W.focusMaster) -- Move focus to the master window
|
||||||
, ("M-j", windows W.focusDown) -- Move focus to the next window
|
, ("M-j", windows W.focusDown) -- Move focus to the next window
|
||||||
, ("M-k", windows W.focusUp) -- Move focus to the prev window
|
, ("M-k", windows W.focusUp) -- Move focus to the prev window
|
||||||
@@ -213,10 +160,10 @@ myKeys =
|
|||||||
, ("M-C-<Right>", sendMessage (DecreaseRight 10)) -- Decrease size of focused window right
|
, ("M-C-<Right>", sendMessage (DecreaseRight 10)) -- Decrease size of focused window right
|
||||||
, ("M-C-<Left>", sendMessage (DecreaseLeft 10)) -- Decrease size of focused window left
|
, ("M-C-<Left>", sendMessage (DecreaseLeft 10)) -- Decrease size of focused window left
|
||||||
|
|
||||||
--- Layouts
|
-- Layouts
|
||||||
, ("M-<Space>", sendMessage NextLayout) -- Switch to next layout
|
, ("M-<Space>", sendMessage NextLayout) -- Switch to next layout
|
||||||
, ("M-S-<Space>", sendMessage ToggleStruts) -- Toggles struts
|
, ("M-S-<Space>", sendMessage ToggleStruts) -- Toggles struts
|
||||||
, ("M-S-n", sendMessage $ Toggle NOBORDERS) -- Toggles noborder
|
, ("M-S-b", sendMessage $ Toggle NOBORDERS) -- Toggles noborder
|
||||||
, ("M-S-=", sendMessage (Toggle NBFULL) >> sendMessage ToggleStruts) -- Toggles noborder/full
|
, ("M-S-=", sendMessage (Toggle NBFULL) >> sendMessage ToggleStruts) -- Toggles noborder/full
|
||||||
, ("M-S-f", sendMessage (T.Toggle "float"))
|
, ("M-S-f", sendMessage (T.Toggle "float"))
|
||||||
, ("M-S-x", sendMessage $ Toggle REFLECTX)
|
, ("M-S-x", sendMessage $ Toggle REFLECTX)
|
||||||
@@ -234,45 +181,59 @@ myKeys =
|
|||||||
, ("M-S-;", sendMessage zoomReset)
|
, ("M-S-;", sendMessage zoomReset)
|
||||||
, ("M-;", sendMessage ZoomFullToggle)
|
, ("M-;", sendMessage ZoomFullToggle)
|
||||||
|
|
||||||
--- Workspaces
|
-- Workspaces
|
||||||
, ("M-<KP_Add>", moveTo Next nonNSP) -- Go to next workspace
|
, ("M-<KP_Add>", moveTo Next nonNSP) -- Go to next workspace
|
||||||
, ("M-<KP_Subtract>", moveTo Prev nonNSP) -- Go to previous workspace
|
, ("M-<KP_Subtract>", moveTo Prev nonNSP) -- Go to previous workspace
|
||||||
, ("M-S-<KP_Add>", shiftTo Next nonNSP >> moveTo Next nonNSP) -- Shifts focused window to next workspace
|
, ("M-S-<KP_Add>", shiftTo Next nonNSP >> moveTo Next nonNSP) -- Shifts focused window to next workspace
|
||||||
, ("M-S-<KP_Subtract>", shiftTo Prev nonNSP >> moveTo Prev nonNSP) -- Shifts focused window to previous workspace
|
, ("M-S-<KP_Subtract>", shiftTo Prev nonNSP >> moveTo Prev nonNSP) -- Shifts focused window to previous workspace
|
||||||
|
|
||||||
--- Scratchpads
|
-- Scratchpads
|
||||||
, ("M-C-<Return>", namedScratchpadAction myScratchPads "terminal")
|
, ("M-C-<Return>", namedScratchpadAction myScratchPads "terminal")
|
||||||
, ("M-C-c", namedScratchpadAction myScratchPads "cmus")
|
, ("M-C-c", namedScratchpadAction myScratchPads "cmus")
|
||||||
|
|
||||||
--- Open Terminal
|
-- Main Run Apps
|
||||||
, ("M-<Return>", spawn myTerminal)
|
, ("M-<Return>", spawn myTerminal)
|
||||||
|
, ("M-<KP_Insert>", spawn "dmenu_run -fn 'UbuntuMono Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'")
|
||||||
|
|
||||||
|
-- Command Line Apps (MOD + KEYPAD 1-9)
|
||||||
|
, ("M-<KP_End>", spawn (myTerminal ++ " -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com")) -- Keypad 1
|
||||||
|
, ("M-<KP_Down>", spawn (myTerminal ++ " -e sh ./scripts/googler-script.sh")) -- Keypad 2
|
||||||
|
, ("M-<KP_Page_Down>", spawn (myTerminal ++ " -e newsboat")) -- Keypad 3
|
||||||
|
, ("M-<KP_Left>", spawn (myTerminal ++ " -e rtv")) -- Keypad 4
|
||||||
|
, ("M-<KP_Begin>", spawn (myTerminal ++ " -e neomutt")) -- Keypad 5
|
||||||
|
, ("M-<KP_Right>", spawn (myTerminal ++ " -e twitch-curses")) -- Keypad 6
|
||||||
|
, ("M-<KP_Home>", spawn (myTerminal ++ " -e sh ./scripts/haxor-news.sh")) -- Keypad 7
|
||||||
|
, ("M-<KP_Up>", spawn (myTerminal ++ " -e toot curses")) -- Keypad 8
|
||||||
|
, ("M-<KP_Page_Up>", spawn (myTerminal ++ " -e sh ./scripts/tig-script.sh")) -- Keypad 9
|
||||||
|
|
||||||
|
-- Command Line Apps (MOD + SHIFT + KEYPAD 1-9)
|
||||||
|
, ("M-S-<KP_End>", spawn (myTerminal ++ " -e ~/.config/vifm/scripts/vifmrun")) -- Keypad 1
|
||||||
|
, ("M-S-<KP_Down>", spawn (myTerminal ++ " -e joplin")) -- Keypad 2
|
||||||
|
, ("M-S-<KP_Page_Down>", spawn (myTerminal ++ " -e cmus")) -- Keypad 3
|
||||||
|
, ("M-S-<KP_Left>", spawn (myTerminal ++ " -e irssi")) -- Keypad 4
|
||||||
|
, ("M-S-<KP_Begin>", spawn (myTerminal ++ " -e rtorrent")) -- Keypad 5
|
||||||
|
, ("M-S-<KP_Right>", spawn (myTerminal ++ " -e youtube-viewer")) -- Keypad 6
|
||||||
|
, ("M-S-<KP_Home>", spawn (myTerminal ++ " -e ncpamixer")) -- Keypad 7
|
||||||
|
, ("M-S-<KP_Up>", spawn (myTerminal ++ " -e calcurse")) -- Keypad 8
|
||||||
|
, ("M-S-<KP_Page_Up>", spawn (myTerminal ++ " -e vim ~/.xmonad/xmonad.hs")) -- Keypad 9
|
||||||
|
|
||||||
|
-- Command Line Apps (MOD + CTRL + KEYPAD 1-9)
|
||||||
|
, ("M-C-<KP_End>", spawn (myTerminal ++ " -e htop")) -- Keypad 1
|
||||||
|
, ("M-C-<KP_Down>", spawn (myTerminal ++ " -e gtop")) -- Keypad 2
|
||||||
|
, ("M-C-<KP_Page_Down>", spawn (myTerminal ++ " -e nmon")) -- Keypad 3
|
||||||
|
, ("M-C-<KP_Left>", spawn (myTerminal ++ " -e glances")) -- Keypad 4
|
||||||
|
, ("M-C-<KP_Begin>", spawn (myTerminal ++ " -e s-tui")) -- Keypad 5
|
||||||
|
, ("M-C-<KP_Right>", spawn (myTerminal ++ " -e httping -KY --draw-phase localhost")) -- Keypad 6
|
||||||
|
, ("M-C-<KP_Home>", spawn (myTerminal ++ " -e cmatrix -C cyan")) -- Keypad 7
|
||||||
|
, ("M-C-<KP_Up>", spawn (myTerminal ++ " -e pianobar")) -- Keypad 8
|
||||||
|
, ("M-C-<KP_Page_Up>", spawn (myTerminal ++ " -e wopr report.xml")) -- Keypad 9
|
||||||
|
|
||||||
|
-- GUI Apps
|
||||||
|
, ("M-b", spawn "surf http://www.youtube.com/c/DistroTube/")
|
||||||
|
, ("M-f", spawn "pcmanfm")
|
||||||
|
, ("M-g", runOrRaise "geany" (resource =? "geany"))
|
||||||
|
|
||||||
--- Dmenu Scripts (Alt+Ctr+Key)
|
-- Multimedia Keys
|
||||||
, ("M1-C-<Return>", spawn "dmenu_run -fn 'UbuntuMono Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'")
|
|
||||||
, ("M1-C-e", spawn "./.dmenu/dmenu-edit-configs.sh")
|
|
||||||
, ("M1-C-h", spawn "./.dmenu/dmenu-hugo.sh")
|
|
||||||
, ("M1-C-m", spawn "./.dmenu/dmenu-sysmon.sh")
|
|
||||||
, ("M1-C-p", spawn "passmenu")
|
|
||||||
, ("M1-C-s", spawn "./.dmenu/dmenu-surfraw.sh")
|
|
||||||
, ("M1-C-/", spawn "./.dmenu/dmenu-scrot.sh")
|
|
||||||
|
|
||||||
--- My Applications (Super+Alt+Key)
|
|
||||||
, ("M-M1-a", spawn (myTerminal ++ " -e ncpamixer"))
|
|
||||||
, ("M-M1-b", spawn ("surf www.youtube.com/c/DistroTube/"))
|
|
||||||
, ("M-M1-c", spawn (myTerminal ++ " -e cmus"))
|
|
||||||
, ("M-M1-e", spawn (myTerminal ++ " -e neomutt"))
|
|
||||||
, ("M-M1-f", spawn (myTerminal ++ " -e sh ./.config/vifm/scripts/vifmrun"))
|
|
||||||
, ("M-M1-i", spawn (myTerminal ++ " -e irssi"))
|
|
||||||
, ("M-M1-j", spawn (myTerminal ++ " -e joplin"))
|
|
||||||
, ("M-M1-l", spawn (myTerminal ++ " -e lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss gopher://distro.tube"))
|
|
||||||
, ("M-M1-m", spawn (myTerminal ++ " -e toot curses"))
|
|
||||||
, ("M-M1-n", spawn (myTerminal ++ " -e newsboat"))
|
|
||||||
, ("M-M1-p", spawn (myTerminal ++ " -e pianobar"))
|
|
||||||
, ("M-M1-r", spawn (myTerminal ++ " -e rtv"))
|
|
||||||
, ("M-M1-w", spawn (myTerminal ++ " -e wopr report.xml"))
|
|
||||||
, ("M-M1-y", spawn (myTerminal ++ " -e youtube-viewer"))
|
|
||||||
|
|
||||||
--- Multimedia Keys
|
|
||||||
, ("<XF86AudioPlay>", spawn "cmus toggle")
|
, ("<XF86AudioPlay>", spawn "cmus toggle")
|
||||||
, ("<XF86AudioPrev>", spawn "cmus prev")
|
, ("<XF86AudioPrev>", spawn "cmus prev")
|
||||||
, ("<XF86AudioNext>", spawn "cmus next")
|
, ("<XF86AudioNext>", spawn "cmus next")
|
||||||
@@ -299,10 +260,10 @@ xmobarEscape = concatMap doubleLts
|
|||||||
|
|
||||||
myWorkspaces :: [String]
|
myWorkspaces :: [String]
|
||||||
myWorkspaces = clickable . (map xmobarEscape)
|
myWorkspaces = clickable . (map xmobarEscape)
|
||||||
$ ["dev", "www", "sys", "doc", "vbox", "chat", "mus", "vid", "gfx"]
|
$ ["dev", "www", "sys", "doc", "vbox", "chat", "media", "gfx"]
|
||||||
where
|
where
|
||||||
clickable l = [ "<action=xdotool key super+" ++ show (n) ++ ">" ++ ws ++ "</action>" |
|
clickable l = [ "<action=xdotool key super+" ++ show (n) ++ ">" ++ ws ++ "</action>" |
|
||||||
(i,ws) <- zip [1..9] l,
|
(i,ws) <- zip [1..8] l,
|
||||||
let n = i ]
|
let n = i ]
|
||||||
myManageHook :: Query (Data.Monoid.Endo WindowSet)
|
myManageHook :: Query (Data.Monoid.Endo WindowSet)
|
||||||
myManageHook = composeAll
|
myManageHook = composeAll
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
# ____ _____
|
|
||||||
# | _ \_ _| Derek Taylor (DistroTube)
|
|
||||||
# | | | || | http://www.youtube.com/c/DistroTube
|
|
||||||
# | |_| || | http://www.gitlab.com/dwt1/
|
|
||||||
# |____/ |_|
|
|
||||||
|
|
||||||
export TERM="st-256color"
|
export TERM="st-256color"
|
||||||
|
|
||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
## export PATH=$HOME/bin:/usr/local/bin:$PATH
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
# Path to your oh-my-zsh installation.
|
||||||
ZSH=/usr/share/oh-my-zsh/
|
ZSH=/usr/share/oh-my-zsh/
|
||||||
@@ -17,6 +11,7 @@ ZSH=/usr/share/oh-my-zsh/
|
|||||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
||||||
# ZSH_THEME="powerlevel9k"
|
# ZSH_THEME="powerlevel9k"
|
||||||
|
POWERLEVEL9K_COLOR_SCHEME='dark'
|
||||||
POWERLEVEL9K_CONTEXT_DEFAULT_BACKGROUND='5'
|
POWERLEVEL9K_CONTEXT_DEFAULT_BACKGROUND='5'
|
||||||
POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND='0'
|
POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND='0'
|
||||||
POWERLEVEL9K_STATUS_OK_BACKGROUND='8'
|
POWERLEVEL9K_STATUS_OK_BACKGROUND='8'
|
||||||
@@ -26,9 +21,6 @@ POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='10'
|
|||||||
POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS='0.05'
|
POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS='0.05'
|
||||||
POWERLEVEL9K_VI_INSERT_MODE_STRING='INSERT'
|
POWERLEVEL9K_VI_INSERT_MODE_STRING='INSERT'
|
||||||
POWERLEVEL9K_VI_COMMAND_MODE_STRING='NORMAL'
|
POWERLEVEL9K_VI_COMMAND_MODE_STRING='NORMAL'
|
||||||
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status history time)
|
|
||||||
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
|
|
||||||
ZLE_RPROMPT_INDENT=0
|
|
||||||
|
|
||||||
# Set list of themes to pick from when loading at random
|
# Set list of themes to pick from when loading at random
|
||||||
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||||
@@ -98,7 +90,7 @@ plugins=(
|
|||||||
if [[ -n $SSH_CONNECTION ]]; then
|
if [[ -n $SSH_CONNECTION ]]; then
|
||||||
export EDITOR='vim'
|
export EDITOR='vim'
|
||||||
else
|
else
|
||||||
export EDITOR='vim'
|
export EDITOR='mvim'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Compilation flags
|
# Compilation flags
|
||||||
@@ -140,19 +132,7 @@ alias cp="cp -i" # confirm before overwriting something
|
|||||||
alias df='df -h' # human-readable sizes
|
alias df='df -h' # human-readable sizes
|
||||||
alias grep='grep --colour=auto'
|
alias grep='grep --colour=auto'
|
||||||
|
|
||||||
#alias lynx='lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss -vikeys'
|
|
||||||
|
|
||||||
zstyle ':completion:*' completer _expand_alias _complete _ignored
|
zstyle ':completion:*' completer _expand_alias _complete _ignored
|
||||||
alias tb="nc termbin.com 9999"
|
alias tb="nc termbin.com 9999"
|
||||||
|
|
||||||
# alt+<- | alt+->
|
bindkey -v
|
||||||
bindkey "^[f" forward-word # deletes everything right of the prompt.
|
|
||||||
bindkey "^[b" backward-word # deletes characters one at a time, backwards.
|
|
||||||
|
|
||||||
# bindkey -v
|
|
||||||
bindkey '^R' history-incremental-search-backward
|
|
||||||
|
|
||||||
export MANPAGER="/bin/sh -c \"col -b | vim --not-a-term -c 'set ft=man ts=8 nomod nolist noma' -\""
|
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
||||||
|
|
||||||
source /home/dt/.config/broot/launcher/bash/br
|
|
||||||
|
|||||||
@@ -17,4 +17,4 @@ Personally, I use the git bare repository method for managing my dotfiles: https
|
|||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
The files and scripts in this repository are licensed under the MIT License, which is a very permissive license allowing you to use, modify, copy, distribute, sell, give away, etc. the software. In other words, do what you want with it. The only requirement with the MIT License is that the license and copyright notice must be provided with the software.
|
The files and scripts in this repository are licensed under the MIT License, which is a very permissive license allowing you to use, modify, copy, distribute, sell, give away, etc. the software. In other words, do what you want with it. The only requirement with the MIT License is that the license and copyright notice must be provided with the software.
|
||||||
|
|||||||
+2
-2
@@ -9,8 +9,8 @@ static const char *fonts[] = {
|
|||||||
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
|
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
|
||||||
static const char *colors[SchemeLast][2] = {
|
static const char *colors[SchemeLast][2] = {
|
||||||
/* fg bg */
|
/* fg bg */
|
||||||
[SchemeNorm] = { "#CAA7FA", "#282a36" },
|
[SchemeNorm] = { "#bbc5ff", "#292d3e" },
|
||||||
[SchemeSel] = { "#282a36", "#ff79c6" },
|
[SchemeSel] = { "#292d3e", "#82aaff" },
|
||||||
[SchemeOut] = { "#000000", "#00ffff" },
|
[SchemeOut] = { "#000000", "#00ffff" },
|
||||||
};
|
};
|
||||||
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
||||||
|
|||||||
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
-1
@@ -9,7 +9,7 @@ The MODKEY is set to the `Super` key (aka the `Windows` key)
|
|||||||
|
|
||||||
| Keybinding | Action |
|
| Keybinding | Action |
|
||||||
| :--- | :--- |
|
| :--- | :--- |
|
||||||
| `ALT + CTRL + Enter` | opens run launcher (dmenu is the run launcher but can be easily changed) |
|
| `MODKEY + Keypad Insert` | opens run launcher (dmenu is the run launcher but can be easily changed) |
|
||||||
| `MODKEY + Enter` | opens terminal (st is the terminal but can be easily changed) |
|
| `MODKEY + Enter` | opens terminal (st is the terminal but can be easily changed) |
|
||||||
| `MODKEY + SHIFT + c` | closes window with focus |
|
| `MODKEY + SHIFT + c` | closes window with focus |
|
||||||
| `MODKEY + SHIFT + q` | quits dwm |
|
| `MODKEY + SHIFT + q` | quits dwm |
|
||||||
|
|||||||
+36
-16
@@ -16,8 +16,8 @@ static const int showbar = 1; /* 0 means no bar */
|
|||||||
static const int topbar = 1; /* 0 means bottom bar */
|
static const int topbar = 1; /* 0 means bottom bar */
|
||||||
static const int horizpadbar = 6; /* horizontal padding for statusbar */
|
static const int horizpadbar = 6; /* horizontal padding for statusbar */
|
||||||
static const int vertpadbar = 7; /* vertical padding for statusbar */
|
static const int vertpadbar = 7; /* vertical padding for statusbar */
|
||||||
static const char *fonts[] = { "Mononoki Nerd Font:size=10" };
|
static const char *fonts[] = { "UbuntuMono Nerd Font:size=10" };
|
||||||
static const char dmenufont[] = "Mononoki Nerd Font:size=10";
|
static const char dmenufont[] = "UbuntuMono Nerd Font:size=10";
|
||||||
static const char col_gray1[] = "#292d3e";
|
static const char col_gray1[] = "#292d3e";
|
||||||
static const char col_gray2[] = "#000000"; /* border color unfocused windows */
|
static const char col_gray2[] = "#000000"; /* border color unfocused windows */
|
||||||
static const char col_gray3[] = "#96b5b4";
|
static const char col_gray3[] = "#96b5b4";
|
||||||
@@ -86,7 +86,7 @@ static const char *termcmd[] = { "st", NULL };
|
|||||||
|
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{ Mod1Mask|ControlMask, XK_Return, spawn, {.v = dmenucmd } },
|
{ MODKEY, XK_KP_Insert, spawn, {.v = dmenucmd } },
|
||||||
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
||||||
{ MODKEY, XK_b, togglebar, {0} },
|
{ MODKEY, XK_b, togglebar, {0} },
|
||||||
{ MODKEY|ShiftMask, XK_j, rotatestack, {.i = +1 } },
|
{ MODKEY|ShiftMask, XK_j, rotatestack, {.i = +1 } },
|
||||||
@@ -115,19 +115,39 @@ static Key keys[] = {
|
|||||||
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
|
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
|
||||||
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
||||||
|
|
||||||
/* Dmenu scripts launched with ALT + CTRL + KEY */
|
/* Apps Launched with <SUPER> + <KEYPAD 1-9> */
|
||||||
{ Mod1Mask|ControlMask, XK_e, spawn, CMD("./.dmenu/dmenu-edit-configs.sh") },
|
{ MODKEY, XK_KP_End, spawn, CMD("st -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com") },
|
||||||
{ Mod1Mask|ControlMask, XK_m, spawn, CMD("./.dmenu/dmenu-sysmon.sh") },
|
{ MODKEY, XK_KP_Down, spawn, CMD("st -e sh ./scripts/googler-script.sh") },
|
||||||
{ Mod1Mask|ControlMask, XK_p, spawn, CMD("passmenu") },
|
{ MODKEY, XK_KP_Page_Down, spawn, CMD("st -e newsboat") },
|
||||||
{ Mod1Mask|ControlMask, XK_s, spawn, CMD("./.dmenu/dmenu-surfraw.sh") },
|
{ MODKEY, XK_KP_Left, spawn, CMD("st -e rtv") },
|
||||||
|
{ MODKEY, XK_KP_Begin, spawn, CMD("st -e neomutt") },
|
||||||
/* Apps Launched with SUPER + ALT + KEY */
|
{ MODKEY, XK_KP_Right, spawn, CMD("st -e twitch-curses") },
|
||||||
{ MODKEY|Mod1Mask, XK_l, spawn, CMD("st -e lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss gopher://distro.tube") },
|
{ MODKEY, XK_KP_Home, spawn, CMD("st -e sh ./scripts/haxor-news.sh") },
|
||||||
{ MODKEY|Mod1Mask, XK_f, spawn, CMD("st -e sh ./.config/vifm/scripts/vifmrun") },
|
{ MODKEY, XK_KP_Up, spawn, CMD("st -e toot curses") },
|
||||||
{ MODKEY|Mod1Mask, XK_i, spawn, CMD("st -e irssi") },
|
{ MODKEY, XK_KP_Page_Up, spawn, CMD("st -e sh ./scripts/tig-script.sh") },
|
||||||
{ MODKEY|Mod1Mask, XK_n, spawn, CMD("st -e newsboat") },
|
|
||||||
{ MODKEY|Mod1Mask, XK_r, spawn, CMD("st -e rtv") },
|
|
||||||
{ MODKEY|Mod1Mask, XK_e, spawn, CMD("st -e neomutt") },
|
/* Apps Launched with <SUPER> + <SHIFT> + <KEYPAD 1-9> */
|
||||||
|
{ MODKEY|ShiftMask, XK_KP_End, spawn, CMD("st -e ~/.config/vifm/scripts/vifmrun") },
|
||||||
|
{ MODKEY|ShiftMask, XK_KP_Down, spawn, CMD("st -e joplin") },
|
||||||
|
{ MODKEY|ShiftMask, XK_KP_Page_Down, spawn, CMD("st -e cmus") },
|
||||||
|
{ MODKEY|ShiftMask, XK_KP_Left, spawn, CMD("st -e irssi") },
|
||||||
|
{ MODKEY|ShiftMask, XK_KP_Begin, spawn, CMD("st -e rtorrent") },
|
||||||
|
{ MODKEY|ShiftMask, XK_KP_Right, spawn, CMD("st -e youtube-viewer") },
|
||||||
|
{ MODKEY|ShiftMask, XK_KP_Home, spawn, CMD("st -e ncpamixer") },
|
||||||
|
{ MODKEY|ShiftMask, XK_KP_Up, spawn, CMD("st -e calcurse") },
|
||||||
|
{ MODKEY|ShiftMask, XK_KP_Page_Up, spawn, CMD("st -e vim /home/dt/dwm/config.h") },
|
||||||
|
|
||||||
|
/* Apps Launched with <SUPER> + <CONTROL> + <KEYPAD 1-9> */
|
||||||
|
{ MODKEY|ControlMask, XK_KP_End, spawn, CMD("st -e htop") },
|
||||||
|
{ MODKEY|ControlMask, XK_KP_Down, spawn, CMD("st -e gtop") },
|
||||||
|
{ MODKEY|ControlMask, XK_KP_Page_Down, spawn, CMD("st -e nmon") },
|
||||||
|
{ MODKEY|ControlMask, XK_KP_Left, spawn, CMD("st -e glances") },
|
||||||
|
{ MODKEY|ControlMask, XK_KP_Begin, spawn, CMD("st -e s-tui") },
|
||||||
|
{ MODKEY|ControlMask, XK_KP_Right, spawn, CMD("st -e httping -KY --draw-phase localhost") },
|
||||||
|
{ MODKEY|ControlMask, XK_KP_Home, spawn, CMD("st -e cmatrix -C cyan") },
|
||||||
|
{ MODKEY|ControlMask, XK_KP_Up, spawn, CMD("st -e pianobar") },
|
||||||
|
{ MODKEY|ControlMask, XK_KP_Page_Up, spawn, CMD("st -e wopr report.xml") },
|
||||||
|
|
||||||
TAGKEYS( XK_1, 0)
|
TAGKEYS( XK_1, 0)
|
||||||
TAGKEYS( XK_2, 1)
|
TAGKEYS( XK_2, 1)
|
||||||
|
|||||||
+22
-23
@@ -88,41 +88,40 @@ unsigned int alpha = 0xf2;
|
|||||||
/* Terminal colors (16 first used in escape sequence) */
|
/* Terminal colors (16 first used in escape sequence) */
|
||||||
static const char *colorname[] = {
|
static const char *colorname[] = {
|
||||||
/* 8 normal colors */
|
/* 8 normal colors */
|
||||||
"#282a36",
|
"#292d3e",
|
||||||
"#ff5555",
|
"#f07178",
|
||||||
"#50fa7b",
|
"#c3e88d",
|
||||||
"#f1fa8c",
|
"#ffcb6b",
|
||||||
"#bd93f9",
|
"#82aaff",
|
||||||
"#ff79c6",
|
"#c792ea",
|
||||||
"#8be9fd",
|
"#89ddff",
|
||||||
"#bbbbbb",
|
"#d0d0d0",
|
||||||
|
|
||||||
/* 8 bright colors */
|
/* 8 bright colors */
|
||||||
"#44475a",
|
"#434758",
|
||||||
"#FF6E67",
|
"#ff8b92",
|
||||||
"#5AF78E",
|
"#ddffa7",
|
||||||
"#F4F99D",
|
"#ffe585",
|
||||||
"#CAA9FA",
|
"#9cc4ff",
|
||||||
"#FF92D0",
|
"#e1acff",
|
||||||
"#9AEDFE",
|
"#a3f7ff",
|
||||||
"#E6E6E6",
|
"#ffffff",
|
||||||
|
|
||||||
[255] = 0,
|
[255] = 0,
|
||||||
|
|
||||||
/* more colors can be added after 255 to use with DefaultXX */
|
/* more colors can be added after 255 to use with DefaultXX */
|
||||||
"#282a36",
|
"#bbc5ff",
|
||||||
"#f8f8f2",
|
"#292d3e",
|
||||||
"#d7d7d7",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Default colors (colorname index)
|
* Default colors (colorname index)
|
||||||
* foreground, background, cursor, reverse cursor
|
* foreground, background, cursor, reverse cursor
|
||||||
*/
|
*/
|
||||||
unsigned int defaultbg = 256;
|
unsigned int defaultfg = 256;
|
||||||
unsigned int defaultfg = 257;
|
unsigned int defaultbg = 257;
|
||||||
static unsigned int defaultcs = 258;
|
static unsigned int defaultcs = 256;
|
||||||
static unsigned int defaultrcs = 258;
|
static unsigned int defaultrcs = 257;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Default shape of cursor
|
* Default shape of cursor
|
||||||
|
|||||||
Reference in New Issue
Block a user