From 6e2c43726d53f1f440af3d17d18d23b3ab6f8bed Mon Sep 17 00:00:00 2001 From: Sunderland93 Date: Sun, 21 Jul 2024 13:27:14 +0400 Subject: [PATCH] Change cursor to Bibata, fix idle-inhibit logic, add floating_shell window rule --- debian/changelog | 8 ++++++++ etc/skel/.config/autostart/xdg-user-dirs.desktop | 7 +++++++ etc/skel/.config/gtk-3.0/settings.ini | 2 +- etc/skel/.config/qtile/config.py | 9 +++++---- etc/skel/.config/xsettingsd/xsettingsd.conf | 2 +- etc/skel/.gtkrc-2.0 | 2 +- etc/skel/.icons/default/index.theme | 2 +- usr/share/qtile/scripts/idle-inhibit | 8 ++++---- 8 files changed, 28 insertions(+), 12 deletions(-) create mode 100755 etc/skel/.config/autostart/xdg-user-dirs.desktop diff --git a/debian/changelog b/debian/changelog index 43edc0f..12d2252 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +tileos-settings-qtile (1.1.1~tileos) unstable; urgency=medium + + * Change cursor theme to Bibata + * Fix idle-inhibit logic + * Added floating_shell window rule + + -- Aleksey Samoilov Sun, 21 Jul 2024 13:21:06 +0400 + tileos-settings-qtile (1.1.0~tileos) unstable; urgency=medium * First working configuration diff --git a/etc/skel/.config/autostart/xdg-user-dirs.desktop b/etc/skel/.config/autostart/xdg-user-dirs.desktop new file mode 100755 index 0000000..0ca6fd9 --- /dev/null +++ b/etc/skel/.config/autostart/xdg-user-dirs.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Exec=xdg-user-dirs-update +NoDisplay=true +StartupNotify=false +Terminal=false +TryExec=xdg-user-dirs-update +Type=Application diff --git a/etc/skel/.config/gtk-3.0/settings.ini b/etc/skel/.config/gtk-3.0/settings.ini index ae8d747..eba36d7 100644 --- a/etc/skel/.config/gtk-3.0/settings.ini +++ b/etc/skel/.config/gtk-3.0/settings.ini @@ -2,7 +2,7 @@ gtk-theme-name=Catppuccin-Macchiato-Standard-Blue-Dark gtk-icon-theme-name=ePapirus-Dark gtk-font-name=Noto Sans 11 -gtk-cursor-theme-name=breeze_cursors +gtk-cursor-theme-name=Bibata-Modern-Classic gtk-cursor-theme-size=24 gtk-toolbar-style=GTK_TOOLBAR_ICONS gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR diff --git a/etc/skel/.config/qtile/config.py b/etc/skel/.config/qtile/config.py index 2c61f3d..beb9f9f 100644 --- a/etc/skel/.config/qtile/config.py +++ b/etc/skel/.config/qtile/config.py @@ -217,7 +217,7 @@ screens = [ border_width = [0, 0, 2, 0], ) ], - mouse_callbacks={'Button1': lazy.spawn(terminal + ' -e btop')} + mouse_callbacks={'Button1': lazy.spawn(terminal + ' --class floating_shell -e btop')} ), widget.Spacer(length = 8), widget.Memory( @@ -230,7 +230,7 @@ screens = [ border_width = [0, 0, 2, 0], ) ], - mouse_callbacks={'Button1': lazy.spawn(terminal + ' -e btop')} + mouse_callbacks={'Button1': lazy.spawn(terminal + ' --class floating_shell -e btop')} ), widget.Spacer(length = 8), widget.Net( @@ -243,7 +243,7 @@ screens = [ border_width = [0, 0, 2, 0], ) ], - mouse_callbacks={'Button1': lazy.spawn(terminal + ' -e nmtui')} + mouse_callbacks={'Button1': lazy.spawn(terminal + ' --class floating_shell -e nmtui')} ), widget.Spacer(length = 8), widget.Volume( @@ -267,7 +267,7 @@ screens = [ border_width = [0, 0, 2, 0], ) ], - mouse_callbacks={'Button1': lazy.spawn(terminal + ' -e calcurse')} + mouse_callbacks={'Button1': lazy.spawn(terminal + ' --class floating_shell -e calcurse')} ), widget.Spacer(length = 8), widget.TextBox( @@ -315,6 +315,7 @@ floating_layout = layout.Floating( Match(wm_class="nwg-look"), # GTK settings Match(wm_class="pavucontrol"), # PulseAudio Volume Control Match(wm_class="wdisplays"), # Display configurator + Match(wl_class="floating_shell"), # Start all windows with app_id "floating_shell" in float Match(title="Picture-in-Picture"), Match(title="Firefox — Sharing Indicator"), ] diff --git a/etc/skel/.config/xsettingsd/xsettingsd.conf b/etc/skel/.config/xsettingsd/xsettingsd.conf index 4e5b558..4c64b86 100644 --- a/etc/skel/.config/xsettingsd/xsettingsd.conf +++ b/etc/skel/.config/xsettingsd/xsettingsd.conf @@ -1,6 +1,6 @@ Net/ThemeName "Catppuccin-Macchiato-Standard-Blue-Dark" Net/IconThemeName "ePapirus-Dark" -Gtk/CursorThemeName "breeze_cursors" +Gtk/CursorThemeName "Bibata-Modern-Classic" Net/EnableEventSounds 1 EnableInputFeedbackSounds 0 Xft/Antialias 1 diff --git a/etc/skel/.gtkrc-2.0 b/etc/skel/.gtkrc-2.0 index ae012b9..cb00e2e 100644 --- a/etc/skel/.gtkrc-2.0 +++ b/etc/skel/.gtkrc-2.0 @@ -5,7 +5,7 @@ include "/home/sunderland93/.gtkrc-2.0.mine" gtk-theme-name="Catppuccin-Macchiato-Standard-Blue-Dark" gtk-icon-theme-name="ePapirus-Dark" gtk-font-name="Noto Sans 11" -gtk-cursor-theme-name="breeze_cursors" +gtk-cursor-theme-name="Bibata-Modern-Classic" gtk-cursor-theme-size=24 gtk-toolbar-style=GTK_TOOLBAR_ICONS gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR diff --git a/etc/skel/.icons/default/index.theme b/etc/skel/.icons/default/index.theme index b33e7ad..782482b 100644 --- a/etc/skel/.icons/default/index.theme +++ b/etc/skel/.icons/default/index.theme @@ -2,4 +2,4 @@ [Icon Theme] Name=Default Comment=Default Cursor Theme -Inherits=Catppuccin-Macchiato-Blue-Cursors +Inherits=Bibata-Modern-Classic diff --git a/usr/share/qtile/scripts/idle-inhibit b/usr/share/qtile/scripts/idle-inhibit index 99b4e5f..9b08fe0 100755 --- a/usr/share/qtile/scripts/idle-inhibit +++ b/usr/share/qtile/scripts/idle-inhibit @@ -5,10 +5,10 @@ function toggle { if pgrep -f "wayland-idle-inhibitor" > /dev/null then pkill -f wayland-idle-inhibitor - notify-send -r 5556 -u normal " Screensaver Disabled" + notify-send -r 5556 -u normal " Screensaver Enabled" else /usr/bin/wayland-idle-inhibitor.py & - notify-send -r 5556 -u normal " Screensaver Enabled" + notify-send -r 5556 -u normal " Screensaver Disabled" fi } @@ -19,9 +19,9 @@ case $1 in *) if pgrep -f "wayland-idle-inhibitor" > /dev/null then - icon="" - else icon="" + else + icon="" fi printf "%s" "$icon" ;;