summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-03-20 12:26:50 +0000
committerMarc Vertes <mvertes@free.fr>2023-03-20 12:26:50 +0000
commit8a0058c04f9453a3e3db8c186a550aa10f6c5909 (patch)
treed292e1d6b384bd1ea5f007bf412f111d10aac48c /.config
parent9dcf9d6a3fa8203cef7d57c8e811b300d4ecc97d (diff)
update, switch to fvwm
Diffstat (limited to '.config')
-rw-r--r--.config/i3/config201
1 files changed, 50 insertions, 151 deletions
diff --git a/.config/i3/config b/.config/i3/config
index 6c871ae..13c23bf 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -13,158 +13,63 @@ 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.
-#font pango:monospace 8
-#font fixed
-# Same as above X11 fixed 6x13, but with icons
-font pango:MiscFixedSC613 regular 9
-#font pango:monospace 8, Noto sans 8
+font pango:monospace 7
# 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:DejaVu Sans Mono 7, Noto sans 7
+
+# Start XDG autostart .desktop files using dex. See also
+# https://wiki.archlinux.org/index.php/XDG_Autostart
+exec --no-startup-id dex --autostart --environment i3
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
# 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 -c 000000 --nofork
+#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --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.
#exec --no-startup-id nm-applet
-#exec --no-startup-id sudo wpa_gui -t -i wlo1
-
-# Notification daemon (see ~/.config/dunst/dunstrc for configuration)
-exec --no-startup-id dunst
-bindsym $mod+a exec --no-startup-id dunstctl action
-bindsym $mod+c exec --no-startup-id dunstctl context
-bindsym $mod+n exec --no-startup-id dunstctl close
-bindsym $mod+twosuperior exec --no-startup-id dunstctl history-pop
-
-
-# pulse audio systray icon
-exec --no-startup-id pasystray
# 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 $mod+KP_Add 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 $mod+KP_Subtract exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
-bindsym $mod+KP_Enter 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
-# enable floating mode and border
-for_window [class="aft-linux-qt"] floating enable
-for_window [class="Arandr"] floating enable
-for_window [class="Asunder"] floating enable
-for_window [class="Brave-browser"] floating enable
-for_window [class="Blueberry.py"] floating enable
-for_window [class="Blueman-manager"] floating enable
-for_window [class="Chromium"] floating enable
-for_window [title="Task Manager - Chromium"] floating enable
-for_window [title="Gestionnaire de tâches – Chromium"] floating enable
-for_window [class="DeltaChat"] floating enable
-for_window [instance="DOTTY"] floating enable
-for_window [instance="LEFTY text view"] floating enable
-for_window [class="discord"] floating enable
-for_window [class="easyeffects"] floating enable border normal
-for_window [class="Display"] floating enable
-for_window [class="Feedreader"] floating enable
-for_window [class="feh"] floating enable
-for_window [class="firefox"] floating enable
-for_window [class="fluent-reader"] floating enable border normal
-for_window [class="Geeqie"] floating enable
-for_window [class="Google-chrome"] floating enable
-for_window [title="Google Chrome"] floating enable
-for_window [class="Gpicview"] floating enable
-for_window [class="Ghb"] floating enable
-for_window [class="Gitk"] floating enable
-for_window [class="gnuplot_qt"] floating enable
-for_window [instance="gxditview"] floating enable
-for_window [class="index"] floating enable
-for_window [class="Keybase"] floating enable
-for_window [class="libreoffice"] floating enable
-for_window [class="Liferea"] floating enable
-for_window [class="lagrange"] floating enable
-for_window [class="llpp"] floating enable
-for_window [class="MuPDF"] floating enable
-for_window [class="io.elementary.music"] floating enable
-for_window [class="org.gnome.Music"] floating enable
-for_window [class="Org.gnome.Software"] floating enable
-for_window [class="Pavucontrol"] floating enable
-for_window [class="Pcmanfm"] floating enable
-for_window [class="Picard"] floating enable
-for_window [title="QEMU"] floating enable
-for_window [class="Quodlibet"] floating enable
-for_window [class="RSS Guard"] floating enable
-#for_window [class="Navigator"] floating enable
-for_window [class="SeaMonkey"] floating enable
-#for_window [window_role="browser"] floating enable
-for_window [class="Signal"] floating enable
-for_window [class="Slack"] floating enable
-for_window [class="Spotify"] floating enable
-for_window [class="Tauon Music Box"] floating enable
-for_window [class="thunderbird"] floating enable
-for_window [class="UXTerm"] floating enable
-for_window [class="vlc"] floating enable
-for_window [instance="wish"] floating enable
-for_window [class="wpa_gui"] floating enable
-for_window [class="Xdialog"] floating enable
-for_window [class="Xournalpp"] floating enable
-for_window [class="XVroot"] floating enable
-for_window [class="zoom"] floating enable
-
-bindsym button3 floating toggle
+bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl s 1%-
+bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl s 1%+
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
+# move tiling windows via drag & drop by left-clicking into the title bar,
+# or left-clicking anywhere into the window while holding the floating modifier.
+tiling_drag modifier titlebar
+
# start a terminal
-bindsym $mod+Return exec --no-startup-id xt
-bindsym $mod+t exec --no-startup-id uxterm
-bindsym $mod+Shift+t exec --no-startup-id xtb
+bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
-bindsym $mod+q kill
-#bindsym $mod+w kill
-bindsym --release $mod+button2 kill
+bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
-#bindsym $mod+d 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 -dmenu="dmenu -i -fn 'Mono-9'"
-#bindsym F1 exec --no-startup-id i3-dmenu-desktop -dmenu="dmenu -i -fn 'Mono-9'"
-#bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
-#bindsym F1 exec --no-startup-id i3-dmenu-desktop -entry-type=command
-#bindsym F1 exec --no-startup-id i3-dmenu-desktop -dmenu="dmenu -i -fn 'Fixed-12'"
-bindsym $mod+d exec --no-startup-id i3-dmenu-desktop -dmenu="dmenu -i -fn 'Fixed-12'"
-
-# Use playerctl to control media player from keyboard
-bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
-bindsym XF86AudioStop exec --no-startup-id playerctl stop
-bindsym XF86AudioNext exec --no-startup-id playerctl next
-bindsym XF86AudioPrev exec --no-startup-id playerctl prev
-bindsym $mod+Home exec --no-startup-id playerctl play-pause
-bindsym $mod+End exec --no-startup-id playerctl stop
-bindsym $mod+Next exec --no-startup-id playerctl next
-bindsym $mod+Prior exec --no-startup-id playerctl previous
-
-# Screen shot
-bindSym --release Print exec --no-startup-id shot
-
-# jump to urgent
-bindsym $mod+x [urgent=latest] focus
+bindsym $mod+d exec --no-startup-id dmenu_run
+# A more modern dmenu replacement is rofi:
+# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
+# There also is i3-dmenu-desktop which only displays applications shipping a
+# .desktop file. It is a wrapper around dmenu, so you need that installed.
+# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
-bindsym $mod+m focus right
+bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
@@ -176,7 +81,7 @@ bindsym $mod+Right focus right
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 $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
@@ -195,7 +100,7 @@ bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
-bindsym $mod+z layout tabbed
+bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
@@ -205,7 +110,7 @@ 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
@@ -223,33 +128,33 @@ set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
+# Cycle through active workspaces
+bindsym $mod+Tab workspace next
+bindsym $mod+Shift+Tab workspace prev
+
# switch to workspace
-bindsym $mod+ampersand workspace number $ws1
-bindsym $mod+eacute workspace number $ws2
-bindsym $mod+quotedbl workspace number $ws3
-bindsym $mod+apostrophe workspace number $ws4
-bindsym $mod+parenleft workspace number $ws5
-bindsym $mod+minus workspace number $ws6
-bindsym $mod+egrave workspace number $ws7
-bindsym $mod+underscore workspace number $ws8
-bindsym $mod+ccedilla workspace number $ws9
-bindsym $mod+agrave workspace number $ws10
+bindsym $mod+1 workspace number $ws1
+bindsym $mod+2 workspace number $ws2
+bindsym $mod+3 workspace number $ws3
+bindsym $mod+4 workspace number $ws4
+bindsym $mod+5 workspace number $ws5
+bindsym $mod+6 workspace number $ws6
+bindsym $mod+7 workspace number $ws7
+bindsym $mod+8 workspace number $ws8
+bindsym $mod+9 workspace number $ws9
+bindsym $mod+0 workspace number $ws10
# move focused container to workspace
-bindsym $mod+Shift+ampersand move container to workspace number $ws1
-bindsym $mod+Shift+eacute move container to workspace number $ws2
-bindsym $mod+Shift+quotedbl move container to workspace number $ws3
-bindsym $mod+Shift+apostrophe move container to workspace number $ws4
+bindsym $mod+Shift+1 move container to workspace number $ws1
+bindsym $mod+Shift+2 move container to workspace number $ws2
+bindsym $mod+Shift+3 move container to workspace number $ws3
+bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
-bindsym $mod+Shift+minus move container to workspace number $ws6
-bindsym $mod+Shift+egrave move container to workspace number $ws7
-bindsym $mod+Shift+underscore move container to workspace number $ws8
-bindsym $mod+Shift+ccedilla move container to workspace number $ws9
-bindsym $mod+Shift+agrave move container to workspace number $ws10
-
-# Cycle through active workspaces
-bindsym $mod+Tab workspace next
-bindsym $mod+Shift+Tab workspace prev
+bindsym $mod+Shift+6 move container to workspace number $ws6
+bindsym $mod+Shift+7 move container to workspace number $ws7
+bindsym $mod+Shift+8 move container to workspace number $ws8
+bindsym $mod+Shift+9 move container to workspace number $ws9
+bindsym $mod+Shift+0 move container to workspace number $ws10
# reload the configuration file
bindsym $mod+Shift+c reload
@@ -269,7 +174,7 @@ mode "resize" {
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
- bindsym m resize grow width 10 px or 10 ppt
+ bindsym semicolon 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
@@ -285,14 +190,8 @@ mode "resize" {
bindsym $mod+r mode "resize"
-# Move a workspace to a different monitor
-bindsym $mod+greater move workspace to output right
-bindsym $mod+less move workspace to output left
-
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
-# status_command LANG=fr_FR.UTF-8 i3status
- status_command i3status
- tray_output primary
+ status_command i3status
}