start kanshi and swayidle independent of sway/hyprland

This commit is contained in:
Adithya 2023-04-08 14:40:44 +05:30
parent ea29753230
commit 4d0b092f9b
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
3 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,7 @@
{ ... }: {
services.kanshi = {
enable = true;
systemdTarget = "graphical-session.target";
profiles = {
undocked = {
outputs = [

View file

@ -1,6 +1,7 @@
{ pkgs, ... }: {
services.swayidle = {
enable = true;
systemdTarget = "graphical-session.target";
events = [
{
event = "before-sleep";

View file

@ -110,8 +110,6 @@ in
exec-once = ${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1
exec-once = ${hyprctl} setcursor ${config.gtk.cursorTheme.name} 24
exec-once = systemctl --user start kanshi.service
exec-once = systemctl --user start swayidle.service
exec-once = ${change-wallpaper}
bindm = SUPER,mouse:272, movewindow
@ -122,8 +120,10 @@ in
bind = SUPER_SHIFT,F, fullscreen,0
bind = SUPER_SHIFT,C, exec, ${hyprctl} reload
bind = SUPER_SHIFT,C, exec, systemctl --user restart waybar.service
bind = SUPER_SHIFT,C, exec, systemctl --user restart swayidle.service
bind = SUPER_SHIFT,C, exec, systemctl --user restart kanshi.service
bind = SUPER_SHIFT,C, exec, systemctl --user reload waybar.service
bind = SUPER,Return, exec, ${kitty} ${tmux} new
bind = SUPER_SHIFT,Return, exec, ${kitty}
bind = SUPER,d, exec, ${rofi} -show drun