summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i3/config25
-rw-r--r--kitty/kitty.conf4
-rw-r--r--sxhkd/sxhkdrc14
-rw-r--r--vim/.vimrc5
-rw-r--r--zsh/.zshrc17
5 files changed, 49 insertions, 16 deletions
diff --git a/i3/config b/i3/config
index a766a05..a6b1ea4 100644
--- a/i3/config
+++ b/i3/config
@@ -30,7 +30,7 @@ exec --no-startup-id dex --autostart --environment i3
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
-exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
+exec --no-startup-id xss-lock --transfer-sleep-lock -- lock.sh --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
@@ -38,11 +38,13 @@ exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
-bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
-bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
+bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
+bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
+bindsym $mod+Shift+X exec --no-startup-id xset s activate
+
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
@@ -185,8 +187,19 @@ mode "resize" {
bindsym $mod+r mode "resize"
+# Colors - indicator = next window direction
+# class border backgr. text indicator child_border
+client.focused #6A9589 #6A9589 #DCD7BA #6A9589 #6A9589
+client.focused_inactive #D27E99 #5f676a #DCD7BA #E46876 #5f676a
+client.unfocused #7E9CD8 #7E9CD8 #A3D4D5 #7E9CD8 #7E9CD8
+client.urgent #E82424 #900000 #DCD7BA #900000 #900000
+client.placeholder #000000 #0c0c0c #DCD7BA #000000 #0c0c0c
+client.background #ffffff
+
+exec_always --no-startup-id ~/.config/scripts/polybar.sh &
+
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
-bar {
- status_command i3_status
-}
+#bar {
+ #status_command i3status
+#}
diff --git a/kitty/kitty.conf b/kitty/kitty.conf
index 7feea76..2fe843a 100644
--- a/kitty/kitty.conf
+++ b/kitty/kitty.conf
@@ -1238,7 +1238,7 @@ confirm_os_window_close 0
#: The foreground and background colors.
-# background_opacity 1.0
+background_opacity 1.0
#: The opacity of the background. A number between zero and one, where
#: one is opaque and zero is fully transparent. This will only work if
@@ -2687,4 +2687,4 @@ confirm_os_window_close 0
# BEGIN_KITTY_THEME
# Kanagawa
include current-theme.conf
-# END_KITTY_THEME \ No newline at end of file
+# END_KITTY_THEME
diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc
index 85552e1..35eb9bc 100644
--- a/sxhkd/sxhkdrc
+++ b/sxhkd/sxhkdrc
@@ -1,15 +1,15 @@
super + Escape
kill -10 $(pidof sxhkd)
super + d
- dmenu_run -hp "browser,mail,librewolf,discord,steam"
-super + shift + e
- dmenuquit
+ dmenu_run -hp "browser,mail,librewolf,discord,steam,homestuck"
+# super + shift + e
+ # dmenuquit
Print
screenshot
XF86Explorer
- st -e lfub ~
+ kitty -e lf ~
super + g
- st -e lfub ~/games
+ kitty -e lf ~/games
XF86WakeUp
nsxiv -f ~/img/wakeup.png
XF86Mail
@@ -28,6 +28,10 @@ XF86Audio{Prev,Next,Play}
musiccmd {prev,next,cycle}
XF86AudioStop
musiccmd stop
+XF86MonBrightnessUp
+ bright up
+XF86MonBrightnessDown
+ bright down
super + {s,a,y,w,e}
dmenusearch {web,aur,youtube,man,emoji}
super + shift + w
diff --git a/vim/.vimrc b/vim/.vimrc
index f440cfe..69a5370 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -1,4 +1,9 @@
syntax on
+set cindent
+set tabstop=4
+set softtabstop=4
+set shiftwidth=4
+set expandtab
set backspace=indent,eol,start
set colorcolumn=80
set relativenumber
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 91d4976..654b767 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -40,7 +40,6 @@ alias bri5="xrandr --output eDP-1 --brightness 0.5"
alias bri6="xrandr --output eDP-1 --brightness 0.6"
alias ascii="ascii -d"
alias sudo="sudo "
-alias lf="lfub"
alias vmk="v Makefile"
alias cmk="xsel -bo > Makefile"
alias cf="$HOME/.config/"
@@ -51,17 +50,22 @@ alias cn="$XDG_CONFIG_HOME/vim"
alias dl="$HOME/Téléchargements"
alias rps="echo help | nc ratakor.com 9998"
alias v="vim"
+alias sv="sudoedit"
alias cdmnt="sudo mount -t iso9660 -o ro /dev/sr0 $HOME/cdrom"
alias py="python3"
alias wtr="curl wttr.in/Lyon"
alias doc="$HOME/Documents"
alias usbmnt="sudo mount /dev/sdb1 $HOME/usb"
-alias sss="ssh root@marcellus.cc"
-alias ssg="ssh git@marcellus.cc"
+alias sss="ssh -4 marcellus@marcellus.cc"
+alias ssg="ssh -4 git@marcellus.cc"
alias mpv="xset -dpms && xset s off && mpv"
alias doc="~/Documents"
alias ing="cd $HOME/epita/ING1"
+alias sb="cd ~/supbiotech"
alias pdf=zathura
+alias img=nsxiv
+alias caf='find -name "*.[ch]" -exec clang-format --style=file --verbose -i {} \;'
+alias cafn='find -name "*.[ch]" -exec clang-format --style=file -n -i {} \;'
autoload -U compinit
zstyle ':completion:*' menu select
@@ -81,7 +85,14 @@ zstyle ':vcs_info:*' enable git
bindkey -e
+cafs(){
+ kinit -f martial.simon@CRI.EPITA.FR
+ umount ~/afs/
+ sshfs -o reconnect martial.simon@ssh.cri.epita.fr:/afs/cri.epita.fr/user/m/ma/martial.simon/u/ ~/afs
+}
+
qc(){
cc "$1" && ./a.out
}
eval $(thefuck --alias merde)
+