quickshell: IpService: fetch instead of refresh

This commit is contained in:
2025-10-13 05:59:10 +02:00
parent ba194b8fa4
commit 1e06ae479e
7 changed files with 21 additions and 27 deletions

View File

@@ -10,16 +10,17 @@
<img src="https://github.com/Uyanide/backgrounds/blob/master/screenshots/backdrop.jpg?raw=true"/>
- Grub menu:
<img src="https://github.com/Uyanide/backgrounds/blob/master/screenshots/grub.jpg?raw=true"/>
<img src="https://github.com/Uyanide/backgrounds/blob/master/screenshots/grub.jpg?raw=true"/>
## Setup Overview
- **OS**: Archlinux
- **WM**: Hyprland | Niri
- **Bar**: Waybar | Quickshell
- **WM**: Hyprland | **Niri**
- **Bar**: Waybar | **Quickshell**
- **Shell**: Fish
- **Prompt**: Oh My Posh
- **Terminal**: Kitty & Ghostty
- **Terminal**: **Kitty** & Ghostty
- **Colorscheme**: Catppuccin Mocha
- **App Launcher**: Rofi
- **Logout Screen**: Wlogout
@@ -27,6 +28,8 @@
- **Wallpaper Daemon**: Swww
- **Notification Daemon**: Mako
(**bold**: I currently prefer)
## Hyprland & friends
Based on an old version of [end-4/dots-hyprland](https://github.com/end-4/dots-hyprland) but without ags amd tons of other stuff.

View File

@@ -27,7 +27,7 @@ input {
warp-mouse-to-focus
// Focus windows and outputs automatically when moving the mouse into them.
focus-follows-mouse max-scroll-amount="100%"
focus-follows-mouse max-scroll-amount="99%"
}
/************************Output************************/
@@ -280,11 +280,10 @@ binds {
Mod+Shift+Return { spawn "ghostty"; }
Mod+Shift+W { spawn "wallpaper-chooser"; }
// EWW
Mod+Space { spawn-sh "qs ipc call panels toggleControlCenter"; }
Mod+Shift+L { spawn-sh "qs ipc call lyrics toggleBarLyrics"; }
// Quickshell
Mod+Space { spawn-sh "qs ipc call panels toggleControlCenter"; }
Mod+Shift+D { spawn-sh "qs ipc call panels toggleCalendar"; }
Mod+Shift+L { spawn-sh "qs ipc call lyrics toggleBarLyrics"; }
Mod+Shift+K { spawn-sh "pkill -x quickshell || quickshell"; }
Mod+I { spawn-sh "qs ipc call idleInhibitor toggleInhibitor"; }

View File

@@ -27,7 +27,7 @@ input {
warp-mouse-to-focus
// Focus windows and outputs automatically when moving the mouse into them.
focus-follows-mouse max-scroll-amount="100%"
focus-follows-mouse max-scroll-amount="99%"
}
/************************Output************************/
@@ -280,11 +280,10 @@ binds {
Mod+Shift+Return { spawn "ghostty"; }
Mod+Shift+W { spawn "wallpaper-chooser"; }
// EWW
Mod+Space { spawn-sh "qs ipc call panels toggleControlCenter"; }
Mod+Shift+L { spawn-sh "qs ipc call lyrics toggleBarLyrics"; }
// Quickshell
Mod+Space { spawn-sh "qs ipc call panels toggleControlCenter"; }
Mod+Shift+D { spawn-sh "qs ipc call panels toggleCalendar"; }
Mod+Shift+L { spawn-sh "qs ipc call lyrics toggleBarLyrics"; }
Mod+Shift+K { spawn-sh "pkill -x quickshell || quickshell"; }
Mod+I { spawn-sh "qs ipc call idleInhibitor toggleInhibitor"; }

View File

@@ -7,6 +7,7 @@ pragma Singleton
Singleton {
id: root
// Compatibility colors for noctalia modules
property color mPrimary: Colors.primary
property color mOnPrimary: Colors.base
property color mSecondary: Colors.primary

View File

@@ -36,6 +36,7 @@ Singleton {
readonly property string speedReset: "󰾅"
readonly property string reset: "󰑙"
readonly property string lines: ""
// Tabler icons
// Expose the font family name for easy access
readonly property string fontFamily: currentFontLoader ? currentFontLoader.name : ""
readonly property string defaultIcon: TablerIcons.defaultIcon

View File

@@ -49,12 +49,9 @@ NPanel {
}
// Combined blue banner with date/time and weather summary
Rectangle {
NBox {
Layout.fillWidth: true
Layout.preferredHeight: blueColumn.implicitHeight + Style.marginM * 2
radius: Style.radiusL
color: Color.mSurfaceVariant
layer.enabled: true
ColumnLayout {
id: blueColumn
@@ -255,14 +252,6 @@ NPanel {
}
layer.effect: DropShadow {
horizontalOffset: 6
verticalOffset: 6
radius: 8
samples: 12
color: Qt.rgba(0, 0, 0, 0.3)
}
}
// 6-day forecast (outside blue banner)

View File

@@ -116,7 +116,7 @@ Singleton {
repeat: false
running: false
onTriggered: {
refresh();
fetchIP();
}
}
@@ -127,7 +127,9 @@ Singleton {
repeat: true
running: true
onTriggered: {
fetchTimer.stop();
fetchIP();
fetchTimer.start();
}
}