Skip to content

Commit fb190bc

Browse files
authored
Merge pull request #5 from simonvic/dev
Update 2.0
2 parents b9ebd7f + b18eab2 commit fb190bc

File tree

21 files changed

+1189
-754
lines changed

21 files changed

+1189
-754
lines changed

.config/dunst/dunstrc

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ indicate_hidden = yes
5353
# Possible values are "left", "center" and "right".
5454
alignment = left
5555

56+
# Defines how the text and icon should be aligned vertically within the notification.
57+
# If icons are disabled, this option has no effect.
58+
# (values: [top/center/bottom], default: center)
59+
vertical_alignment = center
60+
5661
# The frequency with wich text that is longer than the notification
5762
# window allows bounces back and forth.
5863
# This option conflicts with "word_wrap".
@@ -92,7 +97,7 @@ hide_duplicates_count = no
9297
geometry = "500x30-710+40"
9398

9499
# Round the corners
95-
corner_radius = 5
100+
corner_radius = 10
96101

97102
# Shrink window if it's smaller than the width. Will be ignored if
98103
# width is 0.
@@ -101,7 +106,7 @@ shrink = no
101106
# The transparency of the window. Range: [0; 100].
102107
# This option will only work if a compositing windowmanager is
103108
# present (e.g. xcompmgr, compiz, etc.).
104-
transparency = 30
109+
transparency = 0
105110

106111
# Don't remove messages, if the user is idle (no mouse or keyboard input)
107112
# for longer than idle_threshold seconds.
@@ -173,6 +178,13 @@ browser = /usr/bin/firefox --new-tab
173178
icon_position = left
174179
max_icon_size = 60
175180

181+
# Defines the minimum size in pixels for the icons. If the icon is larger than or equal to the specified value it won't be affected.
182+
# If it's smaller then it will be scaled up so that the smaller axis is equivalent to the specified size.
183+
# Set to 0 to disable icon upscaling. (default)
184+
# If icon_position is set to off, this setting is ignored.
185+
# (default: 0)
186+
min_icon_size = 10
187+
176188
# Paths to default icons.
177189
icon_path = /usr/share/icons/Paper/16x16/mimetypes/:/usr/share/icons/Paper/48x48/status/:/usr/share/icons/Paper/16x16/devices/:/usr/share/icons/Paper/48x48/notifications/:/usr/share/icons/Paper/48x48/emblems/
178190

@@ -203,23 +215,23 @@ context = mod4+n
203215
[urgency_low]
204216
# IMPORTANT: colors have to be defined in quotation marks.
205217
# Otherwise the "#" and following would be interpreted as a comment.
206-
frame_color = "#333333"
207-
foreground = "#666666"
208-
background = "#191311"
218+
frame_color = "#33333355"
219+
foreground = "#888a85"
220+
background = "#191311AA"
209221
#background = "#2B313C"
210222
timeout = 8
211223

212224
[urgency_normal]
213-
frame_color = "#5B8234"
225+
frame_color = "#5B823455"
214226
foreground = "#CACACA"
215-
background = "#191311"
227+
background = "#191311AA"
216228
#background = "#2B313C"
217229
timeout = 8
218230

219231
[urgency_critical]
220-
frame_color = "#B7472A"
232+
frame_color = "#B7472A55"
221233
foreground = "#B7472A"
222-
background = "#191311"
234+
background = "#191311AA"
223235
#background = "#2B313C"
224236
timeout = 16
225237

.config/i3/config

Lines changed: 43 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@ exec numlockx
2525

2626
# Lockscreen
2727
exec xset s 600 300
28-
exec xss-lock -n "$HOME/.config/i3/scripts/brightness.sh screensaver" -l -- $HOME/.config/i3/scripts/lockscreen.sh --suspend
28+
exec xss-lock -n "sBrightnessctl screensaver" -l -- sLockscreenctl --suspend
2929

3030
# Restore redshift state
3131
exec $HOME/.config/i3/scripts/restoreRedshift.sh
3232

3333
# Use feh to set wallpaper
34-
exec_always feh --bg-fill $HOME/Pictures/Wallpapers/desert2.jpg
34+
exec_always feh --bg-fill $HOME/Pictures/Wallpapers/mountain3.jpg
3535
# [WIP] Set the Bing wallpaper of the day as your background
3636
# exec_always $HOME/.config/i3/scripts/bingWallpaper.sh
3737

3838
# Picom
3939
exec_always --no-startup-id picom --experimental-backends --blur-method dual_kawase --blur-strength 15 --config .config/picom/picom.conf
4040

4141
# Run polybar
42-
exec_always --no-startup-id $HOME/.config/polybar/scripts/polybar-manager.sh launch
42+
exec_always --no-startup-id sPolybarctl launch
4343
# [WIP] Enable autohide for the selected bar
44-
# exec_always $HOME/.config/polybar/scripts/polybar-manager.sh autohide 0
44+
# exec_always sPolybarctl autohide main
4545

4646

4747
# Always mute microphone at startup, you know... FBI and stuff
@@ -69,66 +69,65 @@ bindsym $mod+Return exec i3-sensible-terminal
6969
bindsym $mod+Shift+Return exec xfce4-terminal --drop-down
7070

7171
# === Polybar
72-
# Available command: launch, toggle <id>, show <id>, hide <id>,showAll, hideAll, toggleTray
73-
# Use "polybar-manager.sh help" for a more details
72+
# Use "sPolybarctl help" for a more details
7473

7574
# Toggle my main bar polybars
76-
bindsym $mod+p exec $HOME/.config/polybar/scripts/polybar-manager.sh toggle 0
75+
bindsym $mod+p exec sPolybarctl toggle main
7776
# Toggle my secondary bar polybars
78-
bindsym $mod+Shift+p exec $HOME/.config/polybar/scripts/polybar-manager.sh toggle 1
77+
bindsym $mod+Shift+p exec sPolybarctl toggle secondary
7978
# Toggle my tertiary bar
80-
bindsym $mod+Ctrl+p exec $HOME/.config/polybar/scripts/polybar-manager.sh toggle 2
79+
bindsym $mod+Ctrl+p exec sPolybarctl toggle tertiary
8180
# Hide all bars
82-
bindsym $mod+Ctrl+Shift+p exec $HOME/.config/polybar/scripts/polybar-manager.sh hideAll
81+
bindsym $mod+Ctrl+Shift+p exec sPolybarctl hide
8382
# Toggle the tray
84-
bindsym $mod+o exec $HOME/.config/polybar/scripts/polybar-manager.sh toggleTray
83+
#bindsym $mod+o exec sPolybarctl toggleTray
8584

8685

8786
# === Lock the screen
88-
bindsym $mod+l exec $HOME/.config/i3/scripts/lockscreen.sh --lock
87+
bindsym $mod+l exec sLockscreenctl --lock
8988

9089
# Adjust volume
9190
# -Ctrl is used to control the microphone
9291
# -Shift is used to change values at higher rate
93-
bindsym XF86AudioRaiseVolume exec --no-startup-id $HOME/.config/i3/scripts/volume.sh up 1
94-
bindsym XF86AudioLowerVolume exec --no-startup-id $HOME/.config/i3/scripts/volume.sh down 1
95-
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id $HOME/.config/i3/scripts/volume.sh up 10
96-
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id $HOME/.config/i3/scripts/volume.sh down 10
97-
bindsym XF86AudioMute exec --no-startup-id $HOME/.config/i3/scripts/volume.sh mute
98-
99-
bindsym Ctrl+XF86AudioRaiseVolume exec --no-startup-id $HOME/.config/i3/scripts/microphone.sh up 1
100-
bindsym Ctrl+XF86AudioLowerVolume exec --no-startup-id $HOME/.config/i3/scripts/microphone.sh down 1
101-
bindsym Ctrl+Shift+XF86AudioRaiseVolume exec --no-startup-id $HOME/.config/i3/scripts/microphone.sh up 10
102-
bindsym Ctrl+Shift+XF86AudioLowerVolume exec --no-startup-id $HOME/.config/i3/scripts/microphone.sh down 10
103-
bindsym Ctrl+XF86AudioMute exec --no-startup-id $HOME/.config/i3/scripts/microphone.sh mute
92+
bindsym XF86AudioRaiseVolume exec --no-startup-id sVolumectl up 1
93+
bindsym XF86AudioLowerVolume exec --no-startup-id sVolumectl down 1
94+
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id sVolumectl up 10
95+
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id sVolumectl down 10
96+
bindsym XF86AudioMute exec --no-startup-id sVolumectl mute
97+
98+
bindsym Ctrl+XF86AudioRaiseVolume exec --no-startup-id sMicrophonectl up 1
99+
bindsym Ctrl+XF86AudioLowerVolume exec --no-startup-id sMicrophonectl down 1
100+
bindsym Ctrl+Shift+XF86AudioRaiseVolume exec --no-startup-id sMicrophonectl up 10
101+
bindsym Ctrl+Shift+XF86AudioLowerVolume exec --no-startup-id sMicrophonectl down 10
102+
bindsym Ctrl+XF86AudioMute exec --no-startup-id sMicrophonectl mute
104103

105104
# Sreen brightness/temperature controls
106105
# -Ctrl is used to control the temperature
107106
# -Shift is used to change values at higher rate
108-
bindsym XF86MonBrightnessUp exec --no-startup-id $HOME/.config/i3/scripts/brightness.sh increase
109-
bindsym XF86MonBrightnessDown exec --no-startup-id $HOME/.config/i3/scripts/brightness.sh decrease
110-
bindsym Shift+XF86MonBrightnessUp exec --no-startup-id $HOME/.config/i3/scripts/brightness.sh increase 10
111-
bindsym Shift+XF86MonBrightnessDown exec --no-startup-id $HOME/.config/i3/scripts/brightness.sh decrease 10
112-
bindsym XF86ScreenSaver exec --no-startup-id $HOME/.config/i3/scripts/brightness.sh set 1
113-
bindsym Shift+XF86ScreenSaver exec --no-startup-id $HOME/.config/i3/scripts/brightness.sh set 100
114-
115-
bindsym Ctrl+XF86MonBrightnessUp exec --no-startup-id $HOME/.config/i3/scripts/brightness.sh redshift increase
116-
bindsym Ctrl+XF86MonBrightnessDown exec --no-startup-id $HOME/.config/i3/scripts/brightness.sh redshift decrease
117-
bindsym Ctrl+Shift+XF86MonBrightnessUp exec --no-startup-id $HOME/.config/i3/scripts/brightness.sh redshift increase 400
118-
bindsym Ctrl+Shift+XF86MonBrightnessDown exec --no-startup-id $HOME/.config/i3/scripts/brightness.sh redshift decrease 400
119-
bindsym Ctrl+XF86ScreenSaver exec --no-startup-id $HOME/.config/i3/scripts/brightness.sh redshift toggle
107+
bindsym XF86MonBrightnessUp exec --no-startup-id sBrightnessctl increase
108+
bindsym XF86MonBrightnessDown exec --no-startup-id sBrightnessctl decrease
109+
bindsym Shift+XF86MonBrightnessUp exec --no-startup-id sBrightnessctl increase 10
110+
bindsym Shift+XF86MonBrightnessDown exec --no-startup-id sBrightnessctl decrease 10
111+
bindsym XF86ScreenSaver exec --no-startup-id sBrightnessctl set 1
112+
bindsym Shift+XF86ScreenSaver exec --no-startup-id sBrightnessctl set 100
113+
114+
bindsym Ctrl+XF86MonBrightnessUp exec --no-startup-id sBrightnessctl redshift increase
115+
bindsym Ctrl+XF86MonBrightnessDown exec --no-startup-id sBrightnessctl redshift decrease
116+
bindsym Ctrl+Shift+XF86MonBrightnessUp exec --no-startup-id sBrightnessctl redshift increase 400
117+
bindsym Ctrl+Shift+XF86MonBrightnessDown exec --no-startup-id sBrightnessctl redshift decrease 400
118+
bindsym Ctrl+XF86ScreenSaver exec --no-startup-id sBrightnessctl redshift toggle
120119

121120
# Media player controls
122-
bindsym XF86AudioPlay exec --no-startup-id $HOME/.config/i3/scripts/playerctl.sh play-pause
123-
bindsym XF86AudioStop exec --no-startup-id $HOME/.config/i3/scripts/playerctl.sh stop
124-
bindsym XF86AudioNext exec --no-startup-id $HOME/.config/i3/scripts/playerctl.sh next
125-
bindsym XF86AudioPrev exec --no-startup-id $HOME/.config/i3/scripts/playerctl.sh previous
121+
bindsym XF86AudioPlay exec --no-startup-id sPlayerctl play-pause
122+
bindsym XF86AudioStop exec --no-startup-id sPlayerctl stop
123+
bindsym XF86AudioNext exec --no-startup-id sPlayerctl next
124+
bindsym XF86AudioPrev exec --no-startup-id sPlayerctl previous
126125

127126
# ToDo script
128-
bindsym $mod+t exec $HOME/Documents/Programming/scripts/todo/todo.sh notification todo
129-
bindsym $mod+Ctrl+t exec $HOME/Documents/Programming/scripts/todo/todo.sh notification done
130-
bindsym $mod+Shift+t exec $HOME/Documents/Programming/scripts/todo/todo.sh notification deleted
131-
bindsym $mod+Shift+Ctrl+t exec $HOME/Documents/Programming/scripts/todo/todo.sh notification
127+
bindsym $mod+t exec sTodo notification todo
128+
bindsym $mod+Ctrl+t exec sTodo notification done
129+
bindsym $mod+Shift+t exec sTodo notification deleted
130+
bindsym $mod+Shift+Ctrl+t exec sTodo notification
132131

133132
# Calculator
134133
bindsym XF86Calculator exec --no-startup-id gnome-calculator
@@ -381,7 +380,7 @@ focus_follows_mouse no
381380

382381

383382
# class border backgr. text indicator child_border
384-
client.focused #ff2740 #333333 $eeeeee #666666 #ff2740
383+
client.focused #f0544c #333333 $eeeeee #666666 #ff2740
385384
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
386385
client.unfocused #333333 #222222 #888888 #292d2e #222222
387386
client.urgent #2f343a #900000 #ffffff #900000 #900000

.config/picom/picom.conf

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
#################################
2+
# Corners #
3+
#################################
4+
# requires: https://github.com/sdhand/compton
5+
corner-radius = 5.0;
6+
rounded-corners-exclude = [
7+
#"window_type = 'normal'",
8+
"class_g = 'awesome'",
9+
"class_g = 'URxvt'",
10+
"class_g = 'XTerm'",
11+
"class_g = 'kitty'",
12+
"class_g = 'Alacritty'",
13+
#"class_g = 'Polybar'",
14+
#"class_g = 'code-oss'",
15+
#"class_g = 'firefox'",
16+
"class_g = 'Thunderbird'"
17+
];
18+
round-borders = 1;
19+
round-borders-exclude = [
20+
#"class_g = 'TelegramDesktop'",
21+
];
22+
23+
# Specify a list of border width rules, in the format `PIXELS:PATTERN`,
24+
# Note we don't make any guarantee about possible conflicts with the
25+
# border_width set by the window manager.
26+
#
27+
# example:
28+
# round-borders-rule = [ "2:class_g = 'URxvt'" ];
29+
#
30+
round-borders-rule = [
31+
"3:class_g = 'XTerm'",
32+
"3:class_g = 'URxvt'",
33+
"10:class_g = 'Alacritty'",
34+
"15:class_g = 'Signal'"
35+
];
36+
137
#################################
238
# Shadows #
339
#################################
@@ -12,7 +48,7 @@ shadow = true;
1248

1349
# The blur radius for shadows, in pixels. (defaults to 12)
1450
# shadow-radius = 12
15-
shadow-radius = 15;
51+
shadow-radius = 7;
1652

1753
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
1854
shadow-opacity = 0.5
@@ -64,7 +100,8 @@ shadow-offset-y = 0;
64100
shadow-exclude = [
65101
#"name = 'Notification'",
66102
"name = 'Polybar tray window'",
67-
"name *= 'polybar-main'",
103+
"name = 'polybar_main'",
104+
"class_g = 'i3-frame'",
68105
"class_g = 'Conky'",
69106
"class_g ?= 'Notify-osd'",
70107
"class_g = 'Cairo-clock'",
@@ -317,6 +354,7 @@ detect-client-leader = true
317354
# My tests show a 15% performance boost. Recommended.
318355
#
319356
# glx-no-stencil = false
357+
glx-no-stencil = true;
320358

321359
# GLX backend: Avoid rebinding pixmap on window damage.
322360
# Probably could improve performance on rapid window content changes,

0 commit comments

Comments
 (0)