Skip to content

Commit a5341ce

Browse files
committed
update configs
1 parent 8c2f77d commit a5341ce

File tree

11 files changed

+116
-81
lines changed

11 files changed

+116
-81
lines changed

default.conf.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
~/bin: general/bin
2121
~/.i3/config: general/i3config
2222
~/.i3/pad.png: general/pad.png
23+
~/.nbxrc: general/nbxrc
2324
~/.compton.conf: general/compton.conf
2425
~/.tmux.conf: general/tmux.conf
2526
~/.tmux.conf.local: general/tmux.conf.local

general/compton.conf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ inactive-opacity = 0.7;
114114
active-opacity = 0.9;
115115
frame-opacity = 0.7;
116116
inactive-opacity-override = false;
117-
alpha-step = 0.06;
117+
# alpha-step = 0.06;
118118

119119
# Dim inactive windows. (0.0 - 1.0)
120120
# inactive-dim = 0.2;
@@ -133,12 +133,14 @@ blur-background-exclude = [
133133

134134
opacity-rule = [
135135
"99:class_g = 'Firefox'",
136+
"99:class_g = 'Nightly'",
136137
"99:class_g = 'Google-chrome'",
137138
"99:class_g = 'factorio'",
138139
"99:class_g = 'Vivaldi-stable'",
139140
"99:class_g ~= 'notion-nativefier.*'",
140-
141-
"99:class_g = 'Vlc'"
141+
"99:class_g ~= 'Minecraft.*'",
142+
"99:class_g = 'Vlc'",
143+
"99:class_g = 'zoom'"
142144
];
143145

144146

@@ -201,7 +203,7 @@ vsync = "opengl-swc";
201203
# Reported to have no effect, though.
202204
dbe = false;
203205
# Painting on X Composite overlay window. Recommended.
204-
paint-on-overlay = true;
206+
# paint-on-overlay = true;
205207

206208
# Limit compton to repaint at most once every 1 / refresh_rate second to boost performance.
207209
# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,

general/gitconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@
2727
insteadOf = git://
2828
[commit]
2929
gpgsign = true
30+
[pull]
31+
rebase = false
32+
[init]
33+
defaultBranch = main

general/i3config

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ bindsym $mod+shift+t exec xfce4-terminal -e ranger
8282
bindsym $mod+p exec rofi -show run -terminal termite -lines 5 -eh 3 -width 100 -padding 285 -opacity 80 -bw 0 -font "Monoid Nerd Font 11"
8383

8484
# start dmenu (a program launcher)
85-
#bindsym $mod+shift+p exec --no-startup-id sh ~/scripts//dmenu-run.sh '
85+
#bindsym $mod+shift+p edxec --no-startup-id sh ~/scripts//dmenu-run.sh '
8686
bindsym $mod+d exec i3-dmenu-desktop --dmenu='rofi -dmenu -show run -location 1 -xoffset 14 -p "Applications:" -sidebar-mode'
8787

8888
# lock screen
@@ -215,9 +215,10 @@ exec --no-startup-id feh --bg-scale ~/.dotfiles/wall.jpg
215215
#exec --no-startup-id xautolock -time 10 -locker /home/mathieu/scripts/lock.sh -secure
216216
#exec --no-startup-id ~/scripts/random_wallpaper.sh
217217
exec --no-startup-id xautolock -time 10 -locker ~/scripts/lock.sh -secure
218-
exec --no-startup-id exec compton -cb --config .compton.conf
219-
exec --no-startup-id exec compton -cb --config .compton.conf
218+
exec --no-startup-id exec picom -cb --config .compton.conf
219+
exec --no-startup-id exec picom -cb --config .compton.conf
220220
exec --no-startup-id flameshot
221+
exec --no-startup-id pasystray
221222
exec --no-startup-id jetbrains-toolbox --minimize --disable-seccomp-filter-sandbox
222223
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
223224
exec xrdb ~/.Xresources

general/nbxrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"user": "Nicolas Beaussart",
4+
"email": "[email protected]"
5+
}
6+
}

general/polybar.config

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ modules-center =
6464
modules-right = wlan xbacklight battery cpu memory voltage temperature
6565

6666
tray-detached = false
67-
tray-position = right
67+
tray-position = ${env:TRAY_POSITION:}
6868

6969
[bar/default]
7070
monitor = ${env:MONITOR:}
@@ -87,10 +87,38 @@ font-0 = ${shared.font}
8787
font-1 = ${shared.font2}
8888
font-2 = ${shared.font3}
8989

90-
modules-left = i3
90+
modules-left = i3 red yellow green
9191
modules-center = xwindow
9292
modules-right = volume pkg date background Shutdown
9393

94+
95+
[module/red]
96+
type = custom/script
97+
exec = echo ""
98+
click-left = node ~/perso/projects/blinkstick/index.js red
99+
click-right = node ~/perso/projects/blinkstick/index.js red
100+
click-middle = node ~/perso/projects/blinkstick/index.js red
101+
format-padding = 0
102+
format-foreground = #e33232
103+
104+
[module/yellow]
105+
type = custom/script
106+
exec = echo ""
107+
click-left = node ~/perso/projects/blinkstick/index.js yellow
108+
click-right = node ~/perso/projects/blinkstick/index.js yellow
109+
click-middle = node ~/perso/projects/blinkstick/index.js yellow
110+
format-padding = 0
111+
format-foreground = #e3ce32
112+
113+
[module/green]
114+
type = custom/script
115+
exec = echo ""
116+
click-left = node ~/perso/projects/blinkstick/index.js green
117+
click-right = node ~/perso/projects/blinkstick/index.js green
118+
click-middle = node ~/perso/projects/blinkstick/index.js green
119+
format-padding = 0
120+
format-foreground = #32e361
121+
94122
[module/vpncheck]
95123
type = custom/script
96124
exec = pgrep openvpn
@@ -194,6 +222,7 @@ label-empty-padding = 2
194222
type = internal/i3
195223
format = <label-state> <label-mode>
196224
index-sort = true
225+
pin-workspaces = true
197226
wrapping-scroll = false
198227
strip-wsnumbers = true
199228

@@ -287,7 +316,7 @@ format-connected-underline = #9f78e1
287316
;label-connected = %essid% %{F#66}%local_ip% %{F#ff}%{T6} %upspeed% %downspeed%%{T-}
288317
label-connected = %essid% %{F#66} %upspeed:8%  %downspeed:8%
289318

290-
format-disconnected =  not connected
319+
format-disconnected =  Not connected
291320
;format-disconnected = <label-disconnected>
292321
;format-disconnected-underline = ${self.format-connected-underline}
293322
;label-disconnected = %ifname% disconnected

general/polybar.launch.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ WIFI_CARD=$(iw dev | awk '$1=="Interface"{print $2}')
1010
# Launch bar1 and bar2
1111
if type "xrandr"; then
1212
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
13-
MONITOR=$m WIFI_CARD=$WIFI_CARD polybar downbar &
13+
[[ $m = eDP1 ]] && tray="right" || tray=""
14+
echo $m $tray $WIFI_CARD
15+
MONITOR=$m WIFI_CARD=$WIFI_CARD TRAY_POSITION=$tray polybar downbar &
1416
MONITOR=$m WIFI_CARD=$WIFI_CARD polybar default &
1517
done
1618
else

general/scripts/init_workspace.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ workspace7="7:"
2828

2929
# App you want to start :
3030
apps=(
31-
#if you're using urxvt then replace st with that
3231
"notion"
3332
"telegram-desktop"
34-
"google-chrome-stable"
33+
"termite"
34+
#"google-chrome-stable"
3535
"termite"
3636
"termite"
3737
"slack"

general/zshrc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,13 @@ ENHANCD_FILTER=fzf; export ENHANCD_FILTER
9898
source $ZSH/oh-my-zsh.sh
9999

100100
# Load nvm init script
101-
if [ -f /usr/share/nvm/init-nvm.sh ]; then
102-
source /usr/share/nvm/init-nvm.sh
103-
fi
101+
[ -f /usr/share/nvm/init-nvm.sh ] && source /usr/share/nvm/init-nvm.sh
104102

105103
# added by travis gem
106104
[ -f /home/beaussan/.travis/travis.sh ] && source /home/beaussan/.travis/travis.sh
107105

108106
# Load git flow completion
109-
if [ -f /usr/share/zsh/site-functions/git-flow-completion.zsh ]; then
110-
source /usr/share/zsh/site-functions/git-flow-completion.zsh
111-
fi
107+
[ -f /usr/share/zsh/site-functions/git-flow-completion.zsh ] && source /usr/share/zsh/site-functions/git-flow-completion.zsh
112108

113109
###### Overides
114110

setupStd.conf.yaml

Lines changed: 56 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -4,66 +4,60 @@
44
create: true
55
force: true
66

7-
87
- shell:
9-
-
10-
command : yay --needed --noconfirm -S pacman-contrib ttf-monoid ttf-unifont ttf-font-awesome nerd-fonts-complete noto-fonts-emoji
11-
description: Installing fonts
12-
stdin: true
13-
stdout: true
14-
stderr: true
15-
-
16-
command : yay --needed --noconfirm -S gnu-netcat rofi-git zsh feh fzf i3-gaps-next-git xautolock polybar termite tree i3lock-fancy-git cower compton checkupdates+aur checkupdates-aur lsd bat ranger-git rofi-git pygmentize fzy xclip evince perl-file-mimeinfo openssh thunar-archive-plugin thunar
17-
description: Installing base software
18-
stdin: true
19-
stdout: true
20-
stderr: true
21-
-
22-
command : yay --needed --noconfirm -S yarn gitflow-avh gitflow-zshcompletion-avh nodejs jetbrains-toolbox npm nvm neovim
23-
description: Installing codding tools
24-
stdin: true
25-
stdout: true
26-
stderr: true
27-
-
28-
command : yay --needed --noconfirm -S telegram-desktop spotify-dev slack-desktop
29-
description: Installing other software
30-
stdin: true
31-
stdout: true
32-
stderr: true
33-
-
34-
command : yay --needed --noconfirm -S docker docker-compose && sudo systemctl enable docker && sudo systemctl start docker && sudo groupadd docker && sudo usermod -a -G docker $USER
35-
description: Installing docker
36-
stdin: true
37-
stdout: true
38-
stderr: true
39-
-
40-
command : yay --needed --noconfirm -S jdk8-openjdk openjdk8-doc openjdk8-src
41-
description: Installing java software
42-
stdin: true
43-
stdout: true
44-
stderr: true
45-
-
46-
command : sudo sh -c 'echo "JAVA_HOME=/usr/lib/jvm/java-8-openjdk/" > /etc/profile.d/jdk.sh ' && source /etc/profile.d/jdk.sh
47-
description: "Setup JAVA_HOME for arch"
48-
stdin: true
49-
stdout: true
50-
stderr: true
51-
-
52-
command: mkdir -p ~/.local/share/fonts/monoid_nerd && cp ~/.dotfiles/fonts/monid_nerd/* ~/.local/share/fonts/monoid_nerd && sudo fc-cache
53-
description: "Installing custom fonts"
54-
stdin: true
55-
stdout: true
56-
stderr: true
57-
-
58-
command: ssh-keygen -t rsa -b 4096
59-
description: Generating ssh key
60-
stdin: true
61-
stdout: true
62-
stderr: true
63-
-
64-
command: yarn global add gitmoji-cli tldr wallhaven-fetcher
65-
description: "Installing global tools via yarn"
66-
stdin: true
67-
stdout: true
68-
stderr: true
69-
- source ~/.zshrc || true
8+
- command: yay --needed --noconfirm -S pacman-contrib ttf-monoid ttf-unifont ttf-font-awesome nerd-fonts-complete noto-fonts-emoji
9+
description: Installing fonts
10+
stdin: true
11+
stdout: true
12+
stderr: true
13+
- command: yay --needed --noconfirm -S termite lsd bat
14+
description: Installing fonts
15+
stdin: true
16+
stdout: true
17+
stderr: true
18+
- command: yay --needed --noconfirm -S gnu-netcat rofi-git zsh feh fzf i3-gaps-next-git xautolock polybar tree i3lock-fancy-git cower compton checkupdates+aur checkupdates-aur ranger-git rofi-git pygmentize fzy xclip evince perl-file-mimeinfo openssh thunar-archive-plugin thunar
19+
description: Installing base software
20+
stdin: true
21+
stdout: true
22+
stderr: true
23+
- command: yay --needed --noconfirm -S yarn gitflow-avh gitflow-zshcompletion-avh nodejs jetbrains-toolbox npm nvm neovim
24+
description: Installing codding tools
25+
stdin: true
26+
stdout: true
27+
stderr: true
28+
- command: yay --needed --noconfirm -S telegram-desktop spotify-dev slack-desktop
29+
description: Installing other software
30+
stdin: true
31+
stdout: true
32+
stderr: true
33+
- command: yay --needed --noconfirm -S docker docker-compose && sudo systemctl enable docker && sudo systemctl start docker && sudo groupadd docker && sudo usermod -a -G docker $USER
34+
description: Installing docker
35+
stdin: true
36+
stdout: true
37+
stderr: true
38+
- command: yay --needed --noconfirm -S jdk8-openjdk openjdk8-doc openjdk8-src
39+
description: Installing java software
40+
stdin: true
41+
stdout: true
42+
stderr: true
43+
- command: sudo sh -c 'echo "JAVA_HOME=/usr/lib/jvm/java-8-openjdk/" > /etc/profile.d/jdk.sh ' && source /etc/profile.d/jdk.sh
44+
description: "Setup JAVA_HOME for arch"
45+
stdin: true
46+
stdout: true
47+
stderr: true
48+
- command: mkdir -p ~/.local/share/fonts/monoid_nerd && cp ~/.dotfiles/fonts/monid_nerd/* ~/.local/share/fonts/monoid_nerd && sudo fc-cache
49+
description: "Installing custom fonts"
50+
stdin: true
51+
stdout: true
52+
stderr: true
53+
- command: ssh-keygen -t rsa -b 4096
54+
description: Generating ssh key
55+
stdin: true
56+
stdout: true
57+
stderr: true
58+
- command: yarn global add gitmoji-cli tldr wallhaven-fetcher
59+
description: "Installing global tools via yarn"
60+
stdin: true
61+
stdout: true
62+
stderr: true
63+
- source ~/.zshrc || true

0 commit comments

Comments
 (0)