From f8a7c1e39dc91bcd48cde8bb7f423d2858fa3efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Thu, 7 Jan 2016 12:53:04 +0100 Subject: [PATCH] WM updates --- bspwm/.config/bspwm/bspwmrc | 4 +- compton/.compton.conf | 5 +- i3/.config/i3/config | 8 +- scripts/.bin/passmenu | 10 +- termite/.dircolors | 217 ++++++++++++++++++++++++++++++++++++ 5 files changed, 236 insertions(+), 8 deletions(-) mode change 100644 => 100755 bspwm/.config/bspwm/bspwmrc create mode 100644 termite/.dircolors diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc old mode 100644 new mode 100755 index 3652a2c..f3e841f --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc @@ -1,6 +1,7 @@ #!/bin/bash sxhkd & +compton --config ~/.compton.conf & bspc config border_width 2 bspc config window_gap 12 @@ -9,10 +10,11 @@ bspc config split_ratio 0.52 bspc config borderless_monocle true bspc config gapless_monocle true bspc config focus_by_distance true +bspc config focus_follows_pointer true bspc monitor -d I II III IV V VI VII VIII IX X bspc rule -a Gimp desktop=^8 state=floating follow=on bspc rule -a Firefox desktop=^2 bspc rule -a mplayer2 state=floating -bspc rule -a Screenkey manage=off \ No newline at end of file +bspc rule -a Screenkey manage=off diff --git a/compton/.compton.conf b/compton/.compton.conf index b1b9b81..2818173 100644 --- a/compton/.compton.conf +++ b/compton/.compton.conf @@ -22,11 +22,12 @@ shadow-exclude = [ # xinerama-shadow-crop = true; # Opacity +mark-override-focused = true; menu-opacity = 0.8; inactive-opacity = 0.8; # active-opacity = 0.8; frame-opacity = 0.7; -inactive-opacity-override = false; +inactive-opacity-override = true; alpha-step = 0.06; # inactive-dim = 0.2; # inactive-dim-fixed = true; @@ -53,7 +54,7 @@ fade-exclude = [ ]; # Other backend = "xrender" -mark-wmwin-focused = true; +mark-wmwin-focused = false; mark-ovredir-focused = true; # use-ewmh-active-win = true; detect-rounded-corners = true; diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 7b3d116..8392ceb 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -22,7 +22,7 @@ floating_modifier $mod # start a terminal #bindsym $mod+Return exec --no-startup-id i3-one-tmux bindsym $mod+Return [title="^tmux$"] scratchpad show -bindsym Control+Mod1+t exec --no-startup-id urxvt +bindsym Control+Mod1+t exec --no-startup-id termite # start lock bindsym Control+Mod1+l exec --no-startup-id i3-exit.sh lock @@ -33,7 +33,7 @@ bindsym Control+Mod1+e exec --no-startup-id myemacs -c bindsym $mod+o exec --no-startup-id i3-winmenu.py bindsym $mod+p [instance="pcmanfm"] scratchpad show bindsym $mod+period [instance="emacs" title="^(?!myagenda$)"] scratchpad show -bindsym $mod+shift+comma exec --no-startup-id myemacs -nc --eval '(progn (find-file "~/Dropbox/Todo/org/rules.org") (org-agenda-list) (set-window-dedicated-p (selected-window) 1) (set-frame-name "myagenda"))' +bindsym $mod+shift+comma exec --no-startup-id myemacs -nc --eval '(progn (find-file "~/Dropbox/Todo/org/rules.org") (org-agenda-list) (set-frame-name "myagenda"))' bindsym $mod+comma [title="^myagenda"] scratchpad show # Spotify @@ -244,7 +244,7 @@ assign [class="Google-chrome" window_role="browser"] 2: Web for_window [class="^Firefox$"] border none assign [class="Firefox" window_role="browser"] 2: Web for_window [class="^Xfce4-notifyd$"] floating enable; border none; focus mode_toggle -for_window [class="^URxvt$"] border 1px +for_window [class="^termite"] border 1px for_window [title="^tmux$"] move to scratchpad for_window [title="^pcmanfm$"] move to scratchpad; #KDE @@ -281,7 +281,7 @@ exec --no-startup-id xautolock -time 10 -corners "----" -locker 'dm-tool lock' #exec xautolock -time 10 -corners "----" -locker 'i3lock -t -c 000000 -i ~/Pictures/Wallpapers/Game\ Over\ Hacker.png' & #exec --no-startup-id xautolock -corners '----' -time 10 -locker 'dm-tool lock' # lightdm exec --no-startup-id pcmanfm -exec --no-startup-id urxvt -name tmux -e tmux attach +exec --no-startup-id termite -name tmux -e tmux attach set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown mode "$mode_system" { diff --git a/scripts/.bin/passmenu b/scripts/.bin/passmenu index 97795a8..df34f61 100755 --- a/scripts/.bin/passmenu +++ b/scripts/.bin/passmenu @@ -2,10 +2,18 @@ shopt -s nullglob globstar + +if command -v rofi >/dev/null 2>&1; +then + program="rofi -dmenu" +else + program="dmenu" +fi + password_files=( ~/.password-store/**/*.gpg ) password_files=( "${password_files[@]##*/.password-store/}" ) password_files=( "${password_files[@]%.gpg}" ) -password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@") +password=$(printf '%s\n' "${password_files[@]}" | $program "$@") pass show -c "$password" diff --git a/termite/.dircolors b/termite/.dircolors new file mode 100644 index 0000000..0e53346 --- /dev/null +++ b/termite/.dircolors @@ -0,0 +1,217 @@ +# Configuration file for dircolors, a utility to help you set the +# LS_COLORS environment variable used by GNU ls with the --color option. +# Copyright (C) 1996-2015 Free Software Foundation, Inc. +# Copying and distribution of this file, with or without modification, +# are permitted provided the copyright notice and this notice are preserved. +# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the +# slackware version of dircolors) are recognized but ignored. +# Below, there should be one TERM entry for each termtype that is colorizable +TERM Eterm +TERM ansi +TERM color-xterm +TERM con132x25 +TERM con132x30 +TERM con132x43 +TERM con132x60 +TERM con80x25 +TERM con80x28 +TERM con80x30 +TERM con80x43 +TERM con80x50 +TERM con80x60 +TERM cons25 +TERM console +TERM cygwin +TERM dtterm +TERM eterm-color +TERM gnome +TERM gnome-256color +TERM hurd +TERM jfbterm +TERM konsole +TERM kterm +TERM linux +TERM linux-c +TERM mach-color +TERM mach-gnu-color +TERM mlterm +TERM putty +TERM putty-256color +TERM rxvt +TERM rxvt-256color +TERM rxvt-cygwin +TERM rxvt-cygwin-native +TERM rxvt-unicode +TERM rxvt-unicode-256color +TERM rxvt-unicode256 +TERM screen +TERM screen-256color +TERM screen-256color-bce +TERM screen-bce +TERM screen-w +TERM screen.Eterm +TERM screen.rxvt +TERM screen.linux +TERM st +TERM st-256color +TERM terminator +TERM vt100 +TERM xterm +TERM xterm-16color +TERM xterm-256color +TERM xterm-88color +TERM xterm-color +TERM xterm-debian +TERM xterm-termite +# Below are the color init strings for the basic file types. A color init +# string consists of one or more of the following numeric codes: +# Attribute codes: +# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed +# Text color codes: +# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white +# Background color codes: +# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white +#NORMAL 00 # no color code at all +#FILE 00 # regular file: use no color at all +RESET 0 # reset to "normal" color +DIR 01;34 # directory +LINK 01;36 # symbolic link. (If you set this to 'target' instead of a + # numerical value, the color is as for the file pointed to.) +MULTIHARDLINK 00 # regular file with more than one link +FIFO 40;33 # pipe +SOCK 01;35 # socket +DOOR 01;35 # door +BLK 40;33;01 # block device driver +CHR 40;33;01 # character device driver +ORPHAN 40;31;01 # symlink to nonexistent file, or non-stat'able file ... +MISSING 00 # ... and the files they point to +SETUID 37;41 # file that is setuid (u+s) +SETGID 30;43 # file that is setgid (g+s) +CAPABILITY 30;41 # file with capability +STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w) +OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky +STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable +# This is for files with execute permission: +EXEC 01;32 +# List any file extensions like '.gz' or '.tar' that you would like ls +# to colorize below. Put the extension, a space, and the color init string. +# (and any comments you want to add after a '#') +# If you use DOS-style suffixes, you may want to uncomment the following: +#.cmd 01;32 # executables (bright green) +#.exe 01;32 +#.com 01;32 +#.btm 01;32 +#.bat 01;32 +# Or if you want to colorize scripts even if they do not have the +# executable bit actually set. +#.sh 01;32 +#.csh 01;32 + # archives or compressed (bright red) +.tar 01;31 +.tgz 01;31 +.arc 01;31 +.arj 01;31 +.taz 01;31 +.lha 01;31 +.lz4 01;31 +.lzh 01;31 +.lzma 01;31 +.tlz 01;31 +.txz 01;31 +.tzo 01;31 +.t7z 01;31 +.zip 01;31 +.z 01;31 +.Z 01;31 +.dz 01;31 +.gz 01;31 +.lrz 01;31 +.lz 01;31 +.lzo 01;31 +.xz 01;31 +.bz2 01;31 +.bz 01;31 +.tbz 01;31 +.tbz2 01;31 +.tz 01;31 +.deb 01;31 +.rpm 01;31 +.jar 01;31 +.war 01;31 +.ear 01;31 +.sar 01;31 +.rar 01;31 +.alz 01;31 +.ace 01;31 +.zoo 01;31 +.cpio 01;31 +.7z 01;31 +.rz 01;31 +.cab 01;31 +# image formats +.jpg 01;35 +.jpeg 01;35 +.gif 01;35 +.bmp 01;35 +.pbm 01;35 +.pgm 01;35 +.ppm 01;35 +.tga 01;35 +.xbm 01;35 +.xpm 01;35 +.tif 01;35 +.tiff 01;35 +.png 01;35 +.svg 01;35 +.svgz 01;35 +.mng 01;35 +.pcx 01;35 +.mov 01;35 +.mpg 01;35 +.mpeg 01;35 +.m2v 01;35 +.mkv 01;35 +.webm 01;35 +.ogm 01;35 +.mp4 01;35 +.m4v 01;35 +.mp4v 01;35 +.vob 01;35 +.qt 01;35 +.nuv 01;35 +.wmv 01;35 +.asf 01;35 +.rm 01;35 +.rmvb 01;35 +.flc 01;35 +.avi 01;35 +.fli 01;35 +.flv 01;35 +.gl 01;35 +.dl 01;35 +.xcf 01;35 +.xwd 01;35 +.yuv 01;35 +.cgm 01;35 +.emf 01;35 +# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions +.ogv 01;35 +.ogx 01;35 +# audio formats +.aac 00;36 +.au 00;36 +.flac 00;36 +.m4a 00;36 +.mid 00;36 +.midi 00;36 +.mka 00;36 +.mp3 00;36 +.mpc 00;36 +.ogg 00;36 +.ra 00;36 +.wav 00;36 +# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions +.oga 00;36 +.opus 00;36 +.spx 00;36 +.xspf 00;36