much config. such changes. wow
This commit is contained in:
parent
6944bc9884
commit
603d1b687c
16 changed files with 942 additions and 174 deletions
BIN
config/i3/bg.jpg
Executable file
BIN
config/i3/bg.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 173 KiB |
7
config/i3/blurlock
Executable file
7
config/i3/blurlock
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
i3-msg workspace Lock
|
||||
imgpath=$HOME/.cache/blurlock.png
|
||||
scrot $imgpath
|
||||
convert $imgpath -blur 0x5 $imgpath
|
||||
i3lock -f -i $imgpath
|
||||
i3-msg workspace back_and_forth
|
||||
332
config/i3/config
332
config/i3/config
|
|
@ -1,52 +1,72 @@
|
|||
# This file has been auto-generated by i3-config-wizard(1). It will
|
||||
# not be overwritten, so edit it as you like.
|
||||
#
|
||||
# Should you change your keyboard layout some time, delete
|
||||
# this file and re-run i3-config-wizard(1).
|
||||
#
|
||||
|
||||
# i3 config file (v4)
|
||||
#
|
||||
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
exec --no-startup-id xss-lock dm-tool lock
|
||||
|
||||
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
|
||||
set $mod Mod4
|
||||
|
||||
# set default desktop layout (default is tiling)
|
||||
# workspace_layout tabbed <stacking|tabbed>
|
||||
|
||||
# Configure border style <normal|1pixel|pixel xx|none|pixel>
|
||||
new_window pixel 2
|
||||
new_float normal
|
||||
|
||||
# Hide borders
|
||||
hide_edge_borders both
|
||||
|
||||
# change borders
|
||||
#bindsym $mod+u border none
|
||||
#bindsym $mod+y border pixel 2
|
||||
#bindsym $mod+n border normal
|
||||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below.
|
||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||
|
||||
font pango:DejaVu Sans Mono 8
|
||||
font pango:Sans 8
|
||||
# Before i3 v4.8, we used to recommend this one as the default:
|
||||
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
|
||||
# The font above is very space-efficient, that is, it looks good, sharp and
|
||||
# clear in small sizes. However, its unicode glyph coverage is limited, the old
|
||||
# X core fonts rendering does not support right-to-left and this being a bitmap
|
||||
# font, it doesn’t scale on retina/hidpi displays.
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
# Use Mouse+$mod to drag floating windows
|
||||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
# set TERMINAL=i3-sensible-terminal
|
||||
bindsym $mod+Return exec exo-open --launch TerminalEmulator
|
||||
bindsym $mod+p exec exo-open --launch FileManager
|
||||
bindsym $mod+m exec exo-open --launch WebBrowser
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+F4 kill
|
||||
#bindsym $mod+F4 kill
|
||||
bindsym Mod1+F4 kill
|
||||
bindsym button2 kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $mod+F2 exec dmenu_run
|
||||
bindsym Mod1+F2 exec dmenu_run
|
||||
# There also is the (new) i3-dmenu-desktop which only displays applications
|
||||
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
||||
# installed.
|
||||
bindsym $mod+d exec --no-startup-id j4-dmenu-desktop
|
||||
bindsym $mod+Tab exec quickswitch.py
|
||||
bindsym $mod+F2 exec --no-startup-id ~/.config/i3/dmenu_run
|
||||
bindsym Mod1+F2 exec --no-startup-id ~/.config/i3/dmenu_run
|
||||
|
||||
# Password menu
|
||||
bindsym $mod+c exec --no-startup-id ~/.config/i3/passmenu
|
||||
|
||||
# start program launcher
|
||||
bindsym $mod+d exec --no-startup-id ~/.config/i3/dmenu_run
|
||||
|
||||
# Update var innformations
|
||||
set $up_bar killall -USR1 i3status
|
||||
|
||||
# Start Applications
|
||||
bindsym $mod+Return exec xterm
|
||||
bindsym $mod+p exec thunar
|
||||
bindsym $mod+m exec firefox
|
||||
|
||||
# Volume control
|
||||
bindsym XF86AudioRaiseVolume exec amixer -q set Master 5+ unmute; exec $up_bar
|
||||
bindsym XF86AudioLowerVolume exec amixer -q set Master 5- unmute; exec $up_bar
|
||||
bindsym XF86AudioMute exec amixer -q set Master toggle; $up_bar
|
||||
bindsym $mod+F11 exec xterm -e 'alsamixer'
|
||||
bindsym $mod+F12 exec xterm -e 'alsamixer'
|
||||
|
||||
#Brightness control
|
||||
bindsym XF86MonBrightnessDown exec xbacklight -dec 20
|
||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 20
|
||||
|
||||
# Screenshots
|
||||
bindsym Print exec scrot -ue 'mv $f ~/.screenshots/'
|
||||
bindsym $mod+Print exec scrot -e 'mv $f ~/.screenshots/'
|
||||
|
||||
focus_follows_mouse yes
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
|
|
@ -72,14 +92,19 @@ bindsym $mod+Shift+Down move down
|
|||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+Right move right
|
||||
|
||||
# workspace back and forth (with/without active container)
|
||||
workspace_auto_back_and_forth yes
|
||||
bindsym $mod+b workspace back_and_forth
|
||||
bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
|
||||
|
||||
# split in horizontal orientation
|
||||
#bindsym $mod+h split h
|
||||
bindsym $mod+g split h
|
||||
|
||||
# split in vertical orientation
|
||||
bindsym $mod+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen
|
||||
# toggle fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+s layout stacking
|
||||
|
|
@ -93,72 +118,116 @@ bindsym $mod+Shift+space floating toggle
|
|||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# focus the parent container
|
||||
bindsym $mod+q focus parent
|
||||
bindsym $mod+a focus parent
|
||||
|
||||
# focus the child container
|
||||
#bindsym $mod+d focus child
|
||||
bindsym $mod+q focus child
|
||||
|
||||
# workspaces
|
||||
set $WS1 1
|
||||
set $WS2 2
|
||||
set $WS3 3
|
||||
set $WS4 4
|
||||
set $WS5 5
|
||||
set $WS6 6
|
||||
set $WS7 7
|
||||
set $WS8 8
|
||||
set $WS9 9
|
||||
set $WS10 10
|
||||
# Workspace names
|
||||
set $WS1 1 Édition
|
||||
set $WS2 2 Éxecution
|
||||
set $WS3 3 Référence
|
||||
set $WS4 4 Organisation
|
||||
set $WS5 5 Divers 1
|
||||
set $WS6 6 Divers 2
|
||||
set $WS7 7 Contact
|
||||
set $WS8 8 Social
|
||||
set $WS9 9 Veille
|
||||
set $WS10 10 Musique
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+ampersand workspace $WS1
|
||||
bindsym $mod+eacute workspace $WS2
|
||||
bindsym $mod+quotedbl workspace $WS3
|
||||
bindsym $mod+apostrophe workspace $WS4
|
||||
bindsym $mod+parenleft workspace $WS5
|
||||
bindsym $mod+minus workspace $WS6
|
||||
bindsym $mod+egrave workspace $WS7
|
||||
bindsym $mod+underscore workspace $WS8
|
||||
bindsym $mod+ccedilla workspace $WS9
|
||||
bindsym $mod+agrave workspace $WS10
|
||||
bindsym $mod+1 workspace $WS1
|
||||
bindsym $mod+2 workspace $WS2
|
||||
bindsym $mod+3 workspace $WS3
|
||||
bindsym $mod+4 workspace $WS4
|
||||
bindsym $mod+5 workspace $WS5
|
||||
bindsym $mod+6 workspace $WS6
|
||||
bindsym $mod+7 workspace $WS7
|
||||
bindsym $mod+8 workspace $WS8
|
||||
bindsym $mod+9 workspace $WS9
|
||||
bindsym $mod+0 workspace $WS10
|
||||
|
||||
bindsym $mod+Ctrl+Left workspace prev_on_output
|
||||
bindsym $mod+Ctrl+Down workspace prev
|
||||
bindsym $mod+Ctrl+Right workspace next_on_output
|
||||
bindsym $mod+Ctrl+Up workspace next
|
||||
#navigate workspaces next / previous
|
||||
bindsym $mod+Ctrl+Right workspace next
|
||||
bindsym $mod+Ctrl+Left workspace prev
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+ampersand move container to workspace $WS1
|
||||
bindsym $mod+Shift+eacute move container to workspace $WS2
|
||||
bindsym $mod+Shift+quotedbl move container to workspace $WS3
|
||||
bindsym $mod+Shift+apostrophe move container to workspace $WS4
|
||||
bindsym $mod+Shift+5 move container to workspace $WS5
|
||||
bindsym $mod+Shift+minus move container to workspace $WS6
|
||||
bindsym $mod+Shift+egrave move container to workspace $WS7
|
||||
bindsym $mod+Shift+underscore move container to workspace $WS8
|
||||
bindsym $mod+Shift+ccedilla move container to workspace $WS9
|
||||
bindsym $mod+Shift+agrave move container to workspace $WS10
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Ctrl+1 move container to workspace $WS1
|
||||
bindsym $mod+Ctrl+2 move container to workspace $WS2
|
||||
bindsym $mod+Ctrl+3 move container to workspace $WS3
|
||||
bindsym $mod+Ctrl+4 move container to workspace $WS4
|
||||
bindsym $mod+Ctrl+5 move container to workspace $WS5
|
||||
bindsym $mod+Ctrl+6 move container to workspace $WS6
|
||||
bindsym $mod+Ctrl+7 move container to workspace $WS7
|
||||
bindsym $mod+Ctrl+8 move container to workspace $WS8
|
||||
bindsym $mod+Ctrl+9 move container to workspace $WS9
|
||||
bindsym $mod+Ctrl+0 move container to workspace $WS10
|
||||
|
||||
bindsym $mod+Ctrl+Shift+Left move container to workspace prev_on_output
|
||||
bindsym $mod+Ctrl+Shift+Down move container to workspace prev
|
||||
bindsym $mod+Ctrl+Shift+Right move container to workspace next_on_output
|
||||
bindsym $mod+Ctrl+Shift+Up move container to workspace next
|
||||
# Move to workspace with focused container
|
||||
bindsym $mod+Shift+1 move container to workspace $WS1; workspace $WS1
|
||||
bindsym $mod+Shift+2 move container to workspace $WS2; workspace $WS2
|
||||
bindsym $mod+Shift+3 move container to workspace $WS3; workspace $WS3
|
||||
bindsym $mod+Shift+4 move container to workspace $WS4; workspace $WS4
|
||||
bindsym $mod+Shift+5 move container to workspace $WS5; workspace $WS5
|
||||
bindsym $mod+Shift+6 move container to workspace $WS6; workspace $WS6
|
||||
bindsym $mod+Shift+7 move container to workspace $WS7; workspace $WS7
|
||||
bindsym $mod+Shift+8 move container to workspace $WS8; workspace $WS8
|
||||
bindsym $mod+Shift+9 move container to workspace $WS9; workspace $WS9
|
||||
bindsym $mod+Shift+0 move container to workspace $WS10; workspace $WS10
|
||||
|
||||
workspace_auto_back_and_forth yes
|
||||
bindsym $mod+z workspace back_and_forth
|
||||
bindsym $mod+Shift+z move container to workspace back_and_forth
|
||||
# Move workspaces to screen
|
||||
bindsym $mod+Ctrl+Shift+r move workspace to output right
|
||||
bindsym $mod+Ctrl+Shift+l move workspace to output left
|
||||
bindsym $mod+Ctrl+Shift+u move workspace to output above
|
||||
bindsym $mod+Ctrl+Shift+d move workspace to output below
|
||||
|
||||
# Open applications on specific workspaces
|
||||
assign [class="Skype"] $WS7
|
||||
assign [class="Pidgin"] $WS7
|
||||
assign [class="Evolution"] $WS7
|
||||
assign [class="Clementine"] $WS10
|
||||
|
||||
# Open specific applications in floating mode
|
||||
for_window [title="alsamixer"] floating enable border pixel 2
|
||||
for_window [class="Firefox"] layout tabbed
|
||||
|
||||
for_window [window_role="pop-up"] floating enable
|
||||
for_window [window_role="task_dialog"] floating enable
|
||||
|
||||
# switch to workspace with urgent window automatically
|
||||
for_window [urgent=latest] focus
|
||||
|
||||
# focus urgent window
|
||||
bindsym $mod+x [urgent=latest] focus
|
||||
|
||||
# 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 $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
|
||||
|
||||
# Set shut down, restart and locking features
|
||||
set $locker $HOME/.config/i3/lock
|
||||
set $mode_system [L] Vérouillage [E] Déconnexion [S] Veille [H] Hibernation [R] Redémarrage [P] Extinction
|
||||
mode "$mode_system" {
|
||||
bindsym l exec --no-startup-id $locker, mode "default"
|
||||
bindsym e exit, mode "default"
|
||||
bindsym s exec --no-startup-id systemctl suspend, mode "default"
|
||||
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
|
||||
bindsym r exec --no-startup-id systemctl reboot, mode "default"
|
||||
bindsym p exec --no-startup-id systemctl poweroff -i, mode "default"
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+Escape mode "$mode_system"
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
mode "Resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
|
||||
# Pressing left will shrink the window’s width.
|
||||
|
|
@ -181,46 +250,7 @@ mode "resize" {
|
|||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
for_window [window_role="pop-up"] floating enable
|
||||
for_window [window_role="task_dialog"] floating enable
|
||||
|
||||
# The middle button over a titlebar kills the window
|
||||
bindsym button2 kill
|
||||
|
||||
# The middle button and a modifer over any part of the window kills the window
|
||||
bindsym $mod+button2 kill
|
||||
|
||||
bindsym $mod+x [urgent=latest] focus
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
bar {
|
||||
status_command j4status
|
||||
position bottom
|
||||
colors {
|
||||
separator #888888
|
||||
background #333333
|
||||
statusline #FFFFFF
|
||||
focused_workspace #4E9C00 #4E9C00 #FFFFFF
|
||||
active_workspace #333333 #333333 #FFFFFF
|
||||
inactive_workspace #333333 #333333 #888888
|
||||
urgent_workspace #C20000 #C20000 #FFFFFF
|
||||
}
|
||||
}
|
||||
|
||||
client.focused #4E9C00 #4E9C00 #FFFFFF #FFFFFF
|
||||
client.focused_inactive #1B3600 #1B3600 #888888 #FFFFFF
|
||||
client.unfocused #333333 #333333 #888888 #FFFFFF
|
||||
client.urgent #C20000 #C20000 #FFFFFF #FFFFFF
|
||||
|
||||
bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+ unmute
|
||||
bindsym XF86AudioLowerVolume exec amixer -q set Master 5%- unmute
|
||||
bindsym XF86AudioMute exec amixer -q set Master toggle
|
||||
|
||||
bindsym XF86MonBrightnessDown exec xbacklight -dec 20
|
||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 20
|
||||
bindsym $mod+r mode "Resize"
|
||||
|
||||
set $mode_screen_select [V] VGA1 [H] HDMI1
|
||||
mode "$mode_screen_select" {
|
||||
|
|
@ -247,12 +277,6 @@ mode "$mode_screen_VGA1" {
|
|||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
# Move workspaces to screen
|
||||
bindsym $mod+Ctrl+Shift+r move workspace to output right
|
||||
bindsym $mod+Ctrl+Shift+l move workspace to output left
|
||||
bindsym $mod+Ctrl+Shift+u move workspace to output above
|
||||
bindsym $mod+Ctrl+Shift+d move workspace to output below
|
||||
|
||||
set $mode_screen_HDMI1 HDMI [R] Right [L] Left [U] Up [D] Down [C] Copy [O] Off
|
||||
mode "$mode_screen_HDMI1" {
|
||||
bindsym r exec xrandr --output HDMI1 --auto --right-of LVDS1
|
||||
|
|
@ -267,27 +291,41 @@ mode "$mode_screen_HDMI1" {
|
|||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
|
||||
|
||||
set $mode_system [L] Vérouillage [E] Déconnexion [S] Veille [H] Hibernation [R] Redémarrage [P] Extinction
|
||||
mode "$mode_system" {
|
||||
bindsym l exec --no-startup-id xset s activate, mode "default"
|
||||
bindsym e exit, mode "default"
|
||||
bindsym s exec --no-startup-id systemctl suspend, mode "default"
|
||||
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
|
||||
bindsym r exec --no-startup-id systemctl reboot, mode "default"
|
||||
bindsym p exec --no-startup-id systemctl poweroff -i, mode "default"
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status if available)
|
||||
bar {
|
||||
mode hide
|
||||
status_command i3status
|
||||
# wheel_up_cmd nop
|
||||
# wheel_down_cmd nop
|
||||
font pango:DejaVu Sans Mono 9
|
||||
font pango:Sans 8
|
||||
colors {
|
||||
separator #4E9C00
|
||||
background #333333
|
||||
statusline #FFFFFF
|
||||
focused_workspace #4E9C00 #4E9C00 #FFFFFF
|
||||
active_workspace #333333 #333333 #FFFFFF
|
||||
inactive_workspace #333333 #222222 #888888
|
||||
urgent_workspace #C20000 #C20000 #FFFFFF
|
||||
}
|
||||
}
|
||||
|
||||
bindsym $mod+Escape mode "$mode_system"
|
||||
# Inactivity settings
|
||||
exec --no-startup-id xautolock -time 10 -locker 'xset dpms force standby; sleep 60; $locker'
|
||||
bindsym $mod+F4 exec --no-startup-id xautolock -disable
|
||||
bindsym $mod+F5 exec --no-startup-id xautolock -enable
|
||||
|
||||
|
||||
# Autostart applications
|
||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
exec --no-startup-id numlockx on
|
||||
exec --no-startup-id feh --bg-scale /usr/share/backgrounds/Abstrait_vert.jpg
|
||||
exec --no-startup-id feh --bg-scale $HOME/.config/i3/bg.jpg
|
||||
exec --no-startup-id nm-applet
|
||||
#exec --no-startup-id compton -b
|
||||
exec --no-startup-id conky -c $HOME/.conky/status
|
||||
|
||||
# Preload
|
||||
exec --no-startup-id j4-dmenu-desktop --dmenu=echo
|
||||
# Theme colors
|
||||
client.focused #4E9C00 #4E9C00 #FFFFFF #FFFFFF
|
||||
client.focused_inactive #1B3600 #1B3600 #888888 #FFFFFF
|
||||
client.unfocused #333333 #333333 #888888 #FFFFFF
|
||||
client.urgent #C20000 #C20000 #FFFFFF #FFFFFF
|
||||
|
|
|
|||
294
config/i3/config.old
Normal file
294
config/i3/config.old
Normal file
|
|
@ -0,0 +1,294 @@
|
|||
# This file has been auto-generated by i3-config-wizard(1). It will
|
||||
# not be overwritten, so edit it as you like.
|
||||
#
|
||||
# Should you change your keyboard layout some time, delete
|
||||
# this file and re-run i3-config-wizard(1).
|
||||
#
|
||||
|
||||
# i3 config file (v4)
|
||||
#
|
||||
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
exec --no-startup-id xss-lock dm-tool lock
|
||||
|
||||
set $mod Mod4
|
||||
|
||||
# Font for window titles. Will also be used by the bar unless a different font
|
||||
# is used in the bar {} block below.
|
||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||
font pango:DejaVu Sans Mono 8
|
||||
font pango:Sans 8
|
||||
# Before i3 v4.8, we used to recommend this one as the default:
|
||||
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
|
||||
# The font above is very space-efficient, that is, it looks good, sharp and
|
||||
# clear in small sizes. However, its unicode glyph coverage is limited, the old
|
||||
# X core fonts rendering does not support right-to-left and this being a bitmap
|
||||
# font, it doesn’t scale on retina/hidpi displays.
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
# set TERMINAL=i3-sensible-terminal
|
||||
bindsym $mod+Return exec xterm
|
||||
bindsym $mod+p exec thunar
|
||||
bindsym $mod+m exec firefox
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+F4 kill
|
||||
bindsym Mod1+F4 kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $mod+F2 exec dmenu_run
|
||||
bindsym Mod1+F2 exec dmenu_run
|
||||
# There also is the (new) i3-dmenu-desktop which only displays applications
|
||||
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
||||
# installed.
|
||||
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
||||
#bindsym $mod+d exec --no-startup-id j4-dmenu-desktop
|
||||
bindsym $mod+Tab exec quickswitch.py
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+l 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
|
||||
|
||||
# move focused window
|
||||
bindsym $mod+Shift+h move left
|
||||
bindsym $mod+Shift+j move down
|
||||
bindsym $mod+Shift+k move up
|
||||
bindsym $mod+Shift+l 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
|
||||
|
||||
# split in vertical orientation
|
||||
bindsym $mod+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+f fullscreen
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# focus the parent container
|
||||
bindsym $mod+q focus parent
|
||||
|
||||
# focus the child container
|
||||
#bindsym $mod+d focus child
|
||||
|
||||
# workspaces
|
||||
set $WS1 1
|
||||
set $WS2 2
|
||||
set $WS3 3
|
||||
set $WS4 4
|
||||
set $WS5 5
|
||||
set $WS6 6
|
||||
set $WS7 7
|
||||
set $WS8 8
|
||||
set $WS9 9
|
||||
set $WS10 10
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+ampersand workspace $WS1
|
||||
bindsym $mod+eacute workspace $WS2
|
||||
bindsym $mod+quotedbl workspace $WS3
|
||||
bindsym $mod+apostrophe workspace $WS4
|
||||
bindsym $mod+parenleft workspace $WS5
|
||||
bindsym $mod+minus workspace $WS6
|
||||
bindsym $mod+egrave workspace $WS7
|
||||
bindsym $mod+underscore workspace $WS8
|
||||
bindsym $mod+ccedilla workspace $WS9
|
||||
bindsym $mod+agrave workspace $WS10
|
||||
|
||||
bindsym $mod+Ctrl+Left workspace prev_on_output
|
||||
bindsym $mod+Ctrl+Down workspace prev
|
||||
bindsym $mod+Ctrl+Right workspace next_on_output
|
||||
bindsym $mod+Ctrl+Up workspace next
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+ampersand move container to workspace $WS1
|
||||
bindsym $mod+Shift+eacute move container to workspace $WS2
|
||||
bindsym $mod+Shift+quotedbl move container to workspace $WS3
|
||||
bindsym $mod+Shift+apostrophe move container to workspace $WS4
|
||||
bindsym $mod+Shift+5 move container to workspace $WS5
|
||||
bindsym $mod+Shift+minus move container to workspace $WS6
|
||||
bindsym $mod+Shift+egrave move container to workspace $WS7
|
||||
bindsym $mod+Shift+underscore move container to workspace $WS8
|
||||
bindsym $mod+Shift+ccedilla move container to workspace $WS9
|
||||
bindsym $mod+Shift+agrave move container to workspace $WS10
|
||||
|
||||
bindsym $mod+Ctrl+Shift+Left move container to workspace prev_on_output
|
||||
bindsym $mod+Ctrl+Shift+Down move container to workspace prev
|
||||
bindsym $mod+Ctrl+Shift+Right move container to workspace next_on_output
|
||||
bindsym $mod+Ctrl+Shift+Up move container to workspace next
|
||||
|
||||
workspace_auto_back_and_forth yes
|
||||
bindsym $mod+z workspace back_and_forth
|
||||
bindsym $mod+Shift+z move container to workspace back_and_forth
|
||||
|
||||
|
||||
# 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 $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
|
||||
|
||||
# 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 j resize shrink width 10 px or 10 ppt
|
||||
bindsym k resize grow height 10 px or 10 ppt
|
||||
bindsym i resize shrink height 10 px or 10 ppt
|
||||
bindsym l resize grow width 10 px or 10 ppt
|
||||
|
||||
# same bindings, but for the arrow keys
|
||||
bindsym Left resize shrink width 10 px or 10 ppt
|
||||
bindsym Down resize grow height 10 px or 10 ppt
|
||||
bindsym Up resize shrink height 10 px or 10 ppt
|
||||
bindsym Right resize grow width 10 px or 10 ppt
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
for_window [window_role="pop-up"] floating enable
|
||||
for_window [window_role="task_dialog"] floating enable
|
||||
|
||||
# The middle button over a titlebar kills the window
|
||||
bindsym button2 kill
|
||||
|
||||
# The middle button and a modifer over any part of the window kills the window
|
||||
bindsym $mod+button2 kill
|
||||
|
||||
bindsym $mod+x [urgent=latest] focus
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
bar {
|
||||
status_command j4status
|
||||
position bottom
|
||||
colors {
|
||||
separator #888888
|
||||
background #333333
|
||||
statusline #FFFFFF
|
||||
focused_workspace #4E9C00 #4E9C00 #FFFFFF
|
||||
active_workspace #333333 #333333 #FFFFFF
|
||||
inactive_workspace #333333 #333333 #888888
|
||||
urgent_workspace #C20000 #C20000 #FFFFFF
|
||||
}
|
||||
}
|
||||
|
||||
client.focused #4E9C00 #4E9C00 #FFFFFF #FFFFFF
|
||||
client.focused_inactive #1B3600 #1B3600 #888888 #FFFFFF
|
||||
client.unfocused #333333 #333333 #888888 #FFFFFF
|
||||
client.urgent #C20000 #C20000 #FFFFFF #FFFFFF
|
||||
|
||||
bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+ unmute
|
||||
bindsym XF86AudioLowerVolume exec amixer -q set Master 5%- unmute
|
||||
bindsym XF86AudioMute exec amixer -q set Master toggle
|
||||
|
||||
bindsym XF86MonBrightnessDown exec xbacklight -dec 20
|
||||
bindsym XF86MonBrightnessUp exec xbacklight -inc 20
|
||||
|
||||
set $mode_screen_select [V] VGA1 [H] HDMI1
|
||||
mode "$mode_screen_select" {
|
||||
bindsym v mode "$mode_screen_VGA1"
|
||||
bindsym h mode "$mode_screen_HDMI1"
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+t mode "$mode_screen_select"
|
||||
|
||||
set $mode_screen_VGA1 VGA [R] Right [L] Left [U] Up [D] Down [C] Copy [O] Off
|
||||
mode "$mode_screen_VGA1" {
|
||||
bindsym r exec xrandr --output VGA1 --auto --right-of LVDS1
|
||||
bindsym l exec xrandr --output VGA1 --auto --left-of LVDS1
|
||||
bindsym u exec xrandr --output VGA1 --auto --above LVDS1
|
||||
bindsym d exec xrandr --output VGA1 --auto --below LVDS1
|
||||
bindsym c exec xrandr --output VGA1 --auto --same-as LVDS1
|
||||
bindsym o exec xrandr --output VGA1 --auto --off
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
# Move workspaces to screen
|
||||
bindsym $mod+Ctrl+Shift+r move workspace to output right
|
||||
bindsym $mod+Ctrl+Shift+l move workspace to output left
|
||||
bindsym $mod+Ctrl+Shift+u move workspace to output above
|
||||
bindsym $mod+Ctrl+Shift+d move workspace to output below
|
||||
|
||||
set $mode_screen_HDMI1 HDMI [R] Right [L] Left [U] Up [D] Down [C] Copy [O] Off
|
||||
mode "$mode_screen_HDMI1" {
|
||||
bindsym r exec xrandr --output HDMI1 --auto --right-of LVDS1
|
||||
bindsym l exec xrandr --output HDMI1 --auto --left-of LVDS1
|
||||
bindsym u exec xrandr --output HDMI1 --auto --above LVDS1
|
||||
bindsym d exec xrandr --output HDMI1 --auto --below LVDS1
|
||||
bindsym c exec xrandr --output HDMI1 --auto --same-as LVDS1
|
||||
bindsym o exec xrandr --output HDMI1 --auto --off
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
|
||||
|
||||
set $mode_system [L] Vérouillage [E] Déconnexion [S] Veille [H] Hibernation [R] Redémarrage [P] Extinction
|
||||
mode "$mode_system" {
|
||||
bindsym l exec --no-startup-id xset s activate, mode "default"
|
||||
bindsym e exit, mode "default"
|
||||
bindsym s exec --no-startup-id systemctl suspend, mode "default"
|
||||
bindsym h exec --no-startup-id systemctl hibernate, mode "default"
|
||||
bindsym r exec --no-startup-id systemctl reboot, mode "default"
|
||||
bindsym p exec --no-startup-id systemctl poweroff -i, mode "default"
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+Escape mode "$mode_system"
|
||||
|
||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
exec --no-startup-id numlockx on
|
||||
exec --no-startup-id feh --bg-scale /usr/share/backgrounds/Abstrait_vert.jpg
|
||||
|
||||
# Preload
|
||||
exec --no-startup-id j4-dmenu-desktop --dmenu=echo
|
||||
2
config/i3/dmenu_cmd
Executable file
2
config/i3/dmenu_cmd
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
dmenu -fn 'DejaVu Sans Mono-8' -nb '#222222' -nf '#888888' -sb '#4E9C00' -sf '#FFFFFF' "$@"
|
||||
15
config/i3/dmenu_run
Executable file
15
config/i3/dmenu_run
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"}
|
||||
if [ -d "$cachedir" ]; then
|
||||
cache=$cachedir/dmenu_run
|
||||
else
|
||||
cache=$HOME/.dmenu_cache # if no xdg dir, fall back to dotfile in ~
|
||||
fi
|
||||
(
|
||||
IFS=:
|
||||
if stest -dqr -n "$cache" $PATH; then
|
||||
stest -flx $PATH | sort -u | tee "$cache" | $HOME/.config/i3/dmenu_cmd -p 'Run' "$@"
|
||||
else
|
||||
$HOME/.config/i3/dmenu_cmd -p 'Run' "$@" < "$cache"
|
||||
fi
|
||||
) | ${SHELL:-"/bin/sh"} &
|
||||
BIN
config/i3/i3lock
Executable file
BIN
config/i3/i3lock
Executable file
Binary file not shown.
6
config/i3/lock
Executable file
6
config/i3/lock
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
dm-tool lock
|
||||
if [ $? -ne 0 ]; then
|
||||
$HOME/.config/i3/blurlock
|
||||
fi
|
||||
24
config/i3/passmenu
Executable file
24
config/i3/passmenu
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
shopt -s nullglob globstar
|
||||
|
||||
typeit=0
|
||||
if [[ $1 == "--type" ]]; then
|
||||
typeit=1
|
||||
shift
|
||||
fi
|
||||
|
||||
prefix=${PASSWORD_STORE_DIR-~/.password-store}
|
||||
password_files=( "$prefix"/**/*.gpg )
|
||||
password_files=( "${password_files[@]#"$prefix"/}" )
|
||||
password_files=( "${password_files[@]%.gpg}" )
|
||||
|
||||
password=$(printf '%s\n' "${password_files[@]}" | $HOME/.config/i3/dmenu_cmd -p "Passwords" "$@")
|
||||
|
||||
[[ -n $password ]] || exit
|
||||
|
||||
if [[ $typeit -eq 0 ]]; then
|
||||
pass show -c "$password" 2>/dev/null
|
||||
else
|
||||
xdotool - <<<"type --clearmodifiers -- $(pass show "$password" | head -n 1)"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue