sway: disable ide timeout for fullscreen browsers
This commit is contained in:
parent
3206d6b49a
commit
c220c8f939
1 changed files with 13 additions and 35 deletions
48
sway/config
48
sway/config
|
@ -1,54 +1,32 @@
|
||||||
# Default config for sway
|
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
#
|
|
||||||
# Logo key. Use Mod1 for Alt.
|
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
# Home row direction keys, like vim
|
|
||||||
set $left h
|
set $left h
|
||||||
set $down j
|
set $down j
|
||||||
set $up k
|
set $up k
|
||||||
set $right l
|
set $right l
|
||||||
# Your preferred terminal emulator
|
|
||||||
# Recommends: foot
|
|
||||||
set $term foot
|
set $term foot
|
||||||
# Your preferred application launcher
|
|
||||||
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
|
||||||
# on the original workspace that the command was run on.
|
|
||||||
# Recommends: rofi-wayland
|
|
||||||
set $rofi_cmd rofi \
|
set $rofi_cmd rofi \
|
||||||
-terminal '$term'
|
-terminal '$term'
|
||||||
# Shows a combined list of the applications with desktop files and
|
|
||||||
# executables from PATH.
|
|
||||||
# TODO: add window with the next release of rofi-wayland
|
|
||||||
set $menu $rofi_cmd -show drun
|
set $menu $rofi_cmd -show drun
|
||||||
|
|
||||||
### Output configuration
|
### Output configuration
|
||||||
#
|
|
||||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
|
||||||
# Requires: desktop-backgrounds-compat, swaybg
|
|
||||||
output * bg /var/home/digyx/Pictures/ina_bday_2021_4k.png fill
|
output * bg /var/home/digyx/Pictures/ina_bday_2021_4k.png fill
|
||||||
#
|
|
||||||
# Example configuration:
|
|
||||||
#
|
|
||||||
# output HDMI-A-1 resolution 1920x1080 position 1920,0
|
|
||||||
#
|
|
||||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
|
||||||
|
|
||||||
output eDP-1 resolution 2256x1504 scale 1.5
|
output eDP-1 resolution 2256x1504 scale 1.5
|
||||||
|
|
||||||
### Idle configuration
|
### Idle configuration
|
||||||
#
|
exec swayidle -w \
|
||||||
# Example configuration:
|
timeout 300 'swaylock -f -c 000000' \
|
||||||
#
|
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
||||||
# exec swayidle -w \
|
before-sleep 'swaylock -f -c 000000'
|
||||||
# timeout 300 'swaylock -f -c 000000' \
|
|
||||||
# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
|
for_window [app_id="Librewolf"] mark Browser
|
||||||
# before-sleep 'swaylock -f -c 000000'
|
for_window [app_id="firefox"] mark Browser
|
||||||
#
|
|
||||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
for_window [con_mark="Browser"] {
|
||||||
# your displays after another 300 seconds, and turn your screens back on when
|
inhibit_idle fullscreen
|
||||||
# resumed. It will also lock your screen before your computer goes to sleep.
|
}
|
||||||
|
|
||||||
### Input configuration
|
### Input configuration
|
||||||
input type:touchpad {
|
input type:touchpad {
|
||||||
|
|
Loading…
Reference in a new issue