Since I run lots of things in the background, I have set my laptop to avoid suspending when the lid is closed by putting the following in /etc/systemd/nf: HandleLidSwitch=lock To make it work, I wrote a simple shell script and assigned a keyboard shortcut to it in ~/.i3/config: bindsym $mod+u exec /home/francois/bin/toggle-xkbmap These bindings require the following packages or scripts:Īnd your user account needs to be in the video group: adduser francois videoĪnother thing that used to work with GNOME and had to re-create in i3 is the ability to quickly toggle between two keyboard layouts using the keyboard. To make volume control, screen brightness, battery status and print screen buttons work as expected on my laptop. # crop-area screenshot by pressing Mod + printscreenīindsym -release $mod+Print exec /usr/bin/gnome-screenshot -a # interactive screenshot by pressing printscreenīindsym Print exec /usr/bin/gnome-screenshot -i While keyboard shortcuts can be configured in GNOME, they don't work within i3, so I added a few more bindings to my ~/.i3/config: # volume controlīindsym XF86AudioLowerVolume exec /usr/bin/pactl set-sink-volume '-5%'īindsym XF86AudioRaiseVolume exec /usr/bin/pactl set-sink-volume '+5%'īindsym XF86AudioMute exec /usr/bin/pactl set-sink-mute toggleīindsym XF86MonBrightnessDown exec /usr/bin/brightnessctl set 10%-īindsym XF86MonBrightnessUp exec /usr/bin/brightnessctl set +10%īindsym XF86Battery exec gnome-power-statistics Then you can add that to your startup script or to ~/.i3/config: exec -no-startup-id ~/.fehbg So that it generates a script for itself at ~/.fehbg. The first step is to run it once: feh -bg-scale /usr/share/images/desktop-base/desktop-grub.png I can also trigger it manually using the following shortcut defined in my ~/.i3/config: bindsym Ctrl+Mod1+l exec xautolock -locknow To make i3lock automatically lock my screen, I installed xautolock and added it to my startup script: xautolock -time 30 -locker "i3lock -c 000000 -f" & to show the context menu for the current notification Ctrl-Shift-Space to close all notifications.Ctrl-Space to close the current notification.Here are the keyboard shortcuts you'll need to interact with the notifications that pop up: You will probably also want to set the following in /etc/xdg/dunst/dunstrc to ensure that notifications use your default web browser: browser = /usr/bin/sensible-browser syncthing: keeps my folders synchronized between machinesīecause of a bug in gnome-settings-daemon which makes the mouse cursor disappear as soon as gnome-settings-daemon is started, I had to run the following to disable the offending gnome-settings-daemon plugin: dconf write /org/gnome/settings-daemon/plugins/cursor/active false.nm-applet: handles wifi and VPN connections.i3lock: locks the screen when I'm not around.gnome-keyring-daemon: remembers ssh public keys for the duration of my session.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |