Compare commits

..

3 Commits

Author SHA1 Message Date
Arti Zirk 7b1f76aa47 Force telegram to use GTK file dialogs 2 months ago
Arti Zirk 63d1b1b493 Swayosd-server as systemd service 2 months ago
Arti Zirk 293dabc125 Run things as systemd service and cleanup 2 months ago
  1. 2
      .config/electron-flags.conf
  2. 1
      .config/environment.d/99-electron_wayland.conf
  3. 1
      .config/environment.d/99-hwdec.conf
  4. 2
      .config/environment.d/99-qt-wayland.conf
  5. 1
      .config/environment.d/99-xdg_current_desktop.conf
  6. 1
      .config/rofi/config.rasi
  7. 15
      .config/sway/autostart
  8. 9
      .config/sway/config
  9. 1
      .config/systemd/user/default.target.wants/swayosd-server.service
  10. 11
      .config/systemd/user/swayosd-server.service
  11. 22
      .local/share/applications/org.telegram.desktop.desktop

2
.config/electron-flags.conf

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
--enable-features=WaylandWindowDecorations
--ozone-platform-hint=auto

1
.config/environment.d/99-electron_wayland.conf

@ -0,0 +1 @@ @@ -0,0 +1 @@
ELECTRON_OZONE_PLATFORM_HINT="auto"

1
.config/environment.d/99-hwdec.conf

@ -0,0 +1 @@ @@ -0,0 +1 @@
LIBVA_DRIVER_NAME=i965

2
.config/environment.d/99-qt-wayland.conf

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
QT_QPA_PLATFORM="wayland;xcb"
QT_QPA_PLATFORMTHEME="qt5ct"

1
.config/environment.d/99-xdg_current_desktop.conf

@ -1,2 +1,3 @@ @@ -1,2 +1,3 @@
XDG_CURRENT_DESKTOP=sway
GDK_BACKEND=wayland
GDK_DEBUG=portals

1
.config/rofi/config.rasi

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
configuration {
font: "Terminus 12";
run-command: "bash -c 'systemd-run --user --unit=app-rofi-\$(systemd-escape \"{cmd}\")-\$RANDOM {cmd}'";
}
@theme "/usr/share/rofi/themes/android_notification.rasi"

15
.config/sway/autostart

@ -2,24 +2,25 @@ @@ -2,24 +2,25 @@
for_window [workspace=$chat_workspace] layout tabbed
for_window [app_id="evolution"] move to workspace $chat_workspace
exec evolution
for_window [app_id="org.gnome.Evolution"] move to workspace $chat_workspace
exec systemd-run --user --unit=evolution /usr/bin/evolution
for_window [app_id="org.kde.quassel"] move to workspace $chat_workspace
for_window [app_id="quasselclient"] move to workspace $chat_workspace
exec quasselclient
exec systemd-run --user --unit=quasselclient /usr/bin/quasselclient
for_window [class="Element"] move to workspace $chat_workspace
exec element-desktop
exec systemd-run --user --unit=element-desktop /usr/bin/element-desktop
for_window [class="Slack"] move to workspace $chat_workspace
for_window [app_id="Slack"] move to workspace $chat_workspace
exec slack --enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer --ozone-platform-hint=auto
exec flatpak run com.slack.Slack
exec systemd-run --user --unit=slack /usr/bin/slack --enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer --ozone-platform-hint=auto
exec systemd-run --user --unit=slack-flatpak /usr/bin/flatpak run com.slack.Slack
for_window [app_id="telegramdesktop"] move to workspace $chat_workspace
for_window [app_id="org.telegram.desktop"] move to workspace $chat_workspace
exec telegram-desktop
exec systemd-run --user --unit=telegram /usr/bin/env XDG_CURRENT_DESKTOP=GNOME telegram-desktop
for_window [class="drata-agent"] move absolute position 2160 px 0 px
for_window [app_id="drata-agent"] move absolute position 2160 px 0 px
exec /usr/bin/drata-agent
exec systemd-run --user --unit=drata-agent /usr/bin/drata-agent

9
.config/sway/config

@ -53,7 +53,7 @@ exec xrdb -load ~/.Xresources @@ -53,7 +53,7 @@ exec xrdb -load ~/.Xresources
exec mako
# Volume and Brightness notification
exec swayosd-server
#exec swayosd-server # started via systemd for Restart=always
# Monitor volume changes
exec ~/.bin/volume_subscribe.sh
@ -87,9 +87,6 @@ for_window [class="Firefox"] inhibit_idle fullscreen @@ -87,9 +87,6 @@ for_window [class="Firefox"] inhibit_idle fullscreen
# wayland vesion
for_window [app_id="firefox"] inhibit_idle fullscreen
# Start autotiling script
#exec autotiling
# Lock screen with scroll lock button
bindsym Scroll_Lock exec $lockcmd
@ -98,7 +95,6 @@ bindsym Alt+Tab exec ~/.bin/switch_window.py @@ -98,7 +95,6 @@ bindsym Alt+Tab exec ~/.bin/switch_window.py
bindsym $mod+p exec tessen
# Hack that adds a emoji to all window titles so that title height is somewhat constant
# You can read mode about this here https://github.com/swaywm/sway/issues/3114
for_window [title=".*"] title_format ▪ %title
@ -299,6 +295,7 @@ for_window [title="Microsoft Teams Notification"] move absolute position 0 px 0 @@ -299,6 +295,7 @@ for_window [title="Microsoft Teams Notification"] move absolute position 0 px 0
for_window [title="Slack \| mini panel"] move scratchpad
for_window [class="Simplicity Studio™" title="Find\/Replace "] floating enable
for_window [app_id="gnome-calculator"] floating enable
for_window [class="drata-agent"] move absolute position 2160 px 0 px
# screenshots
bindsym Print exec ~/.bin/wscreenshot.py
@ -306,7 +303,7 @@ bindsym Print+Shift exec ~/.bin/wscreenshot.py --region @@ -306,7 +303,7 @@ bindsym Print+Shift exec ~/.bin/wscreenshot.py --region
bindsym Print+Alt exec ~/.bin/wscreenshot.py --window
# media keys
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioPlay exec playerctl play
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous

1
.config/systemd/user/default.target.wants/swayosd-server.service

@ -0,0 +1 @@ @@ -0,0 +1 @@
/home/arti/.config/systemd/user/swayosd-server.service

11
.config/systemd/user/swayosd-server.service

@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
[Unit]
Description=SwayOSD Server
[Service]
Type=simple
ExecStart=/usr/bin/swayosd-server
Restart=always
RestartSec=10s
[Install]
WantedBy=default.target

22
.local/share/applications/org.telegram.desktop.desktop

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
[Desktop Entry]
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
TryExec=env XDG_CURRENT_DESKTOP=GNOME telegram-desktop
Exec=env XDG_CURRENT_DESKTOP=GNOME telegram-desktop -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application
Categories=Chat;Network;InstantMessaging;Qt;
MimeType=x-scheme-handler/tg;x-scheme-handler/tonsite;
Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;
Actions=quit;
DBusActivatable=true
SingleMainWindow=true
X-GNOME-UsesNotifications=true
X-GNOME-SingleWindow=true
[Desktop Action quit]
Exec=env XDG_CURRENT_DESKTOP=GNOME telegram-desktop -quit
Name=Quit Telegram
Icon=application-exit
Loading…
Cancel
Save