forked from Shinonome/dots-hyprland
back to swww (for performance)
This commit is contained in:
@@ -6,7 +6,7 @@ import * as Utils from 'resource:///com/github/Aylur/ags/utils.js'
|
|||||||
// Widgets
|
// Widgets
|
||||||
import { Bar, BarCornerTopleft, BarCornerTopright } from './widgets/bar/main.js';
|
import { Bar, BarCornerTopleft, BarCornerTopright } from './widgets/bar/main.js';
|
||||||
import Cheatsheet from './widgets/cheatsheet/main.js';
|
import Cheatsheet from './widgets/cheatsheet/main.js';
|
||||||
import DesktopBackground from './widgets/desktopbackground/main.js';
|
// import DesktopBackground from './widgets/desktopbackground/main.js';
|
||||||
// import Dock from './widgets/dock/main.js';
|
// import Dock from './widgets/dock/main.js';
|
||||||
import Corner from './widgets/screencorners/main.js';
|
import Corner from './widgets/screencorners/main.js';
|
||||||
import Indicator from './widgets/indicators/main.js';
|
import Indicator from './widgets/indicators/main.js';
|
||||||
@@ -34,7 +34,7 @@ function applyStyle() {
|
|||||||
applyStyle();
|
applyStyle();
|
||||||
|
|
||||||
const Windows = () => [
|
const Windows = () => [
|
||||||
forMonitors(DesktopBackground),
|
// forMonitors(DesktopBackground),
|
||||||
// Dock(),
|
// Dock(),
|
||||||
Overview(),
|
Overview(),
|
||||||
forMonitors(Indicator),
|
forMonitors(Indicator),
|
||||||
|
|||||||
@@ -34,7 +34,8 @@ elif len(sys.argv) > 1 and sys.argv[1] == '--color':
|
|||||||
newtheme = themeFromSourceColor(argbFromHex(colorstr))
|
newtheme = themeFromSourceColor(argbFromHex(colorstr))
|
||||||
else:
|
else:
|
||||||
# try:
|
# try:
|
||||||
imagePath = subprocess.check_output("ags run-js 'wallpaper.get(0)'", shell=True)
|
# imagePath = subprocess.check_output("ags run-js 'wallpaper.get(0)'", shell=True)
|
||||||
|
imagePath = subprocess.check_output("swww query | awk -F 'image: ' '{print $2}'", shell=True)
|
||||||
imagePath = imagePath[:-1].decode("utf-8")
|
imagePath = imagePath[:-1].decode("utf-8")
|
||||||
img = Image.open(imagePath)
|
img = Image.open(imagePath)
|
||||||
basewidth = 64
|
basewidth = 64
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
if [ "$1" == "--noswitch" ]; then
|
if [ "$1" == "--noswitch" ]; then
|
||||||
imgpath=$(ags run-js 'wallpaper.get(0)')
|
imgpath=$(swww query | awk -F 'image: ' '{print $2}')
|
||||||
|
# imgpath=$(ags run-js 'wallpaper.get(0)')
|
||||||
else
|
else
|
||||||
# Select and set image (hyprland)
|
# Select and set image (hyprland)
|
||||||
cd "$HOME/Pictures"
|
cd "$HOME/Pictures"
|
||||||
|
|||||||
Reference in New Issue
Block a user