From c220c8f939d8b65d5f7deefa5e99ab33a6eca891 Mon Sep 17 00:00:00 2001 From: Roman Godmaire Date: Sun, 14 Apr 2024 08:35:09 -0400 Subject: [PATCH] sway: disable ide timeout for fullscreen browsers --- sway/config | 48 +++++++++++++----------------------------------- 1 file changed, 13 insertions(+), 35 deletions(-) diff --git a/sway/config b/sway/config index 493c1a4..e6a4183 100644 --- a/sway/config +++ b/sway/config @@ -1,54 +1,32 @@ -# Default config for sway - ### Variables -# -# Logo key. Use Mod1 for Alt. set $mod Mod4 -# Home row direction keys, like vim + set $left h set $down j set $up k set $right l -# Your preferred terminal emulator -# Recommends: 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 \ -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 ### 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 -# -# 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 ### Idle configuration -# -# Example configuration: -# -# exec swayidle -w \ -# timeout 300 'swaylock -f -c 000000' \ -# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ -# before-sleep 'swaylock -f -c 000000' -# -# This will lock your screen after 300 seconds of inactivity, then turn off -# your displays after another 300 seconds, and turn your screens back on when -# resumed. It will also lock your screen before your computer goes to sleep. +exec swayidle -w \ + timeout 300 'swaylock -f -c 000000' \ + timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ + before-sleep 'swaylock -f -c 000000' + +for_window [app_id="Librewolf"] mark Browser +for_window [app_id="firefox"] mark Browser + +for_window [con_mark="Browser"] { + inhibit_idle fullscreen +} ### Input configuration input type:touchpad {