Browse Source

refactoring config

master
Simon Vieille 7 months ago
parent
commit
542fa6e379
Signed by: Simon Vieille <simon@deblan.fr> GPG Key ID: 03383D15A1D31745
1 changed files with 180 additions and 232 deletions
  1. 180
    232
      config

+ 180
- 232
config View File

@@ -1,159 +1,226 @@
# @see: $ xmodmap
set $mod Mod4
set $window Mod4
set $altleft Mod1
set $shift Shift
set $space space
set $enter Return
set $escape Escape
set $ctrl control
set $backspace BackSpace
set $left Left
set $up Up
set $right Right
set $down Down

set $wp1 "1. IRC"
set $wp2 "2. WWW"
set $wp3 "3. MAIL"
set $wp4 "4"
set $wp5 "5"
set $wp6 "6. MEDIA"
set $wp7 "7. WORK"
set $wp8 "8"
set $wp9 "9"
set $wp10 "10"
set $wp11 "11"
set $wp12 "12"

#font for window titles. ISO 10646 = Unicode
#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
#font pango:Droid Sans Mono 9
#font xft:Inconsolata:style=Regular:
# class border backgr. text indicator
client.focused #9B2A5D #000000 #ffffff #2e9ef4
client.focused_inactive #333333 #5f676a #ffffff #484e50
client.unfocused #333333 #222222 #888888 #292d2e
client.urgent #2f343a #87af15 #ffffff #900000

font pango:Bitstream Vera Sans Mono, 9
workspace_auto_back_and_forth yes

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# @see fc-list, fc-cache -f -v
font pango:Bitstream Vera Sans Mono, 9
#font pango:System San Francisco Display 8
#
# Use Mouse+$window to drag floating windows to their wanted position
floating_modifier $window

# start a terminal
# bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Return exec ~/bin/urxvt
# bindsym $window+$enter exec i3-sensible-terminal
bindsym $window+$enter exec ~/bin/urxvt

# kill focused window
bindsym $mod+Shift+A kill
bindsym $window+$shift+A kill

# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run -nb '#333333' -nf '#ffffff' -sb '#982323' -p "$" -fn 'Bitstream Vera Sans Mono-9'
bindsym $mod+shift+d exec ~/bin/i3_winmenu
bindsym $window+d exec dmenu_run -nb '#333333' -nf '#ffffff' -sb '#982323' -p "$" -fn 'Bitstream Vera Sans Mono-9'
bindsym $window+$shift+d exec xfce4-appfinder

# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
#bindsym $mod+l focus up
bindsym $mod+m focus right
bindsym $window+j focus left
bindsym $window+k focus down
#bindsym $window+l focus u
bindsym $window+m focus right

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $window+$left focus left
bindsym $window+$down focus down
bindsym $window+$up focus up
bindsym $window+$right focus right

# move focused window
bindsym $mod+Shift+J move left
bindsym $mod+Shift+K move down
bindsym $mod+Shift+L move up
bindsym $mod+Shift+M move right
bindsym $window+$shift+J move left
bindsym $window+$shift+K move down
bindsym $window+$shift+L move up
bindsym $window+$shift+M move right

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# split in horizontal orientation
bindsym $mod+h split h

# kill focused window
bindsym $mod+Shift+q kill
bindsym $window+$shift+$left move left
bindsym $window+$shift+$down move down
bindsym $window+$shift+$up move up
bindsym $window+$shift+$right move right

# split in vertical orientation
bindsym $mod+v split v
bindsym $window+h split h
bindsym $window+v split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
bindsym $window+$shift+q kill
bindsym $window+f fullscreen

# change container layout (stacked, tabbed, default)
bindsym $mod+s layout stacking
bindsym $mod+z layout tabbed
bindsym $mod+e layout default
bindsym $window+s layout stacking
bindsym $window+z layout tabbed
bindsym $window+e layout default

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
bindsym $window+$shift+$space floating toggle

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
bindsym $window+$space focus mode_toggle

# focus the parent container
bindsym $mod+q focus parent
bindsym $window+q focus parent

# focus the child container
#bindcode $mod+d focus child

# bindsym $mod+x move workspace to output right
bindsym $mod+b workspace back_and_forth
bindsym $window+b workspace back_and_forth

# Go to a workspace
bindsym $mod+F1 workspace "1. IRC"
bindsym $mod+F2 workspace "2. WWW"
bindsym $mod+F3 workspace "3. MAIL"
bindsym $mod+F4 workspace "4"
bindsym $mod+F5 workspace "5"
bindsym $mod+F6 workspace "6. MEDIA"
bindsym $mod+F7 workspace "7: WORK"
bindsym $mod+F8 workspace "8: VM"
bindsym $mod+F9 workspace "9"
bindsym $mod+F10 workspace "10"
bindsym $mod+F11 workspace "11"
bindsym $mod+F12 workspace "12"

# move focused container to workspace
bindsym $mod+Shift+F1 move container to workspace "1. IRC"
bindsym $mod+Shift+F2 move container to workspace "2. WWW"
bindsym $mod+Shift+F3 move container to workspace "3. MAIL"
bindsym $mod+Shift+F4 move container to workspace "4"
bindsym $mod+Shift+F5 move container to workspace "5"
bindsym $mod+Shift+F6 move container to workspace "6. MEDIA"
bindsym $mod+Shift+F7 move container to workspace "7: WORK"
bindsym $mod+Shift+F8 move container to workspace "8: VM"
bindsym $mod+Shift+F9 move container to workspace "9"
bindsym $mod+Shift+F10 move container to workspace "10"
bindsym $mod+Shift+F11 move container to workspace "11"
bindsym $mod+Shift+F12 move container to workspace "12"

workspace_auto_back_and_forth yes

# reload the configuration file
bindsym $mod+Shift+C reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+R restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+E exit
bindsym $window+F1 workspace $wp1
bindsym $window+F2 workspace $wp2
bindsym $window+F3 workspace $wp3
bindsym $window+F4 workspace $wp4
bindsym $window+F5 workspace $wp5
bindsym $window+F6 workspace $wp6
bindsym $window+F7 workspace $wp7
bindsym $window+F8 workspace $wp8
bindsym $window+F9 workspace $wp9
bindsym $window+F10 workspace $wp10
bindsym $window+F11 workspace $wp11
bindsym $window+F12 workspace $wp12
bindsym $window+$shift+F1 move container to workspace $wp1
bindsym $window+$shift+F2 move container to workspace $wp2
bindsym $window+$shift+F3 move container to workspace $wp3
bindsym $window+$shift+F4 move container to workspace $wp4
bindsym $window+$shift+F5 move container to workspace $wp5
bindsym $window+$shift+F6 move container to workspace $wp6
bindsym $window+$shift+F7 move container to workspace $wp7
bindsym $window+$shift+F8 move container to workspace $wp8
bindsym $window+$shift+F9 move container to workspace $wp9
bindsym $window+$shift+F10 move container to workspace $wp10
bindsym $window+$shift+F11 move container to workspace $wp11
bindsym $window+$shift+F12 move container to workspace $wp12
bindsym $window+$shift+C reload
bindsym $window+$shift+R restart
bindsym $window+$shift+E exit
bindsym $window+r mode "resize"

# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode

# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym h resize shrink width 5 px or 5 ppt
bindsym j resize grow height 5 px or 5 ppt
bindsym u resize shrink height 5 px or 5 ppt
bindsym k resize grow width 5 px or 5 ppt

# same bindings, but for the arrow keys
bindsym 113 resize shrink width 10 px or 10 ppt
bindsym 116 resize grow height 10 px or 10 ppt
bindsym 111 resize shrink height 10 px or 10 ppt
bindsym 114 resize grow width 10 px or 10 ppt
bindsym $right resize shrink width 5 px or 5 ppt
bindsym $up resize grow height 5 px or 5 ppt
bindsym $down resize shrink height 5 px or 5 ppt
bindsym $left resize grow width 5 px or 5 ppt

# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $enter mode "default"
bindsym $escape mode "default"
}

bindsym $mod+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bindsym Print exec ~/bin/screenshot
bindsym $altleft+F10 exec ~/bin/screenshot_zone
bindsym $window+Print exec ~/bin/upload_wall
bindsym $window+$altleft+l exec ~/bin/lock
bindsym $window+$shift+t exec monitordisplay -t
bindsym $window+$backspace move scratchpad
bindsym $window+$shift+$backspace scratchpad show
bindsym XF86MonBrightness$up exec xbacklight + 7
bindsym XF86MonBrightness$down exec xbacklight - 7
bindsym $shift+$window+h exec xbacklight + 7
bindsym $shift+$window+n exec xbacklight - 7
bindsym $window+$altleft+$shift+n exec mpc next
bindsym $window+$altleft+$shift+h exec mpc prev
bindsym $window+$altleft+$shift+p exec mpc toggle
bindsym $window+$altleft+n exec playerctl -p spotify next
bindsym $window+$altleft+h exec playerctl -p spotify previous
bindsym $window+$altleft+p exec playerctl -p spotify play-pause
bindsym XF86HomePage exec ~/bin/uzbl
bindsym XF86AudioRaiseVolume exec amixer set Master 2%+
bindsym XF86AudioLowerVolume exec amixer set Master 2%-
bindsym $altleft+g exec amixer set Master 2%+
bindsym $altleft+b exec amixer set Master 2%-
bindsym $window+p exec ~/bin/i3_switch_workspace.php previous
bindsym $window+n exec ~/bin/i3_switch_workspace.php next
bindsym $altleft+F1 exec ~/bin/i3_switch_focus_container.php 1
bindsym $altleft+F2 exec ~/bin/i3_switch_focus_container.php 2
bindsym $altleft+F3 exec ~/bin/i3_switch_focus_container.php 3
bindsym $altleft+F4 exec ~/bin/i3_switch_focus_container.php 4
bindsym $altleft+F5 exec ~/bin/i3_switch_focus_container.php 5
bindsym $altleft+F6 exec ~/bin/i3_switch_focus_container.php 6
bindsym $window+x move workspace to output left
bindsym $window+c exec ~/bin/i3_switch_monitor_wrapper.sh
bindsym $altleft+$shift+h exec ~/bin/i3_move_mouse.sh left
bindsym $altleft+$shift+k exec ~/bin/i3_move_mouse.sh right
bindsym $altleft+$shift+u exec ~/bin/i3_move_mouse.sh up
bindsym $altleft+$shift+j exec ~/bin/i3_move_mouse.sh down
bindsym $window+$shift+y exec ~/bin/i3_mouse_click.sh
bindsym $ctrl+$shift+f exec ~/bin/search
bindsym $ctrl+$altleft+$shift+e exec sudo shutdown -h now
bindsym $ctrl+$altleft+$shift+r exec sudo shutdown -r now
bindsym $ctrl+$window+e exec pcmanfm
bindsym XF86Calculator exec qalculate
bindsym $window+l exec mlclipboard
bindsym $window+$shift+S exec i3-msg "sticky toggle"

for_window [title="Deluge"] floating enable
for_window [title="VirtualBox"] floating enable
for_window [title="Thème du panel tint2"] floating enable
for_window [title="Gestionnaire de tâches"] floating enable
for_window [title="Liste des applications"] floating enable
for_window [title="crire un SMS"] floating enable
for_window [title="OBS"] floating enable
for_window [title="SimpleScreenRecorder"] floating enable
for_window [title="QuickSynergy"] floating enable
for_window [title="recordMyDesktop"] floating enable
for_window [title="Redmine - Desktop client"] floating enable
for_window [title="Sozi"] floating enable
for_window [title="Volti"] floating enable
for_window [title="Choqok"] floating enable
for_window [title="xmessage_upload"] floating enable
for_window [title="ouvrir une session"] floating enable
for_window [title="Wicd"] floating enable
for_window [title="Qalculate!"] floating enable
for_window [title="Gnuplot"] floating enable
for_window [title="Network Connect"] floating enable
for_window [title="Android Emulator"] floating enable
for_window [title="Guake"] floating enable
for_window [title=".*"] border 1pixel

bar {
#status_command ~/.i3/i3status.sh
status_command i3blocks -c ~/.i3/bar/bar1.conf
position top
output eDP1
tray_output primary

output DP1
output HDMI1
output eDP1

colors {
#background #111111
background #000000
statusline #ffffff
#border bg text
@@ -164,25 +231,8 @@ bar {
}
}

#bar {
# status_command ~/.i3/i3status2.sh
# position top
# tray_output none
#
# colors {
# background #111111
# statusline #ffffff
# #border bg text
# focused_workspace #AC2E67 #9B2A5D #ffffff
# active_workspace #333333 #5f676a #ffffff
# inactive_workspace #111111 #111111 #888888
# urgent_workspace #2f343a #87af15 #ffffff
# }
#}

bar {
status_command ~/.i3/processList.sh
#status_command i3blocks
workspace_buttons no
position bottom
tray_output none
@@ -190,17 +240,12 @@ bar {
output HDMI1
output DP1
mode hide
modifier mod1
modifier $altleft

colors {
#background #111111
background #000000
statusline #ffffff
#border bg text
# focused_workspace #AC2E67 #9B2A5D #ffffff
# active_workspace #333333 #5f676a #ffffff
# inactive_workspace #111111 #111111 #888888
# urgent_workspace #2f343a #87af15 #ffffff
focused_workspace #a74068 #bd4875 #ffffff
active_workspace #333333 #5f676a #ffffff
inactive_workspace #111111 #111111 #888888
@@ -208,120 +253,23 @@ bar {
}
}

for_window [title="OBS"] floating enable
for_window [title="(En fonction)"] floating enable
for_window [title="SimpleScreenRecorder"] floating enable
for_window [title="QuickSynergy"] floating enable
for_window [title="recordMyDesktop"] floating enable
for_window [title="Redmine - Desktop client"] floating enable
for_window [title="Sozi"] floating enable
for_window [title="Volti"] floating enable
for_window [title="Choqok"] floating enable
for_window [title="xmessage_upload"] floating enable
for_window [title="TeamViewer"] floating enable
for_window [title="ouvrir une session"] floating enable
for_window [title="Wicd"] floating enable
for_window [title="Qalculate!"] floating enable
for_window [title="Gnuplot"] floating enable
for_window [title="Network Connect"] floating enable
for_window [title="Android Emulator"] floating enable
for_window [title="Guake"] floating enable
for_window [title=".*"] border 1pixel

#exec utox
exec tint2
exec rofi -key-run 'SuperL+Alt+d' -Key-ssh 'SuperL+Alt+s' -key-window 'SuperL+Alt+w'
exec feh --bg-fill ~/wallpaper.jpg
exec setxkbmap fr oss
exec mpd
exec owncloud
exec nextcloud
exec gpg-agent --daemon
exec wicd-gtk -t
exec alsactl init -c 1
exec volumeicon
exec ~/bin/sshplus.py
exec ~/make/dunst/dunst
exec systemctl --user start xfce4-notifyd
exec sleep 3 && monitordisplay -s -m laptop
exec sleep 3 && monitordisplay -s -m hdmi
exec ~/bin/reload_wallpaper
exec redshift-gtk -l 47.51659:6.7809
exec blueman-applet
exec guake

#exec pulseaudio --start
# exec synclient MiddleButtonAreaRight=3500
# exec synclient MiddleButtonAreaLeft=2700
# exec synclient MiddleButtonAreaRight=3500
# exec synclient MiddleButtonAreaLeft=2700
# exec xcompmgr -c
exec /home/simon/bin/remote_i3_server
exec flatpak run com.github.bajoja.indicator-kdeconnect/x86_64/stable
exec xbacklight + 100

# Softwares bind
bindsym Print exec ~/bin/screenshot
bindsym mod1+F10 exec ~/bin/screenshot_zone
bindsym $mod+Print exec ~/bin/upload_wall
bindsym $mod+mod1+l exec ~/bin/lock
bindsym $mod+Shift+t exec monitordisplay -t

bindsym $mod+BackSpace move scratchpad
bindsym $mod+Shift+BackSpace scratchpad show

bindsym XF86MonBrightnessUp exec xbacklight + 7
bindsym XF86MonBrightnessDown exec xbacklight - 7
bindsym Shift+$mod+h exec xbacklight + 7
bindsym Shift+$mod+n exec xbacklight - 7

bindsym $mod+mod1+shift+n exec mpc next
bindsym $mod+mod1+shift+h exec mpc prev
bindsym $mod+mod1+shift+p exec mpc toggle

bindsym $mod+mod1+n exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
bindsym $mod+mod1+h exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
bindsym $mod+mod1+p exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause

bindsym XF86HomePage exec ~/bin/uzbl
bindsym XF86AudioRaiseVolume exec amixer set Master 2%+
bindsym XF86AudioLowerVolume exec amixer set Master 2%-
bindsym mod1+g exec amixer set Master 2%+
bindsym mod1+b exec amixer set Master 2%-

bindsym $mod+p exec ~/bin/i3_switch_workspace.php previous
bindsym $mod+n exec ~/bin/i3_switch_workspace.php next
bindsym mod1+mod1+k exec ~/bin/i3_empty_firefox_search_and_search.sh

bindsym mod1+F1 exec ~/bin/i3_switch_focus_container.php 1
bindsym mod1+F2 exec ~/bin/i3_switch_focus_container.php 2
bindsym mod1+F3 exec ~/bin/i3_switch_focus_container.php 3
bindsym mod1+F4 exec ~/bin/i3_switch_focus_container.php 4
bindsym mod1+F5 exec ~/bin/i3_switch_focus_container.php 5
bindsym mod1+F6 exec ~/bin/i3_switch_focus_container.php 6

bindsym $mod+x move workspace to output left
bindsym $mod+c exec ~/bin/i3_switch_monitor_wrapper.sh

bindsym mod1+Shift+h exec ~/bin/i3_move_mouse.sh left
bindsym mod1+Shift+k exec ~/bin/i3_move_mouse.sh right
bindsym mod1+Shift+u exec ~/bin/i3_move_mouse.sh up
bindsym mod1+Shift+j exec ~/bin/i3_move_mouse.sh down
bindsym $mod+Shift+y exec ~/bin/i3_mouse_click.sh

bindsym control+Shift+f exec ~/bin/search

bindsym control+mod1+shift+e exec sudo shutdown -h now
bindsym control+mod1+shift+r exec sudo shutdown -r now

bindsym control+$mod+e exec pcmanfm

bindsym XF86Calculator exec qalculate
bindsym XF86Mail exec icedove

bindsym $mod+l exec mlclipboard

bindsym $mod+Shift+S exec i3-msg "sticky toggle"

# class border backgr. text indicator
client.focused #9B2A5D #000000 #ffffff #2e9ef4
client.focused_inactive #333333 #5f676a #ffffff #484e50
client.unfocused #333333 #222222 #888888 #292d2e
client.urgent #2f343a #87af15 #ffffff #900000

#4c7899

Loading…
Cancel
Save