Compare commits

..

2 Commits

Author SHA1 Message Date
a452c8a6e0 Increase screen timeout to 3min 2023-02-10 22:05:12 +01:00
e3ad32053f Automatically start nextcloud client 2023-02-10 22:04:48 +01:00
4 changed files with 20 additions and 46 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 1.2 MiB

30
config
View File

@ -23,14 +23,27 @@ set $term alacritty
# on the original workspace that the command was run on. # on the original workspace that the command was run on.
#set $menu dmenu_path | dmenu | xargs swaymsg exec -- #set $menu dmenu_path | dmenu | xargs swaymsg exec --
set $menu j4-dmenu-desktop --dmenu='bemenu -i --tf "#04819E" --nb "#000000" --hb "#000000" --nf "#A65200" --hf "#FF7F00" --fn "pango:DejaVu Sans Mono 12"' --term='alacritty' set $menu j4-dmenu-desktop --dmenu='bemenu -i --tf "#04819E" --nb "#000000" --hb "#000000" --nf "#A65200" --hf "#FF7F00" --fn "pango:DejaVu Sans Mono 12"' --term='alacritty'
### Basic output configuration ### Output configuration
# #
set $bg_picture /home/main/.config/sway/background.jpg set $bg_picture /home/main/.config/sway/background.jpg
output * bg $bg_picture fill output * bg $bg_picture fill
set $screenlock swaylock -f -i $bg_picture -c 000000 set $screenlock swaylock -f -i $bg_picture -c 000000
### Basic input configuration ### Idle configuration
exec_always swayidle -w \
timeout 300 '$screenlock' \
timeout 280 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep '$screenlock'
#
# 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.
### Input configuration
#
input * { input * {
xkb_layout "fr" xkb_layout "fr"
xkb_variant "azerty" xkb_variant "azerty"
@ -39,16 +52,7 @@ input * {
repeat_rate 60 repeat_rate 60
} }
### Idle configuration input * xkb_numlock enable
exec_always swayidle -w \
timeout 70 '$screenlock' \
timeout 60 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep '$screenlock'
#
# 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.
### Status Bar: ### Status Bar:
# #

View File

@ -1,33 +0,0 @@
### Inputs config
#
input 1739:0:Synaptics_TM3075-002 {
tap enabled
}
### Function keys
#
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
bindsym XF86MonBrightnessDown exec brightnessctl set 5%- #TODO fix that
bindsym XF86MonBrightnessUp exec brightnessctl set +5% #TODO fix that
#bindsym XF86Display nothing for now
#bindsym XF86WLAN already implemented, toggles Wifi via rfkill
#bindsym XF86Tools nothing for now
bindsym XF86Search exec firefox
bindsym XF86Explorer exec $term -e ranger
bindsym XF86Launcha exec '$screenlock'
### Screenshots
#
# Take a screenshot with all outputs and save it into screenshots
bindsym Print exec '$screeshot'
# Take a screenshot of the active window
bindsym Print+Ctrl exec '$screenshot_window'
# Take a screenshot with the region selection
bindsym Print+Alt exec '$screenshot_select'

View File

@ -1,3 +1,6 @@
# Import and start relevant systemd services at Sway startup # Import and start relevant systemd services at Sway startup
exec_always "systemctl --user import-environment; systemctl --user start sway-session.target" exec_always "systemctl --user import-environment; systemctl --user start sway-session.target"
# Start nextcloud client
exec_always "nextcloud --background"