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

Kxrnet-I3 (scrot)

kxrnet Jan 10, 2019 (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
# AUTOSTART
exec xrdb .Xresources
exec feh --bg-scale /home/kxrnet/Obrazy/Tapety/tapeta1.jpg
exec compton -b
exec nm-applet
exec --no-startup-id conky -c ~/.config/conky
exec --no-startup-id conky -c ~/.config/conky_shortcuts
exec --no-startup-id conky -c ~/.config/conky_cal

# SUPER PRZYCISK
set $mod Mod4

# ODLEGLOSCI POMIEDZY OKNAMI
gaps inner 5
gaps outer 3
# smart_gaps on
smart_borders on
for_window [class="^.*"] border pixel 2
for_window [floating] border 3

# WLACZENIE LATAJACYCH OKIEN DLA PROGRAMOW
for_window [class="pavucontrol"] floating enable
for_window [class="nm-connection-editor"] floating enable

# CZCIONKI
font pango:UbuntuMono-regular 8   

# UŻYWANE MYSZKI I SP DO LATAJACYCH OKIEN
floating_modifier $mod

# PROGRAMY
bindsym $mod+f exec chromium
bindsym $mod+s exec spotify
bindsym $mod+k exec kodi
bindsym $mod+q exec thunar
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+g exec steam

# ZAMKNIECIE AKTYWNEGO OKNA
bindsym $mod+Shift+q kill

# DMENU
#bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
#bindsym $mod+shift+d exec dmenu_run
bindsym $mod+d exec "rofi -show run"
bindsym $mod+shift+d "rofi -show window"

# ZMIANA AKTYWNEGO OKNA
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# PORUSZANIE AKTYWNYM OKNEM
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

# FULLSCREEN
bindsym $mod+p fullscreen toggle

# WŁĄCZENIE LATAJACEGO OKNA 
bindsym $mod+Shift+space floating toggle

# ZMIANA AKTYWNEGO OKNA POMIEDZY LATAJACYMI OKNAMI
bindsym $mod+space focus mode_toggle

# SCREENSHOT
#bindsym $mod+Insert exec scrot -e 'mv $f  ~/Obrazy/Screenshots/%Y-%m-%d-%T-screenshot.png'
bindsym $mod+Insert exec xfce4-screenshoter

# STEROWANIE GLOSNOSCIA
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
bindsym FN+F8 exec light -U 5 # increase screen brightness
bindsym FN+F9 exec light -A 5 # increase screen brightness

# KOLORY
#color class		border  bg	text	indicator
client.focused #ff38a8 #3d033d #42c6ff #db119e #ff38a8
client.focused_inactive #6f217f #3d033d #42c6ff #3d033d #6f217f
client.unfocused #6f217f #3d033d #42c6ff #3d033d #6f217f
client.urgent #db119e #3d033d #42c6ff #db119e #ff38a8
client.placeholder #ff38a8 #3d033d #42c6ff #db119e #ff38a8

# Workspace names
# to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail
#                 set $ws2 2:
set $ws1 
set $ws2 
set $ws3 
set $ws4 
set $ws5 
set $ws6 
set $ws7 
set $ws8 

# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8

# Move focused container to workspace
bindsym $mod+Ctrl+1 move container to workspace $ws1
bindsym $mod+Ctrl+2 move container to workspace $ws2
bindsym $mod+Ctrl+3 move container to workspace $ws3
bindsym $mod+Ctrl+4 move container to workspace $ws4
bindsym $mod+Ctrl+5 move container to workspace $ws5
bindsym $mod+Ctrl+6 move container to workspace $ws6
bindsym $mod+Ctrl+7 move container to workspace $ws7
bindsym $mod+Ctrl+8 move container to workspace $ws8

# Move to workspace with focused container
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8

# Open applications on specific workspaces
assign [class="Chromium"] $ws1
assign [class="Thunar"] $ws2
assign [class="File-roller"] $ws2
assign [class="Mousepad"] $ws3
assign [class="^libreoffice$"] $ws3
assign [class="URxvt"] $ws4
#assign [class="Minecraft"] $ws6
for_window [class="Minecraft"] move to workspace $ws6
assign [class="^Steam$"] $ws6
#assign [class="Kodi"] $ws7
for_window [class="Kodi"] move to workspace $ws7
assign [class="Rhythmbox"] $ws5
#assign [class="spotifywm"] $ws5
for_window [class="Spotify"] move to workspace $ws5
#assign [class="^photoqt$"] 8 8.
#for_window [class="gnome-photos"] move to workspace 8 8.
#assign [class="gimp"] 8 8.
#for_window [class="Gimp"] move to workspace 8 8.
#assign [class="pulseaudio-equalizer"] 7 7.
for_window [class="pulseaudio-equalizer"] move to workspace $ws8
#assign [class="arandr"] $ws8
for_window [class="7 7."] move to workspace $ws8

# Open specific applications in floating mode
for_window [title="alsamixer"] floating enable border pixel 1
for_window [class="Calamares"] floating enable border normal
for_window [class="Clipgrab"] floating enable
for_window [title="File Transfer*"] floating enable
for_window [class="Galculator"] floating enable border pixel 1
for_window [class="GParted"] floating enable border normal
for_window [title="i3_help"] floating enable sticky enable border normal
for_window [class="Lightdm-gtk-greeter-settings"] floating enable
for_window [class="Lxappearance"] floating enable sticky enable border normal
for_window [class="Manjaro-hello"] floating enable
for_window [class="Manjaro Settings Manager"] floating enable border normal
for_window [title="MuseScore: Play Panel"] floating enable
for_window [class="Nitrogen"] floating enable sticky enable border normal
for_window [class="Oblogout"] fullscreen enable
for_window [class="octopi"] floating enable
for_window [title="About Pale Moon"] floating enable
for_window [class="Pamac-manager"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="qt5ct"] floating enable sticky enable border normal
for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal
for_window [class="Simple-scan"] floating enable border normal
for_window [class="(?i)System-config-printer.py"] floating enable border normal
for_window [class="Skype"] floating enable border normal
for_window [class="Thus"] floating enable border normal
for_window [class="Timeset-gui"] floating enable border normal
for_window [class="(?i)virtualbox"] floating enable border normal
for_window [class="Xfburn"] floating enable
for_window [class="^Steam$" title="^Friends$"] floating enable
for_window [class="^Steam$" title="Steam - News"] floating enable
for_window [class="^Steam$" title=".* - Chat"] floating enable
for_window [class="^Steam$" title="^Settings$"] floating enable
for_window [class="^Steam$" title=".* - event started"] floating enable
for_window [class="^Steam$" title=".* CD key"] floating enable
for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable
for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable
for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable
for_window [title="^Steam Keyboard$"] floating enable


# RESTART I3 W MIEJSCU
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'"

# WYLACZENIE KOMPA
set $power_mode "P - WYŁĄCZENIE, R - RESTART, W - WYLOGUJ"
bindsym $mod+Shift+e      mode $power_mode
mode $power_mode {

		bindsym p        exec systemctl poweroff
		bindsym r        exec systemctl reboot 
		bindsym w	 exec i3-msg exit
#		bindsym l        exec i3lock-fancy -- scrot -z
#		bindsym q        exec --no-startup-id i3-msg exit, mode "default"
#		bindsym h        exec systemctl hibernate 
#e		bindsym s        exec systemctl hybrid-sleep 

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



# ZMIANA WIELKOSCI OKIEN
mode "resize" {
        # PRZYCISKI
        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"

# Color palette used for the terminal ( ~/.Xresources file )
# Colors are gathered based on the documentation:
# https://i3wm.org/docs/userguide.html#xresources
# Change the variable name at the place you want to match the color
# of your terminal like this:
# [example]
# If you want your bar to have the same background color as your 
# terminal background change the line 362 from:
# background #14191D
# to:
# background $term_background
# Same logic applied to everything else.
set_from_resource $term_background background
set_from_resource $term_foreground foreground
set_from_resource $term_color0     color0
set_from_resource $term_color1     color1
set_from_resource $term_color2     color2
set_from_resource $term_color3     color3
set_from_resource $term_color4     color4
set_from_resource $term_color5     color5
set_from_resource $term_color6     color6
set_from_resource $term_color7     color7
set_from_resource $term_color8     color8
set_from_resource $term_color9     color9
set_from_resource $term_color10    color10
set_from_resource $term_color11    color11
set_from_resource $term_color12    color12
set_from_resource $term_color13    color13
set_from_resource $term_color14    color14
set_from_resource $term_color15    color15

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
	colors {
			background    #00000000
			statusline #F9FAF9
        		separator  #454947
#                   BORDER      BACKGROUND    TEXT
			focused_workspace   #ff38a8 #3d033d #42c6ff
			inactive_workspace  #6f217f #3d033d #42c6ff
			active_workspace    #ff38a8 #3d033d #42c6ff
			urgent_workspace    #db119e #3d033d #42c6ff
			binding_mode        #ff38a8 #3d033d #42c6ff
	}
	font pango:Ubuntu-C 10, FontAwesome 8
	tray_output primary
	tray_padding 0
	status_command py3status
	i3bar_command i3bar -t
	position top
	separator_symbol ""
	strip_workspace_numbers yes
}

bindsym $mod+m bar mode toggle

CLICK TO VIEW

x

i3status.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
# i3status configuration file.
# see "man i3status" for documentation.

# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!

general {
        colors = true
        interval = 5
        color_good = "#F9FAF9"
        color_bad = "#F9FAF9"
        color_degraded = "#DC322F"
}

order += "net_rate"
order += "spotify"
order += "volume master"
order += "sysdata"
order += "cpu_usage"
order += "diskdata"
order += "tztime local"

volume master {
	format = " : %volume " 
	device = "default"
	mixer = "Master"
	mixer_idx = 0
    	on_click 1 = "exec pavucontrol"
	# termsyn font
}


spotify {
button_play_pause = 1
format = "  {artist} - {title} "
format_down = "Spotify"
format_stopped = "Spotify"
on_click 2 = "exec spotify"
}


timer {
	format = ":{timer}"
	time = 3600
}

cpu_usage {
        format = " : %usage "
}

sysdata {
cache_timeout = 2
format = "[ : {mem_used_percent}% ]"
}

diskdata {
	prefix_type = decimal
  #format_space = "[\?min_length=5 {value:.2f}]"
	format = "  {free} GB "
}

external_script {
    format = "{output}"
    script_path = "cat /sys/class/tty/tty0/active"
}

net_rate {
	format_value = "[\?min_length=10 {value:.1f} {unit}]"
	si_units = "True"
	format = "{down} {up}"
}

tztime local {
	# termsyn font
	format = " : %Y-%m-%d | : %H:%M:%S "
	timezone = "Europe/Warsaw"
}
 

x

conky(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
conky.config = {
	alignment = 'top_right',
	background = true,
	color2 = 'f6cb33',
	cpu_avg_samples = 2,
	default_color = 'F9FAF9',
	double_buffer = true,
	font = 'Bitstream Vera Sans:size=8',
	draw_shades = false,
	gap_x = 25,
	gap_y = 13,
	minimum_width = 200,
	no_buffers = true,
	own_window = true,
	own_window_type = 'override',
	own_window_transparent = true,
	update_interval = 1.0,
	use_xft = true,
}
conky.text = [[
${voffset 8}$color2${font Bitstream Vera Sans:size=16}${time %A}$font\
${voffset -8}$alignr$color${font Bitstream Vera Sans:size=38}${time %e}$font
$color${voffset -30}$color${font Bitstream Vera Sans:size=18}${time %b}$font\
${voffset -3} $color${font Bitstream Vera Sans:size=20}${time %Y}$font$color2$hr
#
${voffset 20}${goto 40}${color}CPU${font Bitstream Vera Sans:bold:size=8}$alignr$cpu%
${voffset 5}${goto 40}$font$color2${top name 1}$alignr$color${top cpu 1}%
${goto 40}$color2${top name 2}$alignr$color${top cpu 2}%
${goto 40}$color2${top name 3}$alignr$color${top cpu 3}%
${goto 40}$color2${top name 4}$alignr$color${top cpu 4}%
${goto 40}$color2${top name 5}$alignr$color${top cpu 5}%
#
${voffset 10}${goto 40}${color}RAM${font Bitstream Vera Sans:bold:size=8}$alignr$mem$font
${goto 40}${voffset 5}$color2${top_mem name 1}$alignr$color${top_mem mem_res 1}
${goto 40}$color2${top_mem name 2}$alignr$color${top_mem mem_res 2}
${goto 40}$color2${top_mem name 3}$alignr$color${top_mem mem_res 3}
${goto 40}$color2${top_mem name 4}$alignr$color${top_mem mem_res 4}
${goto 40}$color2${top_mem name 5}$alignr$color${top_mem mem_res 5}
#
${voffset 15}$font$alignr${execi 10000 awk -F= '/TION/ {print $2}' /etc/lsb-release |sed 's/"//g'} \
${execi 10000 awk -F= '/EASE=/ {printf $2" "} /NAME/ {print $2}' /etc/lsb-release}
${voffset 10}${color2}${alignr}${execi 1200 whoami}@${nodename}
${alignr}${color2}${font Cantarell:size=9}uptime ${color}${uptime_short}
${alignr}${color2}${font Cantarell:size=9}${alignr}jądro ${color}${kernel}
${alignr}${color2}${font Cantarell:size=9}${alignr}architektura ${color}${machine}
${alignr}${color2}${font Cantarell:size=9}${alignr}system plików ${color}${fs_type}
${voffset 10}${alignr}${color} dostępne aktualizacje ${color 5e0b0b}${font Cantarell:bold:size=10}${execpi 10800 checkupdates | wc -l}${font}${color}
${alignr}${color} zainstalowane pakiety: ${color2}${execi 10000 pacman -Q | wc -l}
${alignr}${color} ostatnia aktualizacja: ${color2}${execi 10000 grep "starting full system upgrade" /var/log/pacman.log | tail -n1| cut --bytes=2-17}
]]
 

x

conky_shortcuts(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
conky.config = {
	alignment = 'bottom_left',
	background = true,
	color2 = 'F9FAF9',
	cpu_avg_samples = 2,
	default_color = 'f6cb33',
	double_buffer = true,
	font = 'Bitstream Vera Sans:size=8',
	draw_shades = false,
	gap_x = 25,
	gap_y = 45,
	minimum_width = 200,
	no_buffers = true,
	own_window = true,
	own_window_type = 'override',
	own_window_transparent = true,
	update_interval = 1.0,
	use_xft = true,
}
conky.text = [[
${color2}mod = ${color}<WIN>

${color2}Terminal - ${color}mod+Enter
${color2}Rofi - ${color}mod+d
${color2}Wyłącz okno - ${color}mod+Shift+q
${color2}Zmień obszar roboczy 1-8 - ${color}mod+1-8
${color2}Przerzuć okno do innego obszaru roboczego 1-8 - ${color}mod+Alt+1-8
${color2}Latające okno - ${color}mod+Shift+Space
${color2}Pełny ekran - ${color}mod+p

${color2}Chromium - ${color}mod+f
${color2}Kodi - ${color}mod+k
${color2}Steam - ${color}mod+g
${color2}Spotify - ${color}mod+s
${color2}Thunar - ${color}mod+q
]]
 

x

conky_cal(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
conky.config = {
    background = true,
    update_interval = 1.5,
    cpu_avg_samples = 2,
    net_avg_samples = 2,
    out_to_console = false,
    override_utf8_locale = true,
    double_buffer = true,
    no_buffers = true,
    text_buffer_size = 32768,
    imlib_cache_size = 0,
    own_window = true,
    own_window_type = 'override',
    own_window_argb_visual = true,
    own_window_argb_value = 120,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    own_window_transparent = true,
    border_inner_margin = 0,
    border_outer_margin = 0,
    xinerama_head = 1,
    alignment = 'top_left',
    gap_x = 25,
    gap_y = 13,
    draw_shades = true,
    draw_outline = false,
    draw_borders = false,
    draw_graph_borders = false,
    use_xft = true,
    font = 'Ubuntu Mono:size=10',
    xftalpha = 0.8,
    uppercase = false,
    default_color = '#FFFFFF',
    own_window_colour = '#000000',
    minimum_width = 1000, minimum_height = 1000,
};

conky.text = [[
    ${execpi 300 PYTHONIOENCODING=utf8 gcalcli --conky --nolineart calm --width 12  --monday --military}
]];
 

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
xterm*VT100.Translations: #override \
                 Ctrl Shift <Key>V:    insert-selection(CLIPBOARD) \n\
                 Ctrl Shift <Key>C:    copy-selection(CLIPBOARD)

XTerm*foreground: rgb:ff/ff/ff
XTerm*background: rgb:2e/33/3e
xterm*borderWidth: 0

URxvt*font:           xft:Inconsolata:size=9
!URxvt.font: xft:terminus:size=7
!URxvt*font:    xft:FontAwesome:size=11
!URxvt*font: Roboto:size=8

URxvt*scrollBar: false
URxvt*foreground: rgb:ff/ff/ff
URxvt*background: rgb:2e/33/3e
URxvt*transparent: true
URxvt*shading: 30

URxvt.color0:           #3f3f3f
URxvt.color1:           #705050
URxvt.color2:           #00b45a
URxvt.color3:           #dfcf8f
URxvt.color4:           #404552
URxvt.color5:           #dc8cc3
URxvt.color6:           #ffffff
URxvt.color7:           #dcdccc
URxvt.color8:           #709080
URxvt.color9:           #cc5454
URxvt.color12:          #4186be
URxvt.color13:          #ec93d3
URxvt.color14:          #93e0e3
URxvt.color15:          #ffffff
~                                                                                                                                  
~
 

x

Notes

Requires:
-i3gaps
-py3status
-compton
-gcalcli
-conky
-urxvt