Browse Source

compton and i3status perfect. just need redshift

Abrahim Ladha 2 years ago
parent
commit
5c40c225b0
4 changed files with 149 additions and 5 deletions
  1. 2
    1
      chromebook/.Xresources
  2. 77
    0
      chromebook/.compton
  3. 6
    4
      chromebook/config
  4. 64
    0
      chromebook/i3status.conf

+ 2
- 1
chromebook/.Xresources View File

@@ -7,6 +7,7 @@ Xft.antialias: 1
7 7
 Xft.rgba: rgb
8 8
 
9 9
 
10
-rofi.font: Terminus (TTF) 25
10
+rofi.font: Terminus (TTF) 24
11 11
 rofi.lines: 20
12 12
 rofi.hide-scrollbar: true
13
+rofi.sidebar-mode: true

+ 77
- 0
chromebook/.compton View File

@@ -0,0 +1,77 @@
1
+# Shadow
2
+shadow = false;
3
+no-dnd-shadow = true;
4
+no-dock-shadow = true;
5
+clear-shadow = true;
6
+shadow-radius = 7;
7
+shadow-offset-x = -7;
8
+shadow-offset-y = -7;
9
+# shadow-opacity = 0.7;
10
+# shadow-red = 0.0;
11
+# shadow-green = 0.0;
12
+# shadow-blue = 0.0;
13
+shadow-exclude = [ "name = 'Notification'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'" ];
14
+# shadow-exclude = "n:e:Notification";
15
+shadow-ignore-shaped = false;
16
+# shadow-exclude-reg = "x10+0+0";
17
+# xinerama-shadow-crop = true;
18
+
19
+# Opacity
20
+menu-opacity = 1.0;
21
+inactive-opacity = 1.0;
22
+active-opacity = 1.0;
23
+frame-opacity = 1.0;
24
+inactive-opacity-override = false;
25
+alpha-step = 0.06;
26
+# inactive-dim = 0.2;
27
+# inactive-dim-fixed = true;
28
+blur-background = false;
29
+# blur-background-frame = true;
30
+blur-kern = "3x3box"
31
+# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
32
+# blur-background-fixed = true;
33
+#blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];
34
+opacity-rule = [ "90:class_g = 'URxvt'" ];
35
+
36
+# Fading
37
+fading = true;
38
+# fade-delta = 30;
39
+fade-in-step = 0.16;
40
+fade-out-step = 0.16;
41
+# no-fading-openclose = true;
42
+fade-exclude = [ ];
43
+
44
+# Other
45
+backend = "xrender"
46
+mark-wmwin-focused = true;
47
+mark-ovredir-focused = true;
48
+# use-ewmh-active-win = true;
49
+detect-rounded-corners = true;
50
+detect-client-opacity = true;
51
+refresh-rate = 0;
52
+vsync = "opengl";
53
+dbe = false;
54
+paint-on-overlay = true;
55
+# sw-opti = true;
56
+# unredir-if-possible = true;
57
+# unredir-if-possible-delay = 5000;
58
+# unredir-if-possible-exclude = [ ];
59
+focus-exclude = [ "class_g = 'Cairo-clock'" ];
60
+detect-transient = true;
61
+detect-client-leader = true;
62
+invert-color-include = [ ];
63
+# resize-damage = 1;
64
+
65
+# GLX backend
66
+# glx-no-stencil = true;
67
+glx-copy-from-front = false;
68
+# glx-use-copysubbuffermesa = true;
69
+# glx-no-rebind-pixmap = true;
70
+glx-swap-method = "undefined";
71
+# glx-use-gpushader4 = true;
72
+
73
+# Window type settings
74
+wintypes:
75
+{
76
+  tooltip = { fade = true; shadow = false; opacity = 1.0; focus = true; };
77
+};

+ 6
- 4
chromebook/config View File

@@ -29,8 +29,8 @@ font pango:Terminus (TTF) 20
29 29
 # Use Mouse+$mod to drag floating windows to their wanted position
30 30
 floating_modifier $mod
31 31
 exec nm-applet
32
-#2exec megasync
33
-exec compton -b --vync opengl-oml --no-fading-openclose
32
+exec megasync
33
+exec compton -b --config ~/.compton --no-fading-openclose
34 34
 exec feh --bg-scale ~/Pictures/adf.jpeg
35 35
 
36 36
 # start a terminal
@@ -40,8 +40,8 @@ bindsym $mod+Return exec i3-sensible-terminal
40 40
 bindsym $mod+Shift+q kill
41 41
 
42 42
 # start dmenu (a program launcher)
43
-bindsym $mod+d exec dmenu_run
44
-bindsym $mod+Shift+d exec rofi -show -font "Terminus (TTF) 20"
43
+#bindsym $mod+d exec dmenu_run
44
+bindsym $mod+d exec rofi -show run
45 45
 # There also is the (new) i3-dmenu-desktop which only displays applications
46 46
 # shipping a .desktop file. It is a wrapper around dmenu, so you need that
47 47
 # installed.
@@ -168,4 +168,6 @@ bindsym $mod+r mode "resize"
168 168
 # finds out, if available)
169 169
 bar {
170 170
         status_command i3status
171
+        font pango:Terminus (TTF) 20
171 172
 }
173
+

+ 64
- 0
chromebook/i3status.conf View File

@@ -0,0 +1,64 @@
1
+# i3status configuration file.
2
+# see "man i3status" for documentation.
3
+
4
+# It is important that this file is edited as UTF-8.
5
+# The following line should contain a sharp s:
6
+# ß
7
+# If the above line is not correctly displayed, fix your editor first!
8
+
9
+general {
10
+        colors = true
11
+        interval = 5
12
+}
13
+
14
+order += "ipv6"
15
+order += "disk /"
16
+order += "wireless _first_"
17
+order += "ethernet _first_"
18
+order += "volume master"
19
+order += "battery all"
20
+order += "cpu_temperature 0"
21
+order += "load"
22
+order += "tztime local"
23
+
24
+wireless _first_ {
25
+        format_up = "W: (%quality at %essid) %ip"
26
+        format_down = "W: down"
27
+}
28
+
29
+ethernet _first_ {
30
+        # if you use %speed, i3status requires root privileges
31
+        format_up = "E: %ip (%speed)"
32
+        format_down = "E: down"
33
+}
34
+
35
+
36
+volume master {
37
+    format = " (%volume)"
38
+    format_muted = " MUTE (%volume)"
39
+    device = "default"
40
+    mixer = "PCM"
41
+    mixer_idx = 0
42
+}
43
+
44
+
45
+battery all {
46
+        format = "%status %percentage %remaining"
47
+}
48
+
49
+tztime local {
50
+        format = "%Y-%m-%d %H:%M:%S"
51
+}
52
+cpu_temperature 0 {
53
+	format = "T: %degrees °C"
54
+	path = "/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input"
55
+}
56
+
57
+
58
+load {
59
+        format = "%1min"
60
+}
61
+
62
+disk "/" {
63
+        format = "%avail"
64
+}