guest@dotshare [~/groups/wms/i3] $ ls i3-gaps/ | cat

i3-gaps (scrot)

twodogsdave May 27, 2015 (wms/i3)

config(raw, dl)

SCROT

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Mod4 = Super key
# Mod1 = Alt key
set $mod Mod4

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Droid Sans 8

# arch blue 		#1793D1
# debian red		#D70A53
# manjaro green     #8CBC65
# matrix green		#00FF00
# mint green		#5FAA24
# ubuntu orange  	#F37320
set $color #1793D1

# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
# font pango:DejaVu Sans Mono 8

# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# start a terminal
bindsym $mod+Return exec --no-startup-id i3-sensible-terminal

# kill focused window
bindsym $mod+Shift+q kill

# Back and forth workplace switching
workspace_auto_back_and_forth yes
bindsym $mod+c workspace back_and_forth
bindsym $mod+x workspace next
bindsym $mod+z workspace prev

# Set window border to 1px
# new_window 1pixel

#--------------------------------------------------------------------------------

# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
# bindsym Mod1+minus scratchpad show

#--------------------------------------------------------------------------------

# i3-gaps from https://github.com/Airblader/i3
# Disable window titlebars entirely
for_window [class="^.*"] border pixel 3

# Set inner/outer gaps
gaps inner 10
gaps outer 5

# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
# gaps inner|outer current|all set|plus|minus <px>
# gaps inner all set 10
# gaps outer all plus 5

# Smart gaps (gaps used if only more than one container on the workspace)
# smart_gaps on

# Smart borders (draw borders around container only if it is not the only container on this workspace) 
# on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
smart_borders on

# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
set $mode_gaps Gaps: (o) outer, (i) inner
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod+Shift+g mode "$mode_gaps"

mode "$mode_gaps" {
        bindsym o      mode "$mode_gaps_outer"
        bindsym i      mode "$mode_gaps_inner"
        bindsym Return mode "default"
        bindsym Escape mode "default"
}

mode "$mode_gaps_inner" {
        bindsym plus  gaps inner current plus 5
        bindsym minus gaps inner current minus 5
        bindsym 0     gaps inner current set 0

        bindsym Shift+plus  gaps inner all plus 5
        bindsym Shift+minus gaps inner all minus 5
        bindsym Shift+0     gaps inner all set 0

        bindsym Return mode "default"
        bindsym Escape mode "default"
}
mode "$mode_gaps_outer" {
        bindsym plus  gaps outer current plus 5
        bindsym minus gaps outer current minus 5
        bindsym 0     gaps outer current set 0

        bindsym Shift+plus  gaps outer all plus 5
        bindsym Shift+minus gaps outer all minus 5
        bindsym Shift+0     gaps outer all set 0

        bindsym Return mode "default"
        bindsym Escape mode "default"
}

#--------------------------------------------------------------------------------

# start j4-dmenu-desktop                             background       text        box color     text in box
# bindsym $mod+d exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -i -p 'Arch Linux' -fn '8x16' -nb '#222222' -nf '#DDDDDD' -sb '#1793D1' -sf '#FFFFFF'"
bindsym $mod+d exec "dmenu_run -i -p 'Arch Linux' -nb '#222222' -nf '#888888' -sb '$color' -sf '#DDDDDD'"
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop

#--------------------------------------------------------------------------------

# change focus
# bindsym $mod+j focus left
# bindsym $mod+k focus down
# bindsym $mod+l focus up
# bindsym $mod+semicolon focus right

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
# bindsym $mod+Shift+j move left
# bindsym $mod+Shift+k move down
# bindsym $mod+Shift+l move up
# bindsym $mod+Shift+semicolon move right

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# split in horizontal orientation
bindsym $mod+h split h

# split in vertical orientation
bindsym $mod+v split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle

# focus the parent container
bindsym $mod+a focus parent

# focus the child container
# bindsym $mod+d focus child

#--------------------------------------------------------------------------------

# Rename workspace with i3-input using numbers and text
bindsym $mod+n exec i3-input -F 'rename workspace to "%s"' -P 'New name for this workspace: '

# Name the workspaces
set $tag1 "1 urxvt"
set $tag2 "2 thunar"
set $tag3 "3 geany"
set $tag4 "4 firefox"

# switch to workspace
bindsym $mod+1 workspace $tag1
bindsym $mod+2 workspace $tag2
bindsym $mod+3 workspace $tag3
bindsym $mod+4 workspace $tag4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $tag1
bindsym $mod+Shift+2 move container to workspace $tag2
bindsym $mod+Shift+3 move container to workspace $tag3
bindsym $mod+Shift+4 move container to workspace $tag4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10

# browser pop-ups
for_window [window_role="pop-up"] floating enable;border normal
for_window [window_role="task_dialog"] floating enable;border normal

#--------------------------------------------------------------------------------

# reload the configuration file
bindsym $mod+Shift+c reload

# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart

# exit i3 (logs you out of your X session)
# bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"

#--------------------------------------------------------------------------------

# resize window (you can also use the mouse for that)
mode "resize" {
        # These bindings trigger as soon as you enter the resize mode

        # Pressing left will shrink the window’s width.
        # Pressing right will grow the window’s width.
        # Pressing up will shrink the window’s height.
        # Pressing down will grow the window’s height.
        bindsym j resize shrink width 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l resize shrink height 10 px or 10 ppt
        bindsym semicolon resize grow width 10 px or 10 ppt

        # same bindings, but for the arrow keys
        bindsym Left resize shrink width 10 px or 10 ppt
        bindsym Down resize grow height 10 px or 10 ppt
        bindsym Up resize shrink height 10 px or 10 ppt
        bindsym Right resize grow width 10 px or 10 ppt

        # back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

#--------------------------------------------------------------------------------

# Start i3bar to display a workspace bar with information
bar {
	height 16
    tray_output primary
    position top
    # strip_workspace_numbers yes
    # mode hide
	colors {
		background #222222
		separator  #222222
		statusline #dddddd		
	
		focused_workspace  $color  $color  #ffffff
		active_workspace   #333333 #333333 #888888
		inactive_workspace #333333 #333333 #888888
		urgent_workspace   #900000 #900000 #ffffff
	}
	# status_command $HOME/.i3/conky-i3bar
	status_command i3status -c $HOME/.i3/i3status.conf
}

#--------------------------------------------------------------------------------

# class                 border  backgr. text   
client.focused          $color  $color  #dddddd
client.focused_inactive #333333 #333333 #888888
client.unfocused        #333333 #333333 #888888
client.urgent           #900000 #900000 #ffffff

#--------------------------------------------------------------------------------

# Startup programs
exec --no-startup-id "devmon --no-gui"
exec --no-startup-id /usr/bin/compton --config ~/.i3/compton.conf        
exec --no-startup-id feh --bg-fill ~/Pictures/login_background/bg.png

#--------------------------------------------------------------------------------

# Custom KeyBinds
bindsym $mod+Shift+w exec --no-startup-id firefox
bindsym $mod+Shift+f exec --no-startup-id thunar
bindsym $mod+Shift+t exec --no-startup-id i3-sensible-terminal
bindsym $mod+Shift+e exec --no-startup-id geany
bindsym $mod+Shift+m exec --no-startup-id ~/bin/startup_minecraft.sh
bindsym $mod+Shift+x exec --no-startup-id lxappearance
bindsym $mod+Shift+p exec --no-startup-id xfce4-screenshooter
bindsym $mod+Shift+z exec --no-startup-id android-file-transfer
bindsym $mod+Shift+i exec --no-startup-id urxvt -name mocp -e mocp  
bindsym $mod+Shift+o exec --no-startup-id urxvt -name ranger -e ranger
bindsym $mod+Shift+u exec --no-startup-id urxvt -name tty-clock -e tty-clock -C 2 -c

for_window [class="minecraft"] floating enable
for_window [class="Lxappearance"] floating enable
for_window [class="Transmission-gtk"] floating enable
for_window [class="Xfce4-screenshooter"] floating enable
for_window [class="Android-file-transfer"] floating enable
for_window [class="Vlc"] floating enable

#--------------------------------------------------------------------------------

# Multimedia Keys
# Alsamixer
bindsym $mod+k exec amixer -q set Master 5%+ unmute
bindsym $mod+j exec amixer -q set Master 5%- unmute
bindsym $mod+m exec amixer -q set Master mute

#--------------------------------------------------------------------------------

# Shutdown, Reboot, Lock Screen, and Logout #657b83
set $sysmenu "system:  [P]oweroff  re[B]oot  [L]ock  logou[T] "
bindsym $mod+Shift+Return      mode $sysmenu
mode $sysmenu {
    bindsym p         exec shutdown -P now
    bindsym b         exec shutdown -r now
    bindsym l         exec sh ~/.i3/i3lock.sh, mode "default"
    bindsym t         exec --no-startup-id i3-msg exit, mode "default"
    bindsym Return    mode "default"
    bindsym Escape    mode "default"
}

#--------------------------------------------------------------------------------
#

CLICK TO VIEW

x

.bashrc(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
alias sudo='sudo '

black='\e[0;30m'
blue='\e[0;34m'
green='\e[0;32m'
cyan='\e[0;36m'
red='\e[0;31m'
purple='\e[0;35m'
brown='\e[0;33m'
lightgray='\e[0;37m'
darkgray='\e[1;30m'
lightblue='\e[1;34m'
lightgreen='\e[1;32m'
lightcyan='\e[1;36m'
lightred='\e[1;31m'
lightpurple='\e[1;35m'
yellow='\e[1;33m'
white='\e[1;37m'
nc='\e[0m'

# prompt
#PS1='\[\e[31m\]┌─[\[\e[37m\]\u@\t\[\e[31m\]] \n└─[\[\e[37m\]\W\[\e[31m\]]> '	#root user (red)
PS1='\[\e[32m\]┌─[\[\e[37m\]\u@\t\[\e[32m\]] \n└─[\[\e[37m\]\W\[\e[32m\]]> '   #regular user (green)

# Look for alias'
if [ -f ~/.alias ]; then
    . ~/.alias
fi

# Editor of choice
export EDITOR="nano"

if [ -d "$HOME/bin" ] ; then
  PATH="$HOME/bin:$PATH"
fi

# Gotta love ASCII art with figlet
#clear
#echo -e "${LIGHTGRAY}";figlet "Terminal    Fu";
#echo ""
#echo -ne "${red}Today is:\t\t${cyan}" `date`; echo ""
#echo -e "${red}Kernel Information:\t${cyan}" `uname -smr`
#echo -ne "${red}Up time:\t\t${cyan}";uptime | awk /'up/'
#echo ""
#echo -e "${cyan}"; cal -3; echo -e "${lightgray}"
#echo "";
 

x

.alias(raw, dl)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
#insert the following at the end of $HOME/.bashrc
# Source the aliases, if a separate file exists
#if [ -e $HOME/.alias ]; then
#  [ -n "$PS1" ] && . $HOME/.alias
#fi

#Aliases for improved directory listings
#The --color=tty option shows items in different colors according to their type.
#For example, directories are blue, executable files are green, symlinks are cyan, etc.
#The -F option appends a symbol after entries to indicate their types.
#You might not like both options at the same time.
alias ls='ls -F --color=tty' #regular ls
alias l.='ls -dF .[a-zA-Z0-9]* --color=tty' #only show dotfiles
alias ll='ls -lhF --color=tty' #long listing
alias dir='ls -ba'

#Make these commands ask before clobbering a file. Use -f to override.
alias rm="rm -i"
alias cp="cp -i"
alias mv="mv -i"

#Use human-readable filesizes
alias du="du -h"
alias df="df -h"

#Miscellaneous
alias bzip2='bzip2 -v'
alias j=jobs
alias cd..="cd .." #work around a common typo

#Automatically do an ls after each cd
cd() {
  if [ -n "$1" ]; then
    builtin cd "$@" && ls
  else
    builtin cd ~ && ls
  fi
}

alias c='clear'
alias e='espeak'
alias kgp='killall gnome-panel'
alias k='kill'
alias kn='nemo -q'
alias q='exit'
alias movielist1='ls /media/davebrown/ONETOUCH/MOVIES > ~/Documents/Movie_List_1.txt'
alias movielist2='ls /media/davebrown/GOFLEX/MOVIES > ~/Documents/Movie_List_2.txt'
alias movielist='sort ~/Documents/Movie_List_1.txt ~/Documents/Movie_List_2.txt > ~/Documents/Movie_List.txt'
alias series='ls /media/davebrown/EXPANSION/Movie\ Series > ~/Documents/Movie_Series.txt'
alias synaptic='sudo synaptic'
alias yt='youtube-dl '
alias mc='metacafe-dl -t'
alias backup='sudo cp /etc/apt/sources.list ~/backup | cp ~/.alias ~/backup | cp ~/.bashrc ~/backup | cp -f ~/.conkyrc ~/backup'
alias reload="killall -SIGUSR1 conky"
alias updatefont="fc-cache -v -f"
alias trash="mv -t ~/.local/share/Trash/files --backup=t"
alias ss="gnome-screensaver-command -a"
alias home="cd ~/"
alias documents="cd ~/Documents/ | less"
alias downloads="cd ~/Downloads/ | less"
alias images="cd ~/Pictures/ | less"
alias pictures="cd ~/Pictures/ | less"
alias music="cd ~/Music/ | less"
alias videos="cd ~/Videos/ | less"
alias movies="cd ~/Videos/Movies | less"
alias projects="cd ~/Projects | less"
alias torrents="cd ~/Torrents | less"
alias allmymovies="clear && cat ~/Documents/Movie_List.txt | less"
alias galias='gedit ~/.alias'
alias gconky='gedit ~/.conkyrc'
alias gconky.top='gedit ~/.conkyrc.top'
alias gconky.time='gedit ~/.conkyrc.time'
alias gbash='gedit ~/.bashrc'
alias moc='mocp -T ~/.moc/themes/transparent-arch'
alias fb='frozen-bubble'
alias cpconky='cp ~/.conkyrc ~/backup'
alias cpconky.top='cp ~/.conkyrc.top ~/backup'
alias cpconky.time='cp ~/.conkyrc.time ~/backup'
alias cpbash='cp ~/.bashrc ~/backup'
alias cpalias='cp ~/.alias ~/backup'
alias v='alsamixer'
alias grub='gksudo gedit /boot/grub/menu.lst'
alias sources='gksudo gedit /etc/apt/sources.list'
alias x='sudo xsplash'
alias key='sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys '
alias getkey="sudo ./bin/launchpad-update.sh"
alias installinxi='sudo apt-get install gawk | cd /usr/local/bin && wget -Nc smxi.org/inxi && chmod +x inxi'
alias installdeb='sudo dpkg -i *.deb'
alias root='gksudo nemo /'
alias maniadrive='cd ~/.ManiaDrive/ && ./mania_drive.sh'
alias vid='cd ~/bin/ && ./video_with_cam.sh'
alias pic='cd ~/bin/ && ./cam_picture.sh'
alias trance='nohup vlc ~/Music/Armin\ van\ Buuren/tunein-station.pls > ~/.nohup.out'
alias resetgnomepanel='gconftool-2 --recursive-unset /apps/panel && pkill gnome-panel'
alias changeowner='sudo chown -R davebrown *'
alias addppa='sudo add-apt-repository '
alias starwars='telnet towel.blinkenlights.nl'
alias matrix='cmatrix -B -u 9'
alias buttonsleft='gconftool-2 --set /apps/metacity/general/button_layout --type string close,minimize,maximize'
alias reset='killall -9 gnome-settings-daemon && gnome-settings-daemon && nemo -q'
alias photoshop='wine ~/.wine/drive_c/Program\ Files/Adobe/Photoshop\ 7.0/Photoshop.exe'
alias es='electricsheep'
alias editcrontab='env EDITOR=nano crontab -e'
alias gtint2="gedit ~/.config/tint2/tint2rc"
alias restarttint="killall tint2 && tint2 &"
alias wingpanel='pkill wingpanel'
alias mogrify='mogrify -format png *.*'
alias clock="tty-clock -c -C 2 -f '%a %b %_e, %_I:%M %p'"
alias cal3='cal -3 && cowsay 'It's almost Friday!'
alias j4='j4-make-config'
alias wifi='sudo wifi-menu'
alias screenshot="clear && figlet -s screenshot && scrot -d 5 -c /home/davebrown/Screenshots/%Y-%m-%d-%T-screenshot.png"
alias screenfetch="clear && figlet -s arch    linux && screenfetch"
alias set="feh --bg-fill ~/Pictures/login_background/bg.png"
alias umount="sudo umount /media/*"
alias cleanarch="pacman -Qdt && sudo pacman -Rsn $(pacman -Qqdt)"
alias info='~/bin/info'
alias xrdb="xrdb -merge .Xresources"


alias today='date +"%A, %B %-d, %Y"'
alias agi='sudo apt-get install'
alias agr='sudo apt-get remove'
alias agu='sudo apt-get update'
alias aguu='sudo apt-get upgrade'
alias agdu='sudo apt-get dist-upgrade'
alias acs='apt-cache search'
alias acsh='apt-cache show'
alias sdi='sudo dpkg -i'
alias agar='sudo apt-get autoremove'
alias agc='sudo apt-get clean'
alias av='apt version'
alias cleanup='sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get clean'
alias fix='sudo dpkg --configure -a'
alias fix2='apt install -f'
alias wallpaper='feh --bg-fill ~/Pictures/login_background/bg.png'
alias b='byobu'
alias storm='mplayer ~/Music/Thunder_Storm.mp3'
alias born='mplayer ~/Music/Born_To_Be_Wasted.mp3'
alias colors="~/bin/colors"
#alias scrot="scrot -d 5 -c '%m-%d-%Y_%I:%M:%S.png' -e 'mv $f ~/'"
alias ggtkrc2='gedit ~/.gtkrc-2.0'
alias shutdown='sudo shutdown -h now'
alias reboot='sudo reboot'
alias loginbackground='nemo ~/Pictures/Wallpaper | gksu nemo /usr/share/mdm/themes/Astronaut/'
alias fetch='~/bin/screenfetch-dev'
alias invaders='~/bin/./invaders.sh'
alias restartshell='killall gnome-shell'
alias background='nemo ~/Pictures/Wallpaper | gksu nemo /usr/share/backgrounds/'
alias resetwifi='sudo service network-manager restart'
alias cmi="./configure && make && sudo make install"
alias debclean="sudo apt-get clean && sudo apt-get autoremove"
alias createthumb='convert -sample 25%x25% '
alias createthumbs='~/bin/create_thumbs.sh'
alias rotateimage='convert -rotate 90 '
#alias wifi='sudo modprobe -r iwlwifi && sudo modprobe iwlwifi bt_coex_active=0'
#alias screenshot='gnome-screenshot --interactive'
alias machinarium='~/.Machinarium/Machinarium'
alias minecraft='java -cp ~/.minecraft/Minecraft.jar net.minecraft.bootstrap.Bootstrap'
alias panel='gksu gedit /usr/share/themes/elementary/gtk-3.0/apps.css'
alias planksettings='gedit ~/.config/plank/dock1/settings'

# convert flv to avi with mencoder (rename flv to 'input.flv')
alias convert='mencoder -oac mp3lame -ovc lavc -o output.avi input.flv'

# install iso image onto a usb using dd (replace 'IMAGE.ISO' with correct name)
alias dd="echo sudo dd if=IMAGE.ISO of=/dev/sdb"
#alias update="sudo apt-get update && sudo apt-get upgrade"

#PS1='\[\e[31m\]┌─[\[\e[37m\]\u@\t\[\e[31m\]] \n└─[\[\e[37m\]\W\[\e[31m\]]> '	#root user (red)
#PS1='\[\e[32m\]┌─[\[\e[37m\]\u@\t\[\e[32m\]] \n└─[\[\e[37m\]\W\[\e[32m\]]> '   #regular user (green)

#PS1="$(tput setaf 1)❯$(tput setaf 4)❯$(tput setaf 3)❯ $(tput sgr0)"

#PS1="\[\033[0;37m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200\")[$(if [[ ${EUID} == 0 ]]; then echo '\[\033[0;31m\]\h'; else echo '\[\033[0;33m\]\u\[\033[0;37m\]@\[\033[0;96m\]\h'; fi)\[\033[0;37m\]]\342\224\200[\[\033[0;32m\]\w\[\033[0;37m\]]\n\[\033[0;37m\]\342\224\224\342\224\200\342\224\200> \[\033[0m\]"

#PS1="\[\033[0;37m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200\")[$(if [[ ${EUID} == 0 ]]; then echo '\[\033[0;31m\]\h'; else echo '\[\033[0;33m\]\u\[\033[0;37m\]@\[\033[0;96m\]\h'; fi)\[\033[0;37m\]]\342\224\200[\[\033[0;32m\]\w\[\033[0;37m\]]\n\[\033[0;37m\]\342\224\224\342\224\200\342\224\200> \[\033[0m\]"

#PS1='\e[0;36m┌──[\e[1;33m${PWD}\e[0;36m]──[\e[1;33m\t\e[0;36m]\n\e[0;36m└─> \$\e[1;37m'

#PS1='[\e[01;32m]\u[\e[01;34m] @ \h [\e[01;36m]\w [\e[01;31m]\t\n[\e[01;36m]$ [\e[00m]' #colorfull

#PS1='\[\e[1;30m\]» \[\e[0;33m\]\H@\u\[\e[1;30m\]╺─╸\[\e[1;30m\][\[\e[0m\]\W\[\e[1;30m\]]\[\e[1;34m\]\[\e[0m\]\[\e[m \] ' #Cathexis

#PS1='\e[0;37m[\e[1;33m${PWD}\e[0;37m]$ ' #plain and simple

#PS1='[\w]$ '

#PS1='\e[0;36m[\e[1;33m${PWD}\e[0;36m]─>\e[1;37m '

#PS1='\[[\033[01;32m\]\w\[\033[0;37m\]]\$ ' #colored directory

#PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$' #Green

#PS1='\[[\033[01;34m\]\u@\h\[\033[00m\]]:\[\033[01;34m\]\w\[\033[0;37m\]\$ ' #Blue 

#PS1='\[[\033[01;30m\]\u@\h\[\033[00m\]]:\[\033[01;30m\]\w\[\033[0;37m\]\$ ' #Grey

#For root add this to /root/.bashrc
#PS1='\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$' #Red

#if [ "$color_prompt" = yes ]; then
#    PS1='\[\033[1;34m\]┌────[\u@\h\e[0;36m]──────────────────────────[\t\e[0;36m]────┐ \n└───>[${PWD}\e[0;36m] \$ \[\033[0;34m\]'
#else
#    PS1='\e[0;36m┌────[\e[1;33m\u@\h\e[0;36m]────────────────────────────────────[\e[1;33m\t\e[0;36m]────┐ \n\e[0;36m└───>[\e[1;33m${PWD}\e[0;36m]\e[1;37m  \$ '
#fi

alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'

# Get weather (replace the 71822 in the url with your own zipcode, call it by typing weather)
weather ()
{ 
declare -a WEATHERARRAY 
WEATHERARRAY=( `elinks -dump "http://www.google.com/search?hl=en&lr=&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=weather+34769&btnG=Search" | grep -A 5 -m 1 "Weather for" | grep -v "Add to "`) 
echo ${WEATHERARRAY[@]} 
}

# Get weather (replace the 71822 in the url with your own zipcode, call it by typing weather)
weatherny ()
{ 
declare -a WEATHERARRAY 
WEATHERARRAY=( `elinks -dump "http://www.google.com/search?hl=en&lr=&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=weather+13603&btnG=Search" | grep -A 5 -m 1 "Weather for" | grep -v "Add to "`) 
echo ${WEATHERARRAY[@]} 
}

# Get IP (call with myip)
function myip {
  myip=`elinks -dump http://checkip.dyndns.org:8245/`
  echo "${myip}"
}
 

x

.xinitrc(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#! /bin/bash
# my .xinitrc config
# start dbus
if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

xrdb -merge .Xresources

# start wm
exec i3
 

x

.xdefaults(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
! --- special colors ---

*background: #222222
*foreground: #d9e6f2

! --- standard colors ---

! black
*color0: #191919

! bright_black
*color8: #484848

! red
*color1: #e07c55

! bright_red
*color9: #eaa88e

! green
*color2: #55e07c

! bright_green
*color10: #8eeaa8

! yellow
*color3: #b8e055

! bright_yellow
*color11: #d0ea8e

! blue
*color4: #7c55e0

! bright_blue
*color12: #a88eea

! magenta
*color5: #e055b8

! bright_magenta
*color13: #ea8ed0

! cyan
*color6: #55b8e0

! bright_cyan
*color14: #8ed0ea

! white
*color7: #cdcdcd

! bright_white
*color15: #e7e7e7


! ------------------------------------------------------------------------------
! --- end of terminal colors section -------------------------------------------
! ------------------------------------------------------------------------------

! fonts
! run "fc-list" for a list of available fonts
URxvt*font: xft:Terminus:pixelsize=10
URxvt*letterSpace: +1

URxvt*scrollBar: False
URxvt*scrollTtyOutput: False
URxvt*scrollTtyKeypress: True
URxvt*secondaryScroll: True
URxvt*saveLines: 8000

urxvt*depth: 32
urxvt*background: rgba:0000/0000/0200/c800

urxvt*transparent: true
urxvt*shading: 30

URxvt.perl-ext-common: default,matcher
URxvt.url-launcher: /usr/bin/firefox
URxvt.matcher.button: 1
 

x

.conkyrc(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
out_to_x no
own_window no
out_to_console yes
background no
max_text_width 0
update_interval 1.0
total_run_times 0
override_utf8_locale yes
use_xft yes
xftfont Droid Sans:size=8

# bright green 2fdc57
# bright purple F70FF0
# bright cyan 00C758
# bright cyan 00fff2
# bright red ff0000
# cyan 5DBC9C 66B298
# dark cyan 00A9B5
# dark  purple 6f3bff
# light blue 5C83DE
# light blue 7996a9
# light pink F26C91
# light purple C89BDC
# light gold C8C039
# light yellow AFB500
# light yellow C1B63E
# light green 33CC99
# light green 6DBE67
# light red dc322f
# light red B94653
# mustard A0881E
# orange D2820B FD9D0D
# purple 8F5CAB
# sky blue A4DDED
# white FFFFFF
# arch blue 1793D1

# Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
short_units yes


TEXT
[
 { "full_text" : "Root", "color" : "\#888888" } ,
 { "full_text" : "${fs_free /}" , "color" : "\#1793D1" } ,
 { "full_text" : "Home", "color" : "\#888888" } ,
 { "full_text" : "${fs_free /home}" , "color" : "\#1793D1" } , 
 { "full_text" : "Mem", "color" : "\#888888" } , 
 { "full_text" : "${mem}", "color" : "\#1793D1" } ,
 { "full_text" : "Wifi", "color" : "\#888888" } ,
 { "full_text" : "${wireless_essid wlp3s0} ${wireless_link_qual_perc wlp3s0}%" , "color" : "\#1793D1" } ,
 { "full_text" : "Vol", "color" : "\#888888" } , 
 { "full_text" : "${execi 1 amixer sget Master,0 | egrep -o '([0-9]+%|\[(piss|ooff)\])' | sed ':a;N;$!ba;s/\n/ /g'}", "color" : "\#1793D1" } ,
 { "full_text" : "Bat", "color" : "\#888888" } , 
 { "full_text" : "${battery_percent BAT0}%", "color" : "\#1793D1" } ,
 { "full_text" : "Time", "color" : "\#888888" } ,
 { "full_text" : "${time %a %b %_e, %_I:%M %p}", "color" : "\#1793D1" }
 ] ,
 

x

compton.conf(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Shadow
shadow = false;			# Enabled client-side shadows on windows.
no-dock-shadow = false;		# Avoid drawing shadows on dock/panel windows.
no-dnd-shadow = true;		# Don't draw shadows on DND windows.
clear-shadow = true;		# Zero the part of the shadow's mask behind the
				# window. Fix some weirdness with ARGB windows.
shadow-radius = 7;		# The blur radius for shadows. (default 12)
shadow-offset-x = -7;		# The left offset for shadows. (default -15)
shadow-offset-y = -7;		# The top offset for shadows. (default -15)
shadow-opacity = 0.7;		# The translucency for shadows. (default .75)
# shadow-red = 0.0;		# Red color value of shadow. (0.0 - 1.0, defaults to 0)
# shadow-green = 0.0;		# Green color value of shadow. (0.0 - 1.0, defaults to 0)
# shadow-blue = 0.0;		# Blue color value of shadow. (0.0 - 1.0, defaults to 0)
shadow-exclude = [ "n:e:Notification" ];	# Exclude conditions for shadows.
# shadow-exclude = "n:e:Notification";
shadow-ignore-shaped = true;	# Avoid drawing shadow on all shaped windows
				# (see also: --detect-rounded-corners)

# Opacity
opacity-rule = ["85:class_g = 'urxvt'"];
menu-opacity = 0.95;			# The opacity for menus. (default 1.0)
inactive-opacity = 0.0;			# Default opacity of inactive windows. (0.0 - 1.0)
# active-opacity = 0.8;			# Default opacity for active windows. (0.0 - 1.0)
# frame-opacity = 0.8;			# Opacity of window titlebars and borders. (0.1 - 1.0)
# inactive-opacity-override = true;	# Let inactive opacity set by 'inactive-opacity' overrides
					# value of _NET_WM_OPACITY. Bad choice.
alpha-step = 0.06;			# XRender backend: Step size for alpha pictures. Increasing
					# it may result in less X resource usage,
					# Yet fading may look bad.
# inactive-dim = 0.2;			# Dim inactive windows. (0.0 - 1.0)
# inactive-dim-fixed = true;		# Do not let dimness adjust based on window opacity.
# blur-background = true;		# Blur background of transparent windows.
					# Bad performance with X Render backend.
					# GLX backend is preferred.
# blur-background-frame = true;		# Blur background of opaque windows with transparent
					# frames as well.
blur-background-fixed = false;		# Do not let blur radius adjust based on window opacity.
blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];
					# Exclude conditions for background blur.

# Fading
fading = false;			# Fade windows during opacity changes.
# fade-delta = 30;		# The time between steps in a fade in milliseconds. (default 10).
fade-in-step = 0.03;		# Opacity change between steps while fading in. (default 0.028).
fade-out-step = 0.03;		# Opacity change between steps while fading out. (default 0.03).
# no-fading-openclose = true;	# Avoid fade windows in/out when opening/closing.
fade-exclude = [ ];		# Exclude conditions for fading.

# Other
backend = "xrender"		# Backend to use: "xrender" or "glx". GLX backend is typically
				# much faster but depends on a sane driver.
mark-wmwin-focused = true;	# Try to detect WM windows and mark them as active.
mark-ovredir-focused = true;	# Mark all non-WM but override-redirect windows active (e.g. menus).
use-ewmh-active-win = false;	# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused
				# instead of using FocusIn/Out events. Usually more reliable but
				# depends on a EWMH-compliant WM.
detect-rounded-corners = true;	# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
detect-client-opacity = true;	# Detect _NET_WM_OPACITY on client windows, useful for window
				# managers not passing _NET_WM_OPACITY of client windows to frame
				# windows.
refresh-rate = 0;		# For --sw-opti: Specify refresh rate of the screen. 0 for auto.
vsync = "none";			# "none", "drm", "opengl", "opengl-oml", "opengl-swc", "opengl-mswc"
				# See man page for more details.
dbe = false;			# Enable DBE painting mode. Rarely needed.
paint-on-overlay = true;	# Painting on X Composite overlay window. Recommended.
sw-opti = false;		# Limit compton to repaint at most once every 1 / refresh_rate.
				# Incompatible with certain VSync methods.
unredir-if-possible = false;	# Unredirect all windows if a full-screen opaque window is
				# detected, to maximize performance for full-screen windows.
focus-exclude = [ ];		# A list of conditions of windows that should always be considered
				# focused.
detect-transient = true;	# Use WM_TRANSIENT_FOR to group windows, and consider windows in
				# the same group focused at the same time.
detect-client-leader = true;	# Use WM_CLIENT_LEADER to group windows.
invert-color-include = [ ];	# Conditions for windows to be painted with inverted color.

# GLX backend			# GLX backend fine-tune options. See man page for more info.
# glx-no-stencil = true;	# Recommended.
glx-copy-from-front = false;	# Useful with --glx-swap-method,
# glx-use-copysubbuffermesa = true; # Recommended if it works. Breaks VSync.
# glx-no-rebind-pixmap = true;	# Recommended if it works.	
glx-swap-method = "undefined";	# See man page.

# Window type settings
wintypes:
{
  tooltip = { fade = true; shadow = false; opacity = 0.75; focus = true; };
  # fade: Fade the particular type of windows.
  # shadow: Give those windows shadow
  # opacity: Default opacity for the type of windows.
  # focus: Whether to always consider windows of this type focused.
};
 

x

.Xresources(raw, dl)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
! URXVT GENERAL CONFIG
!------------------------------------------------
URxvt*iconFile: /usr/share/icons/Faenza/apps/32/utilities-terminal.png
IRC*iconFile: /usr/share/icons/Faenza/apps/32/xchat.png
URxvt.geometry: 80x22
! URXVT FONTS
!------------------------------------------------
URxvt.font:xft:Terminus:pixelsize=12
URxvt.boldFont:xft:Terminus:bold:pixelsize=12
URxvt.italicfont:xft:Terminus:italic:pixelsize=12
URxvt.bolditalicFont:xft:Terminus:bold:italic:pixelsize=12
URxvt*letterSpace: +1
URxvt*allow_bold: true
! URXVT FONT SETTINGS
!------------------------------------------------
Xft.autohint: true
Xft.antialias: true
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.rgba: rgb
Xft.lcdfilter: lcddefault
! URXVT ENABLE LINK SUPPORT
!------------------------------------------------
URxvt.perl-lib: /home/luca/Documenti/perl/
URxvt.perl-ext-common: default,matcher,clipboard
!tabbed
URxvt.matcher.button: 1
URxvt.perl-ext: default
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.url-select.launcher: /usr/bin/firefox
URxvt.url-select.underline: true
!disable the fucking bell
URxvt.insecure: false
! URXVT COPY PASTE SHORTCUTS
!------------------------------------------------
URxvt.iso14755: False
URxvt.keysym.Shift-Control-C: perl:clipboard:copy
URxvt.keysym.Shift-Control-V: perl:clipboard:paste
URxvt.keysym.M-c: perl:clipboard:copy
URxvt.keysym.M-v: perl:clipboard:paste
! URXVT SCROLLBAR AND CURSOR STYLE
!------------------------------------------------
URxvt*saveLines: 300000
URxvt.scrollBar: false
!URxvt*scrollstyle: plain
URxvt*cursorBlink: true
URxvt*cursorUnderline: true

! URXVT TABS
!------------------------------------------------
URxvt.tabbedex.autohide: yes
URxvt.tabbedex.tabbar-fg: 2
URxvt.tabbedex.tabbar-bg: 0
URxvt.tabbedex.tab-fg: 10
URxvt.tabbedex.tab-bg: 0
URxvt.tabbedex.title: yes
URxvt.tabbedex.new-button: no
! URXVT FULLSCREEN TOGGLE
!------------------------------------------------
URxvt.keysym.F11: perl:fullscreen:switch
! URXVT COLORS
!------------------------------------------------
! vim: set filetype=xdefaults :

! special
*.foreground: #93a1a1
*.background: #3c3b37

! black
*.color0: #5f5f5f
*.color8: #828282

! red
*.color1: #d96468
*.color9: #d98f93

! green
*.color2: #a2d964
*.color10: #b8d98f

! yellow
*.color3: #d9c964
*.color11: #d9cf8f

! blue
*.color4: #64a2d9
*.color12: #8f99d9

! magenta
*.color5: #9a64d9
*.color13: #b08fd9

! cyan
*.color6: #64d9d5
*.color14: #8fd9d5

! white
*.color7: #989898
*.color15: #c5c5c5

urxvt*depth: 32
urxvt*background: rgba:0000/0000/0200/c800

urxvt*transparent: true
urxvt*shading: 30
 

x

xorg.conf(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
##
## This is for my video card.  I'm on an iMac 24"
##
 
 
Section "Device"
	Identifier  "Device0"
	Driver      "radeon"
	BusID       "PCI:1:0:0"
	Option      "DRI"    "true"
EndSection
 
 
Section "DRI"
        Group  "video"
        Mode   0666
EndSection
 
 
Section "Extensions"
	Option "Composite" "Enable"
	Option "RENDER"    "Enable"
EndSection
 
 
Section "InputClass"
	Identifier          "Keyboard Defaults"
	MatchIsKeyboard	    "yes"
	Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
 
 

x

Notes

Arch Linux with i3-gaps installed. I installed i3-gaps-git in the AUR. Enjoy!

Comments

twodogsdave said about 9 years ago

Icons are Faenza and GTK is Flat Studio Dark modified with new selected color (#1793D1).