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

i3 config (scrot)

twodogsdave May 12, 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
# 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
# matrix green		#00FF00
# 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

# Set window border to 1px
# new_window 1pixel

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

# 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 '#888888' -sb '#1793D1' -sf '#FFFFFF'"
bindsym $mod+d exec "dmenu_run -i -p 'dmenu' -fn '8x16' -nb '#222222' -nf '#888888' -sb '#1793D1' -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

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

# 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 {
    tray_output primary
# arch linux colors
	colors {
		background #222222
		statusline #dddddd
		separator  #666666
	
		focused_workspace  #1793D1  #1793D1  #ffffff
		active_workspace   #333333 #333333 #888888
		inactive_workspace #333333 #333333 #888888
		urgent_workspace   #900000 #900000 #ffffff
	}

    # i3bar position
    position top

    # Using Conky
    status_command $HOME/.i3/conky-i3bar
}

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

# arch linux colors
# class                 border  backgr. text   
client.focused          #1793D1 #1793D1 #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

# browser pop-ups
for_window [window_role="pop-up"] floating enable

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

# Custom KeyBinds
bindsym $mod+Shift+p exec scrot '%Y-%m-%d-%T_$wx$h_scrot.png' -e 'mv $f ~/'
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+g 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

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

# Multimedia Keys
# increase volume
bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+ unmute
# decrease volume
bindsym XF86AudioLowerVolume exec amixer -q set Master 5%- unmute
# mute volume
bindsym XF86AudioMute 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

.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
! --- special colors ---

*background: #191919
*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:Droid Sans Mono: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
 

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
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'

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

.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
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



TEXT
[{ "full_text" : "HD  home: ${fs_free /home} / ${fs_size /home}  root: ${fs_free /} / ${fs_size /}" , "color" : "\#7996a9" } , 
 { "full_text" : "Ram  ${mem}" , "color" : "\#C89BDC" } ,
 { "full_text" : "Wifi:  ${wireless_essid wlp3s0} ${wireless_link_qual_perc wlp3s0}%" , "color" : "\#6DBE67" } ,
 { "full_text" : "Vol: ${execi 1 amixer sget Master,0 | egrep -o '([0-9]+%|\[(piss|ooff)\])' | sed ':a;N;$!ba;s/\n/ /g'}", "color" : "\#C1B63E" } ,
 { "full_text" : "Bat: ${battery_percent BAT0}%", "color" : "\#DC322F" } ,
 { "full_text" : "${time %a %b %_e, %_I:%M %p}", "color" : "\#FFFFFF"  }
 ] ,
 

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
# Shadow
shadow = true;			# Enabled client-side shadows on windows.
no-dock-shadow = true;		# 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
menu-opacity = 0.9;			# 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 = true;			# 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

conky-i3bar(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#!/bin/sh

# Send the header so that i3bar knows we want to use JSON:
echo '{"version":1}'

# Begin the endless array.
echo '['

# We send an empty first array of blocks to make the loop simpler:
echo '[],'

# Now send blocks with information forever:
exec conky -c $HOME/.i3/.conkyrc
#exec conky -c $HOME/.i3/conky_backups/.conkyrc_fave
 

x

i3lock.sh(raw, dl)

1
2
#!/bin/bash
i3lock -c 000000
 

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
#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/dave/ONETOUCH/MOVIES > ~/Documents/Movie_List_1.txt'
alias movielist2='ls /media/dave/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/dave/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-background'
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 dave *'
alias addppa='sudo add-apt-repository '
alias starwars='telnet towel.blinkenlights.nl'
alias matrix='cmatrix'
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 7 -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/%Y-%m-%d-%T-screenshot.png"
alias screenfetch="clear && figlet -s arch    linux && screenfetch"



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="$(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

Notes

I took the basic config file and tweaked it. I use Arch so selected color is blue (#1793D1), but very easy to change to a different color (examples included). I did try J4-Make-Config and liked it but didn’t really use it too much. I did keep J4-Dmenu-Desktop as it is very fast and looks good.

I prefer the font Droid Sans 8.

One pixel borders and dmenu even changes color too.

Workspaces are named.

I use conky, compton and feh.
Startup programs added and ..
Some custom keybinds.

Anyone play Minecraft?!
Enjoy!

Comments

twodogsdave said about 9 years ago