Skip to content

Commit

Permalink
update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
beaussan committed Dec 18, 2020
1 parent 8c2f77d commit a5341ce
Show file tree
Hide file tree
Showing 11 changed files with 116 additions and 81 deletions.
1 change: 1 addition & 0 deletions default.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
~/bin: general/bin
~/.i3/config: general/i3config
~/.i3/pad.png: general/pad.png
~/.nbxrc: general/nbxrc
~/.compton.conf: general/compton.conf
~/.tmux.conf: general/tmux.conf
~/.tmux.conf.local: general/tmux.conf.local
Expand Down
10 changes: 6 additions & 4 deletions general/compton.conf
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ inactive-opacity = 0.7;
active-opacity = 0.9;
frame-opacity = 0.7;
inactive-opacity-override = false;
alpha-step = 0.06;
# alpha-step = 0.06;

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

opacity-rule = [
"99:class_g = 'Firefox'",
"99:class_g = 'Nightly'",
"99:class_g = 'Google-chrome'",
"99:class_g = 'factorio'",
"99:class_g = 'Vivaldi-stable'",
"99:class_g ~= 'notion-nativefier.*'",

"99:class_g = 'Vlc'"
"99:class_g ~= 'Minecraft.*'",
"99:class_g = 'Vlc'",
"99:class_g = 'zoom'"
];


Expand Down Expand Up @@ -201,7 +203,7 @@ vsync = "opengl-swc";
# Reported to have no effect, though.
dbe = false;
# Painting on X Composite overlay window. Recommended.
paint-on-overlay = true;
# paint-on-overlay = true;

# Limit compton to repaint at most once every 1 / refresh_rate second to boost performance.
# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
Expand Down
4 changes: 4 additions & 0 deletions general/gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@
insteadOf = git://
[commit]
gpgsign = true
[pull]
rebase = false
[init]
defaultBranch = main
7 changes: 4 additions & 3 deletions general/i3config
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ bindsym $mod+shift+t exec xfce4-terminal -e ranger
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"

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

# lock screen
Expand Down Expand Up @@ -215,9 +215,10 @@ exec --no-startup-id feh --bg-scale ~/.dotfiles/wall.jpg
#exec --no-startup-id xautolock -time 10 -locker /home/mathieu/scripts/lock.sh -secure
#exec --no-startup-id ~/scripts/random_wallpaper.sh
exec --no-startup-id xautolock -time 10 -locker ~/scripts/lock.sh -secure
exec --no-startup-id exec compton -cb --config .compton.conf
exec --no-startup-id exec compton -cb --config .compton.conf
exec --no-startup-id exec picom -cb --config .compton.conf
exec --no-startup-id exec picom -cb --config .compton.conf
exec --no-startup-id flameshot
exec --no-startup-id pasystray
exec --no-startup-id jetbrains-toolbox --minimize --disable-seccomp-filter-sandbox
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
exec xrdb ~/.Xresources
Expand Down
6 changes: 6 additions & 0 deletions general/nbxrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"git": {
"user": "Nicolas Beaussart",
"email": "[email protected]"
}
}
35 changes: 32 additions & 3 deletions general/polybar.config
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ modules-center =
modules-right = wlan xbacklight battery cpu memory voltage temperature

tray-detached = false
tray-position = right
tray-position = ${env:TRAY_POSITION:}

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

modules-left = i3
modules-left = i3 red yellow green
modules-center = xwindow
modules-right = volume pkg date background Shutdown


[module/red]
type = custom/script
exec = echo ""
click-left = node ~/perso/projects/blinkstick/index.js red
click-right = node ~/perso/projects/blinkstick/index.js red
click-middle = node ~/perso/projects/blinkstick/index.js red
format-padding = 0
format-foreground = #e33232

[module/yellow]
type = custom/script
exec = echo ""
click-left = node ~/perso/projects/blinkstick/index.js yellow
click-right = node ~/perso/projects/blinkstick/index.js yellow
click-middle = node ~/perso/projects/blinkstick/index.js yellow
format-padding = 0
format-foreground = #e3ce32

[module/green]
type = custom/script
exec = echo ""
click-left = node ~/perso/projects/blinkstick/index.js green
click-right = node ~/perso/projects/blinkstick/index.js green
click-middle = node ~/perso/projects/blinkstick/index.js green
format-padding = 0
format-foreground = #32e361

[module/vpncheck]
type = custom/script
exec = pgrep openvpn
Expand Down Expand Up @@ -194,6 +222,7 @@ label-empty-padding = 2
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
pin-workspaces = true
wrapping-scroll = false
strip-wsnumbers = true

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

format-disconnected =  not connected
format-disconnected =  Not connected
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
Expand Down
4 changes: 3 additions & 1 deletion general/polybar.launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ WIFI_CARD=$(iw dev | awk '$1=="Interface"{print $2}')
# Launch bar1 and bar2
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$m WIFI_CARD=$WIFI_CARD polybar downbar &
[[ $m = eDP1 ]] && tray="right" || tray=""
echo $m $tray $WIFI_CARD
MONITOR=$m WIFI_CARD=$WIFI_CARD TRAY_POSITION=$tray polybar downbar &
MONITOR=$m WIFI_CARD=$WIFI_CARD polybar default &
done
else
Expand Down
4 changes: 2 additions & 2 deletions general/scripts/init_workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ workspace7="7:"

# App you want to start :
apps=(
#if you're using urxvt then replace st with that
"notion"
"telegram-desktop"
"google-chrome-stable"
"termite"
#"google-chrome-stable"
"termite"
"termite"
"slack"
Expand Down
8 changes: 2 additions & 6 deletions general/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,13 @@ ENHANCD_FILTER=fzf; export ENHANCD_FILTER
source $ZSH/oh-my-zsh.sh

# Load nvm init script
if [ -f /usr/share/nvm/init-nvm.sh ]; then
source /usr/share/nvm/init-nvm.sh
fi
[ -f /usr/share/nvm/init-nvm.sh ] && source /usr/share/nvm/init-nvm.sh

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

# Load git flow completion
if [ -f /usr/share/zsh/site-functions/git-flow-completion.zsh ]; then
source /usr/share/zsh/site-functions/git-flow-completion.zsh
fi
[ -f /usr/share/zsh/site-functions/git-flow-completion.zsh ] && source /usr/share/zsh/site-functions/git-flow-completion.zsh

###### Overides

Expand Down
118 changes: 56 additions & 62 deletions setupStd.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,66 +4,60 @@
create: true
force: true


- shell:
-
command : yay --needed --noconfirm -S pacman-contrib ttf-monoid ttf-unifont ttf-font-awesome nerd-fonts-complete noto-fonts-emoji
description: Installing fonts
stdin: true
stdout: true
stderr: true
-
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
description: Installing base software
stdin: true
stdout: true
stderr: true
-
command : yay --needed --noconfirm -S yarn gitflow-avh gitflow-zshcompletion-avh nodejs jetbrains-toolbox npm nvm neovim
description: Installing codding tools
stdin: true
stdout: true
stderr: true
-
command : yay --needed --noconfirm -S telegram-desktop spotify-dev slack-desktop
description: Installing other software
stdin: true
stdout: true
stderr: true
-
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
description: Installing docker
stdin: true
stdout: true
stderr: true
-
command : yay --needed --noconfirm -S jdk8-openjdk openjdk8-doc openjdk8-src
description: Installing java software
stdin: true
stdout: true
stderr: true
-
command : sudo sh -c 'echo "JAVA_HOME=/usr/lib/jvm/java-8-openjdk/" > /etc/profile.d/jdk.sh ' && source /etc/profile.d/jdk.sh
description: "Setup JAVA_HOME for arch"
stdin: true
stdout: true
stderr: true
-
command: mkdir -p ~/.local/share/fonts/monoid_nerd && cp ~/.dotfiles/fonts/monid_nerd/* ~/.local/share/fonts/monoid_nerd && sudo fc-cache
description: "Installing custom fonts"
stdin: true
stdout: true
stderr: true
-
command: ssh-keygen -t rsa -b 4096
description: Generating ssh key
stdin: true
stdout: true
stderr: true
-
command: yarn global add gitmoji-cli tldr wallhaven-fetcher
description: "Installing global tools via yarn"
stdin: true
stdout: true
stderr: true
- source ~/.zshrc || true
- command: yay --needed --noconfirm -S pacman-contrib ttf-monoid ttf-unifont ttf-font-awesome nerd-fonts-complete noto-fonts-emoji
description: Installing fonts
stdin: true
stdout: true
stderr: true
- command: yay --needed --noconfirm -S termite lsd bat
description: Installing fonts
stdin: true
stdout: true
stderr: true
- 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
description: Installing base software
stdin: true
stdout: true
stderr: true
- command: yay --needed --noconfirm -S yarn gitflow-avh gitflow-zshcompletion-avh nodejs jetbrains-toolbox npm nvm neovim
description: Installing codding tools
stdin: true
stdout: true
stderr: true
- command: yay --needed --noconfirm -S telegram-desktop spotify-dev slack-desktop
description: Installing other software
stdin: true
stdout: true
stderr: true
- 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
description: Installing docker
stdin: true
stdout: true
stderr: true
- command: yay --needed --noconfirm -S jdk8-openjdk openjdk8-doc openjdk8-src
description: Installing java software
stdin: true
stdout: true
stderr: true
- command: sudo sh -c 'echo "JAVA_HOME=/usr/lib/jvm/java-8-openjdk/" > /etc/profile.d/jdk.sh ' && source /etc/profile.d/jdk.sh
description: "Setup JAVA_HOME for arch"
stdin: true
stdout: true
stderr: true
- command: mkdir -p ~/.local/share/fonts/monoid_nerd && cp ~/.dotfiles/fonts/monid_nerd/* ~/.local/share/fonts/monoid_nerd && sudo fc-cache
description: "Installing custom fonts"
stdin: true
stdout: true
stderr: true
- command: ssh-keygen -t rsa -b 4096
description: Generating ssh key
stdin: true
stdout: true
stderr: true
- command: yarn global add gitmoji-cli tldr wallhaven-fetcher
description: "Installing global tools via yarn"
stdin: true
stdout: true
stderr: true
- source ~/.zshrc || true
Binary file added wall_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a5341ce

Please sign in to comment.