guest@dotshare [~/groups/terms/colors] $ ls nichijou-fan-yes/ | cat

nichijou fan yes (scrot) (+1 likes)

kenty Jan 18, 2017 (terms/colors)

.Xresources(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
! special
*.foreground:   #ffffff
*.background:   #121212
*.cursorColor:  #ffffff

! black
*.color0:       #232323
*.color8:       #343434

! red
*.color1:       #994444
*.color9:       #bc6767

! green
*.color2:       #668866
*.color10:      #89a589

! yellow
*.color3:       #eebb66
*.color11:      #ffd693

! blue
*.color4:       #446c88
*.color12:      #698aa1

! magenta
*.color5:       #ee7777
*.color13:      #ffa6a6

! cyan
*.color6:       #468b8b
*.color14:      #6faaaa

! white
*.color7:       #dddddd
*.color15:      #efefef

CLICK TO VIEW

x

.i3_config(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
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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
###########
# General #
###########

set $mod Mod1
set $mod1 Mod4

font pango:Terminus 9



#############
# Variables #
#############

set_from_resource $darkblack   color0  #000000
set_from_resource $black       color8  #000000
set_from_resource $darkred     color1  #000000
set_from_resource $red         color9  #000000
set_from_resource $darkgreen   color2  #000000
set_from_resource $green       color10  #000000
set_from_resource $darkyellow  color3  #000000
set_from_resource $yellow      color11 #000000
set_from_resource $darkblue    color4  #000000
set_from_resource $blue        color12 #000000
set_from_resource $darkmagenta color5  #000000
set_from_resource $magenta     color13 #000000
set_from_resource $darkcyan    color6  #000000
set_from_resource $cyan        color14 #000000
set_from_resource $darkwhite   color7  #000000
set_from_resource $white       color15 #000000



##########
# Colors #
##########

#                       BORDER     	BACKGROUND 	TEXT   		INDICATOR
client.focused          $red   		$red   		$white 		$black
client.unfocused        $darkblack 	$black 		$white 		$darkwhite
client.focused_inactive $darkblack 	$black     	$white 		$darkwhite
client.urgent           $red       	$red       	$white 		$red



################
# Key Bindings #
################

# Start a terminal #
bindsym $mod+Return exec i3-sensible-terminal

# Kill focused window #
bindsym $mod+q kill

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

# Start rofi #
bindsym $mod+r exec --no-startup-id rofi -show run

# i3lock #
bindsym $mod1+l exec /home/kenty/.scripts/lock.sh

# Screenshot with scrot
bindsym Print exec scrot -e 'mv $f ~/Obrázky/Screenshots'

# Restart i3 inplace #
bindsym $mod+Shift+r restart


# Change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l 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+h move left 10 px 
bindsym $mod+Shift+j move down 10 px
bindsym $mod+Shift+k move up 10 px
bindsym $mod+Shift+l move right 10 px


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

# Split in horizontal orientation #
bindsym $mod+Shift+v split h

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

# Change container layout #
bindsym $mod+s layout tabbed
bindsym $mod+e layout toggle split

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

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


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

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



##############
# Workspaces #
##############

# Allow workspaces back and forth #
workspace_auto_back_and_forth yes

set $ws1  "1:  Chrome"
set $ws2  "2:  Steam"
set $ws3  "3:  Terminals"
set $ws4  "4:  Thunar"
set $ws5  "5"
set $ws6  "6"
set $ws7  "7"
set $ws8  "8"
set $ws9  "9"
set $ws10 "10"

# 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
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10

bindsym $mod+Tab workspace back_and_forth

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


# Assign clients to workspaces #
assign [class="(?i)chrome"] $ws1
assign [class="^Steam$"] $ws2
assign [class="^X-terminal-emulator$"] $ws3
assign [class="^Terminator$"] $ws3
assign [class="^Thunar$"] $ws4
assign [class="^Google-play-music-desktop-player$"] $ws5

# Enable or disable floating #
for_window [class="Arandr"] floating enable
for_window [class="recordMyDesktop"] floating enable
for_window [class="Lxappearance"] floating enable
for_window [class="Nitrogen"] floating enable
for_window [class="Artha"] floating enable
for_window [instance="dukto"] floating enable
for_window [class="Pcmanfm"] floating enable
for_window [class="feh"] floating enable
for_window [class="Zenmap"] floating enable
for_window [class="Angry IP Scanner"] floating enable
for_window [class="DB Browser for SQLite"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [window_role="bubble"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [window_role="Preferences"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="^Google-Chrome$" window_role="^pop-up$"] floating enable
 
#for_window [class="^.*"] floating enable



#########
# Modes #
#########

# Resize window (you can also use the mouse for that) #
set $mode_resize    Resize
bindsym $mod+g mode "$mode_resize"


mode "$mode_resize" {
        bindsym h resize shrink width 10 px or 10 ppt
        bindsym j resize grow height 10 px or 10 ppt
        bindsym k resize shrink height 10 px or 10 ppt
        bindsym l 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

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


# 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"
}

# System Menu #
set $sysmenu "[p]oweroff  re[b]oot  [r]eload [s]uspend  [l]ogout  "
bindsym $mod+Delete      mode $sysmenu

mode $sysmenu {
    bindsym r         restart
    bindsym l         exit
    bindsym p         exec shutdown -P now
    bindsym b         exec shutdown -r now
    bindsym s         exec systemct suspend
    bindsym Return    mode "default"
    bindsym Escape    mode "default"
}


#######
# Bar #
#######

# Start i3bar to display a workspace bar (plus the system information i3status #
# finds out, if available) #
# bar {
# 	colors {
# 		# Whole color settings
# 		background 	#0000000000
# 		statusline 	$white
# 		separator  	$darkblack
# 
# 		# Type             border  	background 	font
# 		focused_workspace  $darkred  	$darkred 	$white
# 		active_workspace   $darkred  	$red  		$white
# 		inactive_workspace $black 	$black 	$darkwhite
# 		urgent_workspace   $red 	$white 	$darkblack
# 	}
# 	height 23
# 	position top
# 	tray_padding 3
# 
# 	i3bar_command i3bar
# 	status_command i3blocks -c ~/.i3/i3blocks.conf
# 	strip_workspace_numbers yes
# }



#############
# Autostart #
#############

exec --no-startup-id $HOME/.scripts/workspaces/music
exec $HOME/.scripts/startup/music 

exec --no-startup-id $HOME/.scripts/workspaces/social
exec $HOME/.scripts/startup/social

exec_always --no-startup-id $HOME/.config/polybar/launch.sh
exec_always --no-startup-id feh --bg-scale /home/kenty/Wallpapers/wallpaper.*

exec a2dp
exec xset m 0/0 0
exec tlp start

exec steam

exec --no-startup-id terminator
exec --no-startup-id pactl set-sink-volume 0 35%

exec --no-startup-id nm-applet &
exec --no-startup-id blueman-applet &
exec --no-startup-id redshift-gtk &



###################
# Multimedia Keys #
###################

# Pulse Audio controls #
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

# Screen brightness controls #
bindsym XF86MonBrightnessUp exec xbacklight -inc 5 # increase screen brightness

bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightness



###########
# i3-Gaps #
###########

# Borders #
for_window [class="^.*"] border pixel 4

# Set inner/outer gaps #
gaps inner 15
gaps outer 10

# 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) # 
smart_borders on

workspace $ws1 gaps inner 0
workspace $ws1 gaps outer 0

workspace $ws2 gaps inner 0
workspace $ws2 gaps outer 0



bindsym $mod+z gaps inner current minus 5
bindsym $mod+u gaps inner current plus 5
bindsym $mod+Shift+z gaps outer current minus 5
bindsym $mod+Shift+u gaps outer current plus 5

bindsym $mod+Shift+Left resize shrink width 10 px or 10 ppt
bindsym $mod+Shift+Down resize grow height 10 px or 10 ppt
bindsym $mod+Shift+Up resize shrink height 10 px or 10 ppt
bindsym $mod+Shift+Right resize grow width 10 px or 10 ppt
 

x

polybar_config(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
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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
############
## Colors ##
############

[colors]
background = #343434
background-alt = #444444
foreground = #ffffff
foreground-alt = #555555
primary = #ffb52a
secondary = #e60053
alert = #bd2c40

[global/wm]
margin-top = 5
margin-bottom = 5


##################
## Bar settings ##
##################

[bar/example]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 24
offset-x = 0
offset-y = 0

;background = ${xrdb:color1}
background = ${colors.background}
foreground = ${colors.foreground}

overline-size = 0
overline-color = #f00
underline-size = 3
underline-color = #00f

border-bottom-size = 0
border-bottom-color = #333

padding-left = 0
padding-right = 0
module-margin-left = 0
module-margin-right = 2


###########
## Fonts ##
###########

font-0 = Terminus:pixelsize=10;0
font-1 = FontAwesome:size=10;0


######################
## Modules position ##
######################

modules-left = i3 
modules-center = xwindow
modules-right = xbacklight xkeyboard temperature memory cpu wlan eth battery date powermenu

tray-position = right
tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff

;wm-restack = bspwm
;wm-restack = i3

;override-redirect = true

;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev

;scroll-up = i3wm-wsnext
;scroll-down = i3wm-wsprev


########
## i3 ##
########

[module/i3]
type = internal/i3
strip-wsnumbers = true
pin-workspaces = true

margin-left = 2
margin-right = 2


format = <label-state> <label-mode>

label-mode-foreground = ${colors.foreground}
label-mode-background = ${colors.background}
label-mode-padding = 1

label-focused = "%icon% %name%  "
label-focused-foreground = ${colors.foreground}
label-focused-background = ${xrdb:color0}
label-focused-underline = ${xrdb:color1}
label-focused-padding = 1

label-unfocused = "%icon% %name%  "
label-unfocused-padding = 1

label-urgent-background = ${colors.background}
label-urgent-padding = 1

label-visible-background = ${colors.background}
label-visible-padding = 1


#############
## XWindow ##
#############

[module/title]
type = internal/xwindow

format-background = #f00
format-foreground = #000
format-padding = 4

label = "%title%"
label-maxlen = 50


##############
## Keyboard ##
##############

[module/xkeyboard]
## type = internal/xkeyboard
blacklist-0 = num lock
label-layout = %{F#55}%{F-} %layout%
label-layout-underline = ${colors.secondary}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}

[module/filesystem]
type = internal/fs
interval = 25

mount-0 = /
mount-1 = /home
mount-2 = /invalid/mountpoint

label-mounted = %mountpoint%: %percentage_free%%

label-unmounted = %mountpoint%: not mounted
label-unmounted-foreground = ${colors.foreground-alt}


###############
## Backlight ##
################

[module/xbacklight]
## type = internal/xbacklight

format = <label> <bar>
label = BL

bar-width = 10
bar-indicator = 
bar-indicator-foreground = #ff
bar-indicator-font = 2
bar-fill = 
bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = 
bar-empty-font = 2
bar-empty-foreground = ${colors.foreground-alt}

[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight


#########
## CPU ##
#########

[module/cpu]
## type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = #FFFFFF
format-underline = 
label = %percentage%%


#########
## RAM ##
#########

[module/memory]
## type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = #FFFFFF
format-underline = 
label = %percentage_used%%


##############
## Wireless ##
##############

[module/wlan]
type = internal/network
interface = wlp7s0
interval = 3.0

format-connected = <ramp-signal> <label-connected>
format-connected-underline = 
format-disconnected-underline = 

label-connected = "%essid%"
label-disconnected = %ifname% disconnected
label-disconnected-foreground = ${colors.foreground-alt}

ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = #FFFFFF



##########
## Date ##
##########

[module/date]
type = internal/date
interval = 5

date =  %Y-%m-%d
date-alt = " %Y-%m-%d"

time = %H:%M
time-alt = %H:%M:%S

format-prefix = " "
format-prefix-foreground = #FFFFFF
format-underline = ${xrdb:color1}

label = %date% %time%


############
## Volume ##
############

[module/volume]
type = internal/volume
master-mixer = Master

format-volume = <label-volume> <bar-volume>
label-volume = VOL
label-volume-foreground = ${root.foreground}

format-muted-prefix = 
format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted

bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = 
bar-volume-indicator-font = 2
bar-volume-indicator-foreground = #ff
bar-volume-fill = 
bar-volume-fill-font = 2
bar-volume-empty = 
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}


#############
## Battery ##
#############

[module/battery]
type = internal/battery
battery = BAT1
adapter = ACAD
full-at = 98

format-charging = <label-charging>
format-charging-underline = #000000

format-discharging = <ramp-capacity>  <label-discharging>
format-discharging-underline = #000000

format-full-prefix = " "
format-full-prefix-foreground = #FFFFFF

ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-foreground = #FFFFFF


##############
## CPU Temp ##
##############

[module/temperature]
## type = internal/temperature
thermal-zone = 0
warn-temperature = 60


format = <ramp> <label>
format-underline = 
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}

label =  %temperature% 
label-warn = %temperature%
label-warn-foreground = ${colors.secondary}

ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-foreground = ${colors.foreground-alt}


################
## Power menu ##
################

[module/powermenu]
type = custom/menu

format-spacing = 1

label-open = " " 
label-open-foreground = #ffffff
label-close =  cancel
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}

menu-0-0 = Reboot
menu-0-0-exec = menu-open-1
menu-0-1 = Power off
menu-0-1-exec = menu-open-2

menu-1-0 = Cancel
menu-1-0-exec = menu-open-0
menu-1-1 = Reboot
menu-1-1-exec = sudo reboot

menu-2-0 = Power off
menu-2-0-exec = sudo poweroff
menu-2-1 = Cancel
menu-2-1-exec = menu-open-0

; vim:ft=dosini
 

x