diff options
-rw-r--r-- | compton.conf | 91 | ||||
-rw-r--r-- | config | 102 | ||||
-rw-r--r-- | i3status.conf | 33 |
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 | ||
2 | shadow = true; # Enabled client-side shadows on windows. | ||
3 | no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows. | ||
4 | no-dnd-shadow = true; # Don't draw shadows on DND windows. | ||
5 | clear-shadow = true; # Zero the part of the shadow's mask behind the | ||
6 | # window. Fix some weirdness with ARGB windows. | ||
7 | shadow-radius = 7; # The blur radius for shadows. (default 12) | ||
8 | shadow-offset-x = -7; # The left offset for shadows. (default -15) | ||
9 | shadow-offset-y = -7; # The top offset for shadows. (default -15) | ||
10 | shadow-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) | ||
14 | shadow-exclude = [ "n:e:Notification" ]; # Exclude conditions for shadows. | ||
15 | # shadow-exclude = "n:e:Notification"; | ||
16 | shadow-ignore-shaped = true; # Avoid drawing shadow on all shaped windows | ||
17 | # (see also: --detect-rounded-corners) | ||
18 | |||
19 | # Opacity | ||
20 | menu-opacity = 0.9; # The opacity for menus. (default 1.0) | ||
21 | inactive-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. | ||
26 | alpha-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. | ||
36 | blur-background-fixed = false; # Do not let blur radius adjust based on window opacity. | ||
37 | blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ]; | ||
38 | # Exclude conditions for background blur. | ||
39 | |||
40 | # Fading | ||
41 | fading = true; # Fade windows during opacity changes. | ||
42 | # fade-delta = 30; # The time between steps in a fade in milliseconds. (default 10). | ||
43 | fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028). | ||
44 | fade-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. | ||
46 | fade-exclude = [ ]; # Exclude conditions for fading. | ||
47 | |||
48 | # Other | ||
49 | backend = "xrender" # Backend to use: "xrender" or "glx". GLX backend is typically | ||
50 | # much faster but depends on a sane driver. | ||
51 | mark-wmwin-focused = true; # Try to detect WM windows and mark them as active. | ||
52 | mark-ovredir-focused = true; # Mark all non-WM but override-redirect windows active (e.g. menus). | ||
53 | use-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. | ||
56 | detect-rounded-corners = true; # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on. | ||
57 | detect-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. | ||
60 | refresh-rate = 0; # For --sw-opti: Specify refresh rate of the screen. 0 for auto. | ||
61 | vsync = "none"; # "none", "drm", "opengl", "opengl-oml", "opengl-swc", "opengl-mswc" | ||
62 | # See man page for more details. | ||
63 | dbe = false; # Enable DBE painting mode. Rarely needed. | ||
64 | paint-on-overlay = true; # Painting on X Composite overlay window. Recommended. | ||
65 | sw-opti = false; # Limit compton to repaint at most once every 1 / refresh_rate. | ||
66 | # Incompatible with certain VSync methods. | ||
67 | unredir-if-possible = false; # Unredirect all windows if a full-screen opaque window is | ||
68 | # detected, to maximize performance for full-screen windows. | ||
69 | focus-exclude = [ ]; # A list of conditions of windows that should always be considered | ||
70 | # focused. | ||
71 | detect-transient = true; # Use WM_TRANSIENT_FOR to group windows, and consider windows in | ||
72 | # the same group focused at the same time. | ||
73 | detect-client-leader = true; # Use WM_CLIENT_LEADER to group windows. | ||
74 | invert-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. | ||
78 | glx-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. | ||
81 | glx-swap-method = "undefined"; # See man page. | ||
82 | |||
83 | # Window type settings | ||
84 | wintypes: | ||
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 | }; | ||
@@ -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). |
20 | font pango:Neris SemiBold 11 | 20 | # font pango:Neris SemiBold 10 |
21 | font 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 |
35 | bindsym $mod+Return exec xfce4-terminal | 36 | bindsym $mod+Return exec xfce4-appfinder |
37 | bindsym Mod1+F2 exec --no-startup-id rofi -show run -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff | ||
36 | bindsym $mod+t exec xfce4-terminal | 38 | bindsym $mod+t exec xfce4-terminal |
37 | bindsym $mod+e exec thunar | 39 | bindsym $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 |
49 | bindsym $mod+d exec --no-startup-id j4-dmenu-desktop | 51 | bindsym $mod+d exec --no-startup-id j4-dmenu-desktop |
50 | bindsym 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: |
55 | bindsym $mod+Left focus left | 56 | bindsym $mod+Left focus left ; exec pkill -SIGRTMIN+11 i3blocks |
56 | bindsym $mod+Down focus down | 57 | bindsym $mod+Down focus down ; exec pkill -SIGRTMIN+11 i3blocks |
57 | bindsym $mod+Up focus up | 58 | bindsym $mod+Up focus up ; exec pkill -SIGRTMIN+11 i3blocks |
58 | bindsym $mod+Right focus right | 59 | bindsym $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: |
62 | bindsym $mod+Shift+Left move left | 64 | bindsym $mod+Shift+Left move left ; exec pkill -SIGRTMIN+11 i3blocks |
63 | bindsym $mod+Shift+Down move down | 65 | bindsym $mod+Shift+Down move down ; exec pkill -SIGRTMIN+11 i3blocks |
64 | bindsym $mod+Shift+Up move up | 66 | bindsym $mod+Shift+Up move up ; exec pkill -SIGRTMIN+11 i3blocks |
65 | bindsym $mod+Shift+Right move right | 67 | bindsym $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 | ||
93 | workspace 1 output VGA1 | 95 | workspace 1 output VGA1 |
96 | workspace_layout tabbed | ||
94 | 97 | ||
95 | # switch to workspace | 98 | # switch to workspace |
96 | bindsym $mod+1 workspace 1 | 99 | bindsym $mod+1 workspace 1 |
@@ -127,34 +130,19 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu | |||
127 | bindsym $mod+m move scratchpad | 130 | bindsym $mod+m move scratchpad |
128 | bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center | 131 | bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center |
129 | 132 | ||
130 | for_window [class="^.*"] border pixel 8 | 133 | for_window [class="^.*"] border normal 4 |
131 | # smart_borders on | 134 | for_window [title="^.*Thunderbird"] border pixel 0 |
132 | # gaps inner 8 | 135 | for_window [title="^HexChat.*"] border pixel 0 |
133 | # gaps outer 8 | 136 | for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks |
137 | for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks | ||
138 | for_window [title="cairo-dock"] floating enable ; border none | ||
139 | for_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" { | 143 | smart_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 | ||
159 | bindsym $mod+r mode "resize" | 147 | bindsym $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) |
163 | bar { | 151 | bar { |
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 | ||
178 | client.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 | |||
172 | client.focused #2a3448 #5299bf #2a3448 #f0a000 | ||
173 | client.focused_inactive #061229 #061229 #ffffff #ffffff | ||
174 | client.unfocused #061229 #061229 #5299bf #ffffff | ||
175 | client.urgent #2a3448 #900000 #5299bf #ffffff | ||
176 | client.background #000000 #000000 #000000 #ffffff | ||
177 | |||
178 | # hide_edge_borders both | ||
180 | 179 | ||
181 | bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' | 180 | bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' |
182 | bindsym Control+Mod1+Left workspace prev_on_output | 181 | bindsym 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 |
198 | bindsym $mod+h focus left | 197 | bindsym $mod+h focus left ; exec killall -USR1 i3status |
199 | bindsym $mod+j focus down | 198 | bindsym $mod+j focus down ; exec killall -USR1 i3status |
200 | bindsym $mod+k focus up | 199 | bindsym $mod+k focus up ; exec killall -USR1 i3status |
201 | bindsym $mod+l focus right | 200 | bindsym $mod+l focus right ; exec killall -USR1 i3status |
202 | 201 | ||
203 | # move focused window | 202 | # move focused window |
204 | bindsym $mod+Shift+h move left | 203 | bindsym $mod+Shift+h move left |
@@ -242,9 +241,14 @@ mode "resize" { | |||
242 | 241 | ||
243 | 242 | ||
244 | 243 | ||
244 | |||
245 | exec --no-startup-id dbus-launch gnome-settings-daemon | 245 | exec --no-startup-id dbus-launch gnome-settings-daemon |
246 | exec --no-startup-id dbus-launch nm-applet | 246 | exec --no-startup-id dbus-launch nm-applet |
247 | exec --no-startup-id dbus-launch nextcloud | 247 | exec --no-startup-id dbus-launch nextcloud |
248 | exec --no-startup-id nitrogen --restore | 248 | |
249 | exec --no-startup-id setxkbmap -option caps:escape | 249 | exec --no-startup-id setxkbmap -option caps:escape |
250 | exec xset r rate 330 75 | 250 | exec --no-startup-id xset r rate 330 40 |
251 | |||
252 | # start compositor... | ||
253 | exec --no-startup-id compton -bc | ||
254 | exec --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 | ||
9 | general { | 9 | general { |
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 | ||
14 | order += "ipv6" | 17 | order += "ipv6" |
15 | order += "disk /" | ||
16 | # order += "run_watch VPN" | 18 | # order += "run_watch VPN" |
17 | order += "path_exists VPN" | 19 | order += "path_exists VPN" |
18 | order += "run_watch DHCP" | 20 | order += "run_watch DHCP" |
@@ -20,9 +22,24 @@ order += "run_watch DHCP" | |||
20 | order += "ethernet _first_" | 22 | order += "ethernet _first_" |
21 | order += "ethernet enp7s0" | 23 | order += "ethernet enp7s0" |
22 | # order += "battery 0" | 24 | # order += "battery 0" |
25 | order += "volume master" | ||
26 | order += "cpu_temperature 1" | ||
27 | order += "cpu_usage" | ||
23 | order += "load" | 28 | order += "load" |
29 | order += "disk /" | ||
24 | order += "tztime local" | 30 | order += "tztime local" |
25 | 31 | ||
32 | ipv6 | ||
33 | { | ||
34 | format_down = "" | ||
35 | } | ||
36 | |||
37 | cpu_temperature 1 | ||
38 | { | ||
39 | format = "%degrees°C" | ||
40 | path = "/sys/class/thermal/thermal_zone2/temp" | ||
41 | } | ||
42 | |||
26 | wireless _first_ { | 43 | wireless _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 | ||
49 | run_watch DHCP { | 66 | run_watch DHCP { |
50 | pidfile = "/var/run/dhclient*.pid" | 67 | pidfile = "/var/run/dhclient*.pid" |
68 | format = "%title" | ||
51 | } | 69 | } |
52 | 70 | ||
53 | 71 | ||
54 | path_exists VPN { | 72 | path_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 | ||
59 | run_watch VPN { | 78 | run_watch VPN { |
@@ -65,9 +84,19 @@ tztime local { | |||
65 | } | 84 | } |
66 | 85 | ||
67 | load { | 86 | load { |
68 | format = "%1min" | 87 | format = "%5min" |
69 | } | 88 | } |
70 | 89 | ||
71 | disk "/" { | 90 | disk "/" { |
72 | format = "%avail" | 91 | format = "%avail" |
73 | } | 92 | } |
93 | |||
94 | volume master { | ||
95 | format = "♪: %volume" | ||
96 | format_muted = "♪: muted (%volume)" | ||
97 | device = "pulse:0" | ||
98 | } | ||
99 | |||
100 | cpu_usage { | ||
101 | format = "%usage" | ||
102 | } | ||