forked from Shinonome/dots-hyprland
folder restructure round 1 (#271)
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
import Variable from 'resource:///com/github/Aylur/ags/variable.js';
|
||||
const { exec } = Utils;
|
||||
|
||||
// AGS Variables
|
||||
|
||||
// Global vars for external control (through keybinds)
|
||||
export const showMusicControls = Variable(false, {})
|
||||
export const showColorScheme = Variable(false, {})
|
||||
globalThis['openMusicControls'] = showMusicControls;
|
||||
globalThis['openColorScheme'] = showColorScheme;
|
||||
|
||||
// Screen size
|
||||
export const SCREEN_WIDTH = Number(exec(`bash -c "xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f1 | head -1" | awk '{print $1}'`));
|
||||
export const SCREEN_HEIGHT = Number(exec(`bash -c "xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2 | head -1" | awk '{print $1}'`));
|
||||
|
||||
Reference in New Issue
Block a user