summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compton.conf91
-rw-r--r--config102
-rw-r--r--i3status.conf33
3 files changed, 175 insertions, 51 deletions
diff --git a/compton.conf b/compton.conf
new file mode 100644
index 0000000..242f000
--- /dev/null
+++ b/compton.conf
@@ -0,0 +1,91 @@
1# Shadow
2shadow = true; # Enabled client-side shadows on windows.
3no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows.
4no-dnd-shadow = true; # Don't draw shadows on DND windows.
5clear-shadow = true; # Zero the part of the shadow's mask behind the
6 # window. Fix some weirdness with ARGB windows.
7shadow-radius = 7; # The blur radius for shadows. (default 12)
8shadow-offset-x = -7; # The left offset for shadows. (default -15)
9shadow-offset-y = -7; # The top offset for shadows. (default -15)
10shadow-opacity = 0.7; # The translucency for shadows. (default .75)
11# shadow-red = 0.0; # Red color value of shadow. (0.0 - 1.0, defaults to 0)
12# shadow-green = 0.0; # Green color value of shadow. (0.0 - 1.0, defaults to 0)
13# shadow-blue = 0.0; # Blue color value of shadow. (0.0 - 1.0, defaults to 0)
14shadow-exclude = [ "n:e:Notification" ]; # Exclude conditions for shadows.
15# shadow-exclude = "n:e:Notification";
16shadow-ignore-shaped = true; # Avoid drawing shadow on all shaped windows
17 # (see also: --detect-rounded-corners)
18
19# Opacity
20menu-opacity = 0.9; # The opacity for menus. (default 1.0)
21inactive-opacity = 0.9; # Default opacity of inactive windows. (0.0 - 1.0)
22# active-opacity = 0.8; # Default opacity for active windows. (0.0 - 1.0)
23# frame-opacity = 0.8; # Opacity of window titlebars and borders. (0.1 - 1.0)
24# inactive-opacity-override = true; # Let inactive opacity set by 'inactive-opacity' overrides
25 # value of _NET_WM_OPACITY. Bad choice.
26alpha-step = 0.06; # XRender backend: Step size for alpha pictures. Increasing
27 # it may result in less X resource usage,
28 # Yet fading may look bad.
29# inactive-dim = 0.2; # Dim inactive windows. (0.0 - 1.0)
30# inactive-dim-fixed = true; # Do not let dimness adjust based on window opacity.
31# blur-background = true; # Blur background of transparent windows.
32 # Bad performance with X Render backend.
33 # GLX backend is preferred.
34# blur-background-frame = true; # Blur background of opaque windows with transparent
35 # frames as well.
36blur-background-fixed = false; # Do not let blur radius adjust based on window opacity.
37blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];
38 # Exclude conditions for background blur.
39
40# Fading
41fading = true; # Fade windows during opacity changes.
42# fade-delta = 30; # The time between steps in a fade in milliseconds. (default 10).
43fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028).
44fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03).
45# no-fading-openclose = true; # Avoid fade windows in/out when opening/closing.
46fade-exclude = [ ]; # Exclude conditions for fading.
47
48# Other
49backend = "xrender" # Backend to use: "xrender" or "glx". GLX backend is typically
50 # much faster but depends on a sane driver.
51mark-wmwin-focused = true; # Try to detect WM windows and mark them as active.
52mark-ovredir-focused = true; # Mark all non-WM but override-redirect windows active (e.g. menus).
53use-ewmh-active-win = false; # Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused
54 # instead of using FocusIn/Out events. Usually more reliable but
55 # depends on a EWMH-compliant WM.
56detect-rounded-corners = true; # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
57detect-client-opacity = true; # Detect _NET_WM_OPACITY on client windows, useful for window
58 # managers not passing _NET_WM_OPACITY of client windows to frame
59 # windows.
60refresh-rate = 0; # For --sw-opti: Specify refresh rate of the screen. 0 for auto.
61vsync = "none"; # "none", "drm", "opengl", "opengl-oml", "opengl-swc", "opengl-mswc"
62 # See man page for more details.
63dbe = false; # Enable DBE painting mode. Rarely needed.
64paint-on-overlay = true; # Painting on X Composite overlay window. Recommended.
65sw-opti = false; # Limit compton to repaint at most once every 1 / refresh_rate.
66 # Incompatible with certain VSync methods.
67unredir-if-possible = false; # Unredirect all windows if a full-screen opaque window is
68 # detected, to maximize performance for full-screen windows.
69focus-exclude = [ ]; # A list of conditions of windows that should always be considered
70 # focused.
71detect-transient = true; # Use WM_TRANSIENT_FOR to group windows, and consider windows in
72 # the same group focused at the same time.
73detect-client-leader = true; # Use WM_CLIENT_LEADER to group windows.
74invert-color-include = [ ]; # Conditions for windows to be painted with inverted color.
75
76# GLX backend # GLX backend fine-tune options. See man page for more info.
77# glx-no-stencil = true; # Recommended.
78glx-copy-from-front = false; # Useful with --glx-swap-method,
79# glx-use-copysubbuffermesa = true; # Recommended if it works. Breaks VSync.
80# glx-no-rebind-pixmap = true; # Recommended if it works.
81glx-swap-method = "undefined"; # See man page.
82
83# Window type settings
84wintypes:
85{
86 tooltip = { fade = true; shadow = false; opacity = 0.75; focus = true; };
87 # fade: Fade the particular type of windows.
88 # shadow: Give those windows shadow
89 # opacity: Default opacity for the type of windows.
90 # focus: Whether to always consider windows of this type focused.
91};
diff --git a/config b/config
index d613e14..0a3cbde 100644
--- a/config
+++ b/config
@@ -17,7 +17,8 @@ set $mod Mod4
17 17
18# This font is widely installed, provides lots of unicode glyphs, right-to-left 18# This font is widely installed, provides lots of unicode glyphs, right-to-left
19# text rendering and scalability on retina/hidpi displays (thanks to pango). 19# text rendering and scalability on retina/hidpi displays (thanks to pango).
20font pango:Neris SemiBold 11 20# font pango:Neris SemiBold 10
21font pango:Source Code Pro Bold 11
21# font pango:DejaVu Sans Mono 12 22# font pango:DejaVu Sans Mono 12
22 23
23# Before i3 v4.8, we used to recommend this one as the default: 24# Before i3 v4.8, we used to recommend this one as the default:
@@ -32,7 +33,8 @@ floating_modifier $mod
32 33
33# start a terminal 34# start a terminal
34# bindsym $mod+Return exec i3-sensible-terminal 35# bindsym $mod+Return exec i3-sensible-terminal
35bindsym $mod+Return exec xfce4-terminal 36bindsym $mod+Return exec xfce4-appfinder
37bindsym Mod1+F2 exec --no-startup-id rofi -show run -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff
36bindsym $mod+t exec xfce4-terminal 38bindsym $mod+t exec xfce4-terminal
37bindsym $mod+e exec thunar 39bindsym $mod+e exec thunar
38 40
@@ -47,22 +49,22 @@ bindsym Mod1+F4 kill
47# installed. 49# installed.
48# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop 50# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
49bindsym $mod+d exec --no-startup-id j4-dmenu-desktop 51bindsym $mod+d exec --no-startup-id j4-dmenu-desktop
50bindsym Mod1+F2 exec --no-startup-id j4-dmenu-desktop
51 52
52 53
53 54
54# alternatively, you can use the cursor keys: 55# alternatively, you can use the cursor keys:
55bindsym $mod+Left focus left 56bindsym $mod+Left focus left ; exec pkill -SIGRTMIN+11 i3blocks
56bindsym $mod+Down focus down 57bindsym $mod+Down focus down ; exec pkill -SIGRTMIN+11 i3blocks
57bindsym $mod+Up focus up 58bindsym $mod+Up focus up ; exec pkill -SIGRTMIN+11 i3blocks
58bindsym $mod+Right focus right 59bindsym $mod+Right focus right ; exec pkill -SIGRTMIN+11 i3blocks
60
59 61
60 62
61# alternatively, you can use the cursor keys: 63# alternatively, you can use the cursor keys:
62bindsym $mod+Shift+Left move left 64bindsym $mod+Shift+Left move left ; exec pkill -SIGRTMIN+11 i3blocks
63bindsym $mod+Shift+Down move down 65bindsym $mod+Shift+Down move down ; exec pkill -SIGRTMIN+11 i3blocks
64bindsym $mod+Shift+Up move up 66bindsym $mod+Shift+Up move up ; exec pkill -SIGRTMIN+11 i3blocks
65bindsym $mod+Shift+Right move right 67bindsym $mod+Shift+Right move right ; exec pkill -SIGRTMIN+11 i3blocks
66 68
67# split in horizontal orientation 69# split in horizontal orientation
68# bindsym $mod+h split h 70# bindsym $mod+h split h
@@ -91,6 +93,7 @@ bindsym $mod+a focus parent
91#bindsym $mod+d focus child 93#bindsym $mod+d focus child
92 94
93workspace 1 output VGA1 95workspace 1 output VGA1
96workspace_layout tabbed
94 97
95# switch to workspace 98# switch to workspace
96bindsym $mod+1 workspace 1 99bindsym $mod+1 workspace 1
@@ -127,34 +130,19 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu
127bindsym $mod+m move scratchpad 130bindsym $mod+m move scratchpad
128bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center 131bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center
129 132
130for_window [class="^.*"] border pixel 8 133for_window [class="^.*"] border normal 4
131# smart_borders on 134for_window [title="^.*Thunderbird"] border pixel 0
132# gaps inner 8 135for_window [title="^HexChat.*"] border pixel 0
133# gaps outer 8 136for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks
137for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks
138for_window [title="cairo-dock"] floating enable ; border none
139for_window[class="Plank"] floating enable,move absolute center
140
134 141
135# resize window (you can also use the mouse for that) 142
136# mode "resize" { 143smart_borders on
137# # These bindings trigger as soon as you enter the resize mode 144# gaps inner 5
138# 145# gaps outer 5
139# # Pressing left will shrink the window’s width.
140# # Pressing right will grow the window’s width.
141# # Pressing up will shrink the window’s height.
142# # Pressing down will grow the window’s height.
143# bindsym j resize shrink width 10 px or 10 ppt
144# bindsym k resize grow height 10 px or 10 ppt
145# bindsym l resize shrink height 10 px or 10 ppt
146# bindsym semicolon resize grow width 10 px or 10 ppt
147#
148# # same bindings, but for the arrow keys
149# bindsym Left resize shrink width 10 px or 10 ppt
150# bindsym Down resize grow height 10 px or 10 ppt
151# bindsym Up resize shrink height 10 px or 10 ppt
152# bindsym Right resize grow width 10 px or 10 ppt
153#
154# # back to normal: Enter or Escape
155# bindsym Return mode "default"
156# bindsym Escape mode "default"
157# }
158 146
159bindsym $mod+r mode "resize" 147bindsym $mod+r mode "resize"
160 148
@@ -162,21 +150,32 @@ bindsym $mod+r mode "resize"
162# finds out, if available) 150# finds out, if available)
163bar { 151bar {
164 status_command i3status --config ~/.config/i3/i3status.conf 152 status_command i3status --config ~/.config/i3/i3status.conf
153 # status_command i3blocks
165 colors { 154 colors {
166 background #061229 155 background #2a3448
167 statusline #ffffff 156 statusline #ffffff
168 } 157 }
169 # tray_output VGA1 158 # tray_output VGA1
170 tray_padding 4 159 # tray_padding 4
171 # font pango:DejaVu Sans Mono 12 160 # font pango:DejaVu Sans Mono 12
172 # separator_symbol "┋" 161 # separator_symbol "┋"
173 position top 162 position bottom
174 # output VGA1 163 # output VGA1
175 binding_mode_indicator yes 164 binding_mode_indicator yes
176} 165}
177 166
178client.focused #ffffff #061229 #ffffff #5299BF #ffffff 167
179# client.unfocused #000000 #061229 #000000 #ff0000 #000000 168# client.focused #ffffff #061229 #ffffff #5299BF #ffffff
169# client.unfocused #000000 #061229 #ffffff #ff0000 #000000
170#colors: border backgr. text indicator
171
172client.focused #2a3448 #5299bf #2a3448 #f0a000
173client.focused_inactive #061229 #061229 #ffffff #ffffff
174client.unfocused #061229 #061229 #5299bf #ffffff
175client.urgent #2a3448 #900000 #5299bf #ffffff
176client.background #000000 #000000 #000000 #ffffff
177
178# hide_edge_borders both
180 179
181bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' 180bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: '
182bindsym Control+Mod1+Left workspace prev_on_output 181bindsym Control+Mod1+Left workspace prev_on_output
@@ -195,10 +194,10 @@ bindsym Control+Mod1+Right workspace next_on_output
195# bindsym $mod+Shift+semicolon move right 194# bindsym $mod+Shift+semicolon move right
196 195
197# change focus 196# change focus
198bindsym $mod+h focus left 197bindsym $mod+h focus left ; exec killall -USR1 i3status
199bindsym $mod+j focus down 198bindsym $mod+j focus down ; exec killall -USR1 i3status
200bindsym $mod+k focus up 199bindsym $mod+k focus up ; exec killall -USR1 i3status
201bindsym $mod+l focus right 200bindsym $mod+l focus right ; exec killall -USR1 i3status
202 201
203# move focused window 202# move focused window
204bindsym $mod+Shift+h move left 203bindsym $mod+Shift+h move left
@@ -242,9 +241,14 @@ mode "resize" {
242 241
243 242
244 243
244
245exec --no-startup-id dbus-launch gnome-settings-daemon 245exec --no-startup-id dbus-launch gnome-settings-daemon
246exec --no-startup-id dbus-launch nm-applet 246exec --no-startup-id dbus-launch nm-applet
247exec --no-startup-id dbus-launch nextcloud 247exec --no-startup-id dbus-launch nextcloud
248exec --no-startup-id nitrogen --restore 248
249exec --no-startup-id setxkbmap -option caps:escape 249exec --no-startup-id setxkbmap -option caps:escape
250exec xset r rate 330 75 250exec --no-startup-id xset r rate 330 40
251
252# start compositor...
253exec --no-startup-id compton -bc
254exec --no-startup-id nitrogen --restore
diff --git a/i3status.conf b/i3status.conf
index 34a56d9..fd093ed 100644
--- a/i3status.conf
+++ b/i3status.conf
@@ -8,11 +8,13 @@
8 8
9general { 9general {
10 colors = true 10 colors = true
11 color_good = "#88ff88"
12 color_bad = "#880000"
11 interval = 5 13 interval = 5
14 output_format = i3bar
12} 15}
13 16
14order += "ipv6" 17order += "ipv6"
15order += "disk /"
16# order += "run_watch VPN" 18# order += "run_watch VPN"
17order += "path_exists VPN" 19order += "path_exists VPN"
18order += "run_watch DHCP" 20order += "run_watch DHCP"
@@ -20,9 +22,24 @@ order += "run_watch DHCP"
20order += "ethernet _first_" 22order += "ethernet _first_"
21order += "ethernet enp7s0" 23order += "ethernet enp7s0"
22# order += "battery 0" 24# order += "battery 0"
25order += "volume master"
26order += "cpu_temperature 1"
27order += "cpu_usage"
23order += "load" 28order += "load"
29order += "disk /"
24order += "tztime local" 30order += "tztime local"
25 31
32ipv6
33{
34 format_down = ""
35}
36
37cpu_temperature 1
38{
39 format = "%degrees°C"
40 path = "/sys/class/thermal/thermal_zone2/temp"
41}
42
26wireless _first_ { 43wireless _first_ {
27 format_up = "W: (%quality at %essid) %ip" 44 format_up = "W: (%quality at %essid) %ip"
28 format_down = "W: down" 45 format_down = "W: down"
@@ -48,12 +65,14 @@ battery 0 {
48 65
49run_watch DHCP { 66run_watch DHCP {
50 pidfile = "/var/run/dhclient*.pid" 67 pidfile = "/var/run/dhclient*.pid"
68 format = "%title"
51} 69}
52 70
53 71
54path_exists VPN { 72path_exists VPN {
55# path exists when a VPN tunnel launched by nmcli/nm-applet is active 73# path exists when a VPN tunnel launched by nmcli/nm-applet is active
56 path = "/proc/sys/net/ipv4/conf/tun0" 74 path = "/proc/sys/net/ipv4/conf/tun0"
75 format_down = ""
57} 76}
58 77
59run_watch VPN { 78run_watch VPN {
@@ -65,9 +84,19 @@ tztime local {
65} 84}
66 85
67load { 86load {
68 format = "%1min" 87 format = "%5min"
69} 88}
70 89
71disk "/" { 90disk "/" {
72 format = "%avail" 91 format = "%avail"
73} 92}
93
94volume master {
95 format = "♪: %volume"
96 format_muted = "♪: muted (%volume)"
97 device = "pulse:0"
98}
99
100cpu_usage {
101 format = "%usage"
102}
..