├── .idea
├── .gitignore
├── ags.iml
├── modules.xml
└── vcs.xml
├── README.md
├── assets
├── cover.jpg
├── message.png
├── next.png
├── pause.png
├── play.png
├── prev.png
└── weather
│ └── icons
│ ├── 100-fill.svg
│ ├── 100.svg
│ ├── 1001.svg
│ ├── 1002.svg
│ ├── 1003.svg
│ ├── 1004.svg
│ ├── 1005.svg
│ ├── 1006.svg
│ ├── 1007.svg
│ ├── 1008.svg
│ ├── 1009.svg
│ ├── 101-fill.svg
│ ├── 101.svg
│ ├── 1010.svg
│ ├── 1011.svg
│ ├── 1012.svg
│ ├── 1013.svg
│ ├── 1014.svg
│ ├── 1015.svg
│ ├── 1016.svg
│ ├── 1017.svg
│ ├── 1018.svg
│ ├── 1019.svg
│ ├── 102-fill.svg
│ ├── 102.svg
│ ├── 1020.svg
│ ├── 1021.svg
│ ├── 1022.svg
│ ├── 1023.svg
│ ├── 1024.svg
│ ├── 1025.svg
│ ├── 1026.svg
│ ├── 1027.svg
│ ├── 1028.svg
│ ├── 1029.svg
│ ├── 103-fill.svg
│ ├── 103.svg
│ ├── 1030.svg
│ ├── 1031.svg
│ ├── 1032.svg
│ ├── 1033.svg
│ ├── 1034.svg
│ ├── 1035.svg
│ ├── 1036.svg
│ ├── 1037.svg
│ ├── 1038.svg
│ ├── 1039.svg
│ ├── 104-fill.svg
│ ├── 104.svg
│ ├── 1040.svg
│ ├── 1041.svg
│ ├── 1042.svg
│ ├── 1043.svg
│ ├── 1044.svg
│ ├── 1045.svg
│ ├── 1046.svg
│ ├── 1047.svg
│ ├── 1048.svg
│ ├── 1049.svg
│ ├── 1050.svg
│ ├── 1051.svg
│ ├── 1052.svg
│ ├── 1053.svg
│ ├── 1054.svg
│ ├── 1055.svg
│ ├── 1056.svg
│ ├── 1057.svg
│ ├── 1058.svg
│ ├── 1059.svg
│ ├── 1060.svg
│ ├── 1061.svg
│ ├── 1062.svg
│ ├── 1063.svg
│ ├── 1064.svg
│ ├── 1065.svg
│ ├── 1066.svg
│ ├── 1067.svg
│ ├── 1068.svg
│ ├── 1069.svg
│ ├── 1071.svg
│ ├── 1072.svg
│ ├── 1073.svg
│ ├── 1074.svg
│ ├── 1075.svg
│ ├── 1076.svg
│ ├── 1077.svg
│ ├── 1078.svg
│ ├── 1079.svg
│ ├── 1080.svg
│ ├── 1081.svg
│ ├── 1082.svg
│ ├── 1084.svg
│ ├── 1085.svg
│ ├── 1086.svg
│ ├── 1087.svg
│ ├── 1088.svg
│ ├── 1089.svg
│ ├── 1101.svg
│ ├── 1302.svg
│ ├── 1402.svg
│ ├── 150-fill.svg
│ ├── 150.svg
│ ├── 151-fill.svg
│ ├── 151.svg
│ ├── 152-fill.svg
│ ├── 152.svg
│ ├── 153-fill.svg
│ ├── 153.svg
│ ├── 1601.svg
│ ├── 1602.svg
│ ├── 1603.svg
│ ├── 1604.svg
│ ├── 1605.svg
│ ├── 1606.svg
│ ├── 1607.svg
│ ├── 1701.svg
│ ├── 1702.svg
│ ├── 1703.svg
│ ├── 2001.svg
│ ├── 2002.svg
│ ├── 2003.svg
│ ├── 2004.svg
│ ├── 2005.svg
│ ├── 2006.svg
│ ├── 2007.svg
│ ├── 2008.svg
│ ├── 2009.svg
│ ├── 2010.svg
│ ├── 2011.svg
│ ├── 2012.svg
│ ├── 2013.svg
│ ├── 2014.svg
│ ├── 2015.svg
│ ├── 2016.svg
│ ├── 2017.svg
│ ├── 2018.svg
│ ├── 2019.svg
│ ├── 2020.svg
│ ├── 2021.svg
│ ├── 2022.svg
│ ├── 2023.svg
│ ├── 2024.svg
│ ├── 2025.svg
│ ├── 2026.svg
│ ├── 2027.svg
│ ├── 2028.svg
│ ├── 2052.svg
│ ├── 2053.svg
│ ├── 2054.svg
│ ├── 300-fill.svg
│ ├── 300.svg
│ ├── 301-fill.svg
│ ├── 301.svg
│ ├── 302-fill.svg
│ ├── 302.svg
│ ├── 303-fill.svg
│ ├── 303.svg
│ ├── 304-fill.svg
│ ├── 304.svg
│ ├── 305-fill.svg
│ ├── 305.svg
│ ├── 306-fill.svg
│ ├── 306.svg
│ ├── 307-fill.svg
│ ├── 307.svg
│ ├── 308-fill.svg
│ ├── 308.svg
│ ├── 309-fill.svg
│ ├── 309.svg
│ ├── 310-fill.svg
│ ├── 310.svg
│ ├── 311-fill.svg
│ ├── 311.svg
│ ├── 312-fill.svg
│ ├── 312.svg
│ ├── 313-fill.svg
│ ├── 313.svg
│ ├── 314-fill.svg
│ ├── 314.svg
│ ├── 315-fill.svg
│ ├── 315.svg
│ ├── 316-fill.svg
│ ├── 316.svg
│ ├── 317-fill.svg
│ ├── 317.svg
│ ├── 318-fill.svg
│ ├── 318.svg
│ ├── 350-fill.svg
│ ├── 350.svg
│ ├── 351-fill.svg
│ ├── 351.svg
│ ├── 399-fill.svg
│ ├── 399.svg
│ ├── 400-fill.svg
│ ├── 400.svg
│ ├── 401-fill.svg
│ ├── 401.svg
│ ├── 402-fill.svg
│ ├── 402.svg
│ ├── 403-fill.svg
│ ├── 403.svg
│ ├── 404-fill.svg
│ ├── 404.svg
│ ├── 405-fill.svg
│ ├── 405.svg
│ ├── 406-fill.svg
│ ├── 406.svg
│ ├── 407-fill.svg
│ ├── 407.svg
│ ├── 408-fill.svg
│ ├── 408.svg
│ ├── 409-fill.svg
│ ├── 409.svg
│ ├── 410-fill.svg
│ ├── 410.svg
│ ├── 456-fill.svg
│ ├── 456.svg
│ ├── 457-fill.svg
│ ├── 457.svg
│ ├── 499-fill.svg
│ ├── 499.svg
│ ├── 500-fill.svg
│ ├── 500.svg
│ ├── 501-fill.svg
│ ├── 501.svg
│ ├── 502-fill.svg
│ ├── 502.svg
│ ├── 503-fill.svg
│ ├── 503.svg
│ ├── 504-fill.svg
│ ├── 504.svg
│ ├── 507-fill.svg
│ ├── 507.svg
│ ├── 508-fill.svg
│ ├── 508.svg
│ ├── 509-fill.svg
│ ├── 509.svg
│ ├── 510-fill.svg
│ ├── 510.svg
│ ├── 511-fill.svg
│ ├── 511.svg
│ ├── 512-fill.svg
│ ├── 512.svg
│ ├── 513-fill.svg
│ ├── 513.svg
│ ├── 514-fill.svg
│ ├── 514.svg
│ ├── 515-fill.svg
│ ├── 515.svg
│ ├── 800.svg
│ ├── 801.svg
│ ├── 802.svg
│ ├── 803.svg
│ ├── 804.svg
│ ├── 805.svg
│ ├── 806.svg
│ ├── 807.svg
│ ├── 900-fill.svg
│ ├── 900.svg
│ ├── 901-fill.svg
│ ├── 901.svg
│ ├── 999-fill.svg
│ ├── 999.svg
│ ├── 9998.svg
│ ├── 9999.svg
│ ├── cpu.png
│ ├── qweather-fill.svg
│ ├── qweather.svg
│ └── ram.png
├── config.js
├── env.js
├── lib
├── client.js
├── cursorhover.js
├── iconUtils.js
├── lodash.js
├── lunarCalendar.js
└── monitors.js
├── scripts
├── goTodo
└── record.sh
├── style
├── corner.css
├── desk.css
├── dock.css
├── index.css
├── music.css
├── notificationTop.css
└── topBar.css
├── variables
├── blueDevice.js
├── memory.js
├── runApps.js
└── todo.js
└── widgets
├── deskCenter
├── battery.js
├── calendar.js
├── clock.js
├── date.js
├── deskCenterCenter.js
├── deskCenterLeft.js
├── deskCenterRight.js
├── index.js
├── music.js
├── systemInfo.js
├── todo.js
├── weather.js
└── wellKnow.js
├── dock
├── dock.js
└── index.js
├── notification
├── notification.js
└── notificationTop.js
├── runApps
├── index.js
└── main.js
├── screencorners
├── main.js
└── roundedcorner.js
└── topBar
├── centerBar.js
├── dymicBar
└── clientInfo.js
├── rightBar.js
├── systray.js
├── topBar.js
└── topRightBar.js
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 | # Editor-based HTTP Client requests
5 | /httpRequests/
6 |
--------------------------------------------------------------------------------
/.idea/ags.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
--------------------------------------------------------------------------------
/assets/cover.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuceV587/hyprland-ags/1ff7fbd9dd53eeb9274fb35517168f562cceecc2/assets/cover.jpg
--------------------------------------------------------------------------------
/assets/message.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuceV587/hyprland-ags/1ff7fbd9dd53eeb9274fb35517168f562cceecc2/assets/message.png
--------------------------------------------------------------------------------
/assets/next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuceV587/hyprland-ags/1ff7fbd9dd53eeb9274fb35517168f562cceecc2/assets/next.png
--------------------------------------------------------------------------------
/assets/pause.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuceV587/hyprland-ags/1ff7fbd9dd53eeb9274fb35517168f562cceecc2/assets/pause.png
--------------------------------------------------------------------------------
/assets/play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuceV587/hyprland-ags/1ff7fbd9dd53eeb9274fb35517168f562cceecc2/assets/play.png
--------------------------------------------------------------------------------
/assets/prev.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuceV587/hyprland-ags/1ff7fbd9dd53eeb9274fb35517168f562cceecc2/assets/prev.png
--------------------------------------------------------------------------------
/assets/weather/icons/100-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/100.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/assets/weather/icons/1001.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1003.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1005.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1006.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1007.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1008.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1009.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/101-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1011.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1012.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1013.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1014.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1015.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1017.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1018.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1019.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/102-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/102.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1020.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1021.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1022.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1023.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1025.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1026.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1027.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1028.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1029.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1030.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1031.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1034.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1035.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1037.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1038.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1039.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/104-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/104.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1040.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1041.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1042.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1043.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1044.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1045.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1046.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1048.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1049.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1050.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1051.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1056.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1058.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1059.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1060.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1061.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1063.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1064.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1067.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1069.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1072.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1073.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1074.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1076.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1077.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1078.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1082.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1084.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1085.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1086.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1087.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1089.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1101.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1302.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/150-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/150.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/151-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/152-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/152.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1601.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1603.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1604.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1605.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1606.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1607.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1701.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1702.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/1703.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2001.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2002.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2003.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2005.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2006.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2007.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2008.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2010.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2011.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2012.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2013.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2014.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2015.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2016.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2017.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2019.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2020.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2023.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2024.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2025.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2026.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2027.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2028.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2052.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2053.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/2054.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/300-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/301-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/302-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/302.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/303-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/303.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/304-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/304.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/305-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/305.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/306-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/306.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/307-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/307.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/308-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/308.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/309-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/309.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/310-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/310.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/311-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/311.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/312-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/312.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/313-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/313.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/314-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/315-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/316-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/317-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/318-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/350-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/351-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/399-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/399.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/400-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/400.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/401-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/401.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/402-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/404-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/404.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/405-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/405.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/406-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/408-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/456-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/457-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/499-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/499.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/500-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/500.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/501-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/501.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/502-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/502.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/504-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/504.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/507-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/507.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/508-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/509-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/509.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/510-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/510.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/511-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/511.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/512-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/512.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/513-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/513.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/514-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/514.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/515-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/515.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/800.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/801.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/802.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/803.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/804.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/805.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/806.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/807.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/900-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/900.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/901-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/901.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/999-fill.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/999.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/9998.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/9999.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/cpu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuceV587/hyprland-ags/1ff7fbd9dd53eeb9274fb35517168f562cceecc2/assets/weather/icons/cpu.png
--------------------------------------------------------------------------------
/assets/weather/icons/qweather.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/weather/icons/ram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuceV587/hyprland-ags/1ff7fbd9dd53eeb9274fb35517168f562cceecc2/assets/weather/icons/ram.png
--------------------------------------------------------------------------------
/config.js:
--------------------------------------------------------------------------------
1 |
2 | import topBar from './widgets/topBar/topBar.js'
3 | import App from 'resource:///com/github/Aylur/ags/app.js';
4 | import Dock from "./widgets/dock/index.js";
5 | import notificationTop from './widgets/notification/notificationTop.js';
6 | import Monitors from './lib/monitors.js'
7 | import deskCenter from './widgets/deskCenter/index.js'
8 | import runApps from './widgets/runApps/index.js'
9 |
10 | //定义主屏幕的id
11 | const mainMonitorId = Monitors.mainMonitorId
12 |
13 | export default {
14 | style: `${App.configDir}/style/index.css`,
15 | stackTraceOnError: true,
16 | windows: [
17 | topBar(mainMonitorId),
18 | Dock(mainMonitorId),
19 | notificationTop(mainMonitorId),
20 | deskCenter(mainMonitorId),
21 | runApps(mainMonitorId)
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/env.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | const config = {
4 |
5 | //主屏幕的屏幕id(`hyprctl monitors`)
6 | mainMonitorIdSet: 1,
7 | weatherLoaction: '101250111',
8 | weatherLocationName: ' 长沙天心',
9 | weatherKey: "5ca9c851a9d44819961749d9909e4f3d",
10 |
11 | // M.weather_app_id = '5ca9c851a9d44819961749d9909e4f3d'
12 | // M.weather_city_id = '101250111'
13 | // M.weather_city_name=' 长沙天心'
14 | }
15 |
16 | export default config
17 |
--------------------------------------------------------------------------------
/scripts/goTodo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuceV587/hyprland-ags/1ff7fbd9dd53eeb9274fb35517168f562cceecc2/scripts/goTodo
--------------------------------------------------------------------------------
/scripts/record.sh:
--------------------------------------------------------------------------------
1 | #/usr/bin/bash
2 |
3 | cd ~/Videos/
4 | if [[ "$(pidof wf-recorder)" == "" ]]; then
5 | notify-send "wf-recorder" "Starting recording" -a 'wf-recorder'
6 | wf-recorder -f './recording_'"$(date '+%Y_%m_%_d..%H.%M')"'.mp4' -t --geometry "$(slurp)"
7 | else
8 | /usr/bin/kill --signal SIGINT wf-recorder
9 | notify-send "wf-recorder" "Recording Stopped" -a 'wf-recorder'
10 | fi
11 |
--------------------------------------------------------------------------------
/style/corner.css:
--------------------------------------------------------------------------------
1 | .corner {
2 | background-color: rgba(22, 17, 15, 0.93);
3 | border-radius: 1.705rem;
4 | -gtk-outline-radius: 1.705rem; }
5 |
6 | .corner-black {
7 | background-color: black;
8 | border-radius: 1.705rem;
9 | -gtk-outline-radius: 1.705rem; }
--------------------------------------------------------------------------------
/style/desk.css:
--------------------------------------------------------------------------------
1 | .f-clock-widget{
2 | background-color:rgba(0,0,0,0.8);
3 | border-radius:1.5rem;
4 | }
5 |
6 | .f-battery{
7 | background-color: rgba(232,232,232,0.8);
8 | border-radius:1.5rem;
9 | }
10 |
11 |
12 |
13 |
14 |
15 |
16 | /*----------中间的组件列----------*/
17 | /*----------中间的组件列----------*/
18 | .f-desk-center{
19 | }
20 |
21 | /*----------日期组件----------*/
22 | .f-date-widget{
23 | background-color:#fff;
24 | }
25 |
--------------------------------------------------------------------------------
/style/dock.css:
--------------------------------------------------------------------------------
1 | .f-dock-wrap-line{
2 | background-color: rgba(232,232,232,0.8);
3 | min-height:0.5rem;
4 | min-width:60rem;
5 | border-radius:9999rem;
6 | }
7 |
8 | .f-dock-wrap{
9 | min-height:0.1rem;
10 | /* background-color: rgba(232,232,232,0.35); */
11 | background-color: rgba(232,232,232,0.4);
12 | /* background-color: rgba(102,102,102,0.5); */
13 | /* background-image:url('./bg.jpg'); */
14 | /* box-shadow: 0px 2px 3px rgba(0,0,0,0.8); */
15 | padding-left:0.2rem;
16 | padding-right:0.2rem;
17 | padding-top:0.3rem;
18 | padding-bottom:0.3rem;
19 | border-radius:1.6rem;
20 | }
21 | .dock-app-btn{
22 | border:none;
23 | box-shadow:none;
24 | background-color:transparent;
25 | background-image:none;
26 | padding:0 0.5rem;
27 | }
28 |
29 | .f-test > box{
30 | min-height:0.3rem
31 | }
32 |
33 | .dock-app-icon-box{
34 | border:none;
35 | background-color:transparent;
36 | background-image:none;
37 | min-width:4.5rem;
38 | min-height: 4.5rem;
39 | }
40 |
41 | .dock-app-icon{
42 | background-color:transparent;
43 | border-radius:1rem;
44 | }
45 |
46 |
47 | .u-dock-separator{
48 | margin-top:0.5rem;
49 | margin-bottom:0.5rem;
50 | min-width:0.15rem;
51 | background-color:rgba(232,232,232,0.4);
52 | border-radius:99rem;
53 | }
54 |
--------------------------------------------------------------------------------
/style/index.css:
--------------------------------------------------------------------------------
1 |
2 | window{
3 | background-color: transparent;
4 | }
5 |
6 | /**顶部的bar**/
7 | @import url('./topBar.css');
8 | @import url('./corner.css');
9 | @import url('./dock.css');
10 | @import url('./notificationTop.css');
11 | @import url('./desk.css');
12 | @import url('./music.css');
13 |
14 | .font{
15 | font-family: 'JetBrains Mono Nerd Font', 'JetBrains Mono NL', 'SpaceMono Nerd Font', monospace;
16 | }
17 |
--------------------------------------------------------------------------------
/style/music.css:
--------------------------------------------------------------------------------
1 | .osd-progress {
2 | border-radius:1.5rem;
3 | border:0;
4 | padding:0;
5 | margin:0;
6 | border-radius: 10rem;
7 | border:0;
8 | transition: 1000ms cubic-bezier(0.1, 1, 0, 1);
9 | }
10 |
11 |
12 | .osd-progress trough {
13 | min-height:0.4rem;
14 | border-radius: 10rem;
15 | padding:0;
16 | margin:0;
17 | border:0;
18 | background-color: #999;
19 | }
20 |
21 | .osd-progress progress {
22 | min-height:0.4rem;
23 | transition: 1000ms cubic-bezier(0.1, 1, 0, 1);
24 | border-top-left-radius: 10rem;
25 | border-bottom-left-radius:10rem;
26 | padding:0;
27 | margin:0;
28 | border:0;
29 | background-color: #fff;
30 | }
31 |
32 |
33 |
34 | .appsEntry entry{
35 | border:0;
36 | }
37 |
--------------------------------------------------------------------------------
/style/notificationTop.css:
--------------------------------------------------------------------------------
1 | .f-notification-popup{
2 | background-color: transparent;
3 | min-width: 1rem;
4 | min-height: 1rem;
5 | }
6 | .f-notification-popup-box{
7 | background-color:rgba(232,232,232,0.6);
8 | border:1px solid rgba(232,232,232,0.65);
9 | border-radius:1rem;
10 | -gtk-outline-radius:1rem;
11 | padding:0.5rem;
12 | margin-bottom: 0.3rem;
13 | min-width: 28rem;
14 | min-height: 3.8rem;
15 | color:#000;
16 | }
17 |
18 | .notif-icon {
19 | border-radius: 0.5rem;
20 | min-width: 3.409rem;
21 | min-height: 3.409rem;
22 | margin-right: 0.5rem;
23 | }
24 |
25 | .txt-small {
26 | font-family: 'AR One Sans', 'Geist', 'Inter', 'Roboto', 'Noto Sans', sans-serif;
27 | font-size: 1.0909rem; }
28 |
29 | .txt-semibold {
30 | font-weight: 500; }
31 |
32 | .titlefont {
33 | font-family: 'Gabarito', 'Lexend', sans-serif;
34 | }
35 | .txt-smaller {
36 | font-family: 'AR One Sans', 'Geist', 'Inter', 'Roboto', 'Noto Sans', sans-serif;
37 | font-size: 0.9091rem;
38 | }
39 | .u-notcie-end{
40 | margin-right: 0.3rem;
41 | }
42 |
--------------------------------------------------------------------------------
/style/topBar.css:
--------------------------------------------------------------------------------
1 |
2 | .f-bar{
3 | min-height: 2.2rem;
4 | background-color:transparent;
5 | color: #fff;
6 | }
7 | .u-left-bar{
8 | font-family: 'JetBrains Mono Nerd Font', 'JetBrains Mono NL', 'SpaceMono Nerd Font', monospace;
9 | font-size: 1rem;
10 | color:#fff;
11 | font-weight: 800;
12 | min-height: 2.2rem;
13 | margin-left: 1rem;
14 | /* letter-spacing:1px; */
15 | }
16 |
17 | .u-right-bar{
18 | font-family: 'JetBrains Mono Nerd Font', 'JetBrains Mono NL', 'SpaceMono Nerd Font', monospace;
19 | background-color:transparent;
20 | font-size: 1rem;
21 | font-weight: 800;
22 | margin-left: 1rem;
23 | min-height: 2.2rem;
24 | background-color:transparent;
25 | color: #fff;
26 | }
27 | .u-systray{
28 | margin-right: 1rem;
29 | background-color:rgba(255, 255, 255, 0.1);
30 | border-radius: 2rem;
31 | }
32 | .u-systray >button{
33 | padding: 0.3rem;
34 | background-color:transparent;
35 | background-image: none;
36 | border: none;
37 | margin-left: 0.2rem;
38 | box-shadow: none;
39 | font-size: 0.8rem;
40 | }
41 |
--------------------------------------------------------------------------------
/variables/blueDevice.js:
--------------------------------------------------------------------------------
1 |
2 | //每半分钟更新连接的蓝牙设备电量+本机电量
3 | import Variable from "resource:///com/github/Aylur/ags/variable.js";
4 |
5 | import Bluetooth from 'resource:///com/github/Aylur/ags/service/bluetooth.js';
6 | import Battery from 'resource:///com/github/Aylur/ags/service/battery.js';
7 |
8 | const firstTime = false
9 |
10 | const blueDeviceVariable = Variable([], {
11 | // listen is what will be passed to Utils.subprocess, so either a string or string[]
12 | // listen: ['bash', '-c', "LANG=c free -m | grep 'Mem:' | awk '{printf \"%d@@%d@\", $7, $2}'"],
13 | poll: [30000, () => {
14 | //delay for the first poll
15 | const blueDevice = Bluetooth['connected-devices']
16 | const blueDeviceBattery = [
17 | { battery: Battery.percent, type: 'charg-computer' }
18 | ]
19 | blueDevice.map(item => {
20 | const deivce = {
21 | battery: item._device['battery_percentage']|| 0,
22 | type: item._device['icon']
23 | }
24 | blueDeviceBattery.push(deivce)
25 | })
26 |
27 | return blueDeviceBattery
28 | }],
29 | });
30 |
31 |
32 | export default blueDeviceVariable;
33 |
--------------------------------------------------------------------------------
/variables/memory.js:
--------------------------------------------------------------------------------
1 | import Variable from "resource:///com/github/Aylur/ags/variable.js";
2 |
3 | const meoryUse = Variable("10", {
4 | // listen is what will be passed to Utils.subprocess, so either a string or string[]
5 | // listen: ['bash', '-c', "LANG=c free -m | grep 'Mem:' | awk '{printf \"%d@@%d@\", $7, $2}'"],
6 | poll: [2000, [
7 | "bash",
8 | "-c",
9 | "LANG=c free -m | grep 'Mem:' | awk '{printf \"%d||%d\", $7, $2}'",
10 | ], (out) => {
11 | const mem = out.split("||");
12 | return {available:mem[0]||10,total:mem[1]||31498}
13 | }],
14 | });
15 |
16 |
17 | export default meoryUse;
18 |
--------------------------------------------------------------------------------
/variables/todo.js:
--------------------------------------------------------------------------------
1 | import Variable from "resource:///com/github/Aylur/ags/variable.js";
2 | import App from "resource:///com/github/Aylur/ags/app.js";
3 |
4 | //一分钟刷新一次。
5 | const todoUse = Variable("10", {
6 | poll: [60000, [
7 | "bash",
8 | "-c",
9 | `${App.configDir}/scripts/goTodo list`
10 | ], (out) => {
11 | let todoContent=[]
12 | try {
13 | todoContent = JSON.parse(out)
14 | } catch (error) {
15 | console.log("get todoList error")
16 | console.log(error)
17 | }
18 |
19 | //检查是否是数组格式
20 | if(!Array.isArray(todoContent)){
21 | return []
22 | }
23 |
24 | return todoContent
25 | }],
26 | });
27 |
28 | export default todoUse;
29 |
--------------------------------------------------------------------------------
/widgets/deskCenter/deskCenterRight.js:
--------------------------------------------------------------------------------
1 |
2 | import Widget from 'resource:///com/github/Aylur/ags/widget.js';
3 | import * as Utils from 'resource:///com/github/Aylur/ags/utils.js'
4 | import { clock } from './clock.js';
5 | import { battery } from './battery.js'
6 |
7 | const rightWidgets = ( desk_widget_spacing) => {
8 | const row_1 = Widget.Box({
9 | spacing: desk_widget_spacing,
10 | vpack: 'fill',
11 | hpack: 'fill',
12 | setup:(self)=>{
13 | Utils.timeout(500,()=>{
14 | const width = self.get_allocated_width();
15 | const avagRow= Math.floor( (width - desk_widget_spacing) / 4)
16 | self.children =[
17 | clock(avagRow),
18 | battery(avagRow)
19 | ]
20 | })
21 | },
22 | })
23 |
24 | const row_2 =Widget.Box({
25 | spacing: desk_widget_spacing,
26 | vpack: 'fill',
27 | hpack: 'fill',
28 | })
29 |
30 | const mainWrap = Widget.Box({
31 | vpack: 'fill',
32 | vertical: true,
33 | // homogeneous:true,
34 | children: [
35 | row_1,
36 | // row_2
37 | ],
38 | })
39 | return mainWrap
40 | }
41 |
42 | export default rightWidgets
43 |
--------------------------------------------------------------------------------
/widgets/deskCenter/index.js:
--------------------------------------------------------------------------------
1 | const { Gdk, Gtk } = imports.gi;
2 | import deskCenterLeft from "./deskCenterLeft.js";
3 | import deskCenterCenter from "./deskCenterCenter.js";
4 | import deskCenterRight from "./deskCenterRight.js"
5 | import Widget from "resource:///com/github/Aylur/ags/widget.js";
6 | import * as Utils from 'resource:///com/github/Aylur/ags/utils.js'
7 | import monitors from "../../lib/monitors.js";
8 |
9 | //每个组件之间的spacing
10 | const desk_widget_spacing = 25;
11 |
12 | const mainBox = Widget.Box({
13 | homogeneous:true,
14 | spacing:desk_widget_spacing,
15 | children:[
16 | deskCenterLeft(desk_widget_spacing),
17 | deskCenterCenter( desk_widget_spacing),
18 | deskCenterRight(desk_widget_spacing)
19 | ],
20 | });
21 |
22 | const deskCenter = (monitor) => {
23 | const win = Widget.Window({
24 | monitor,
25 | name: `dock_center_left`,
26 | margins: [50, desk_widget_spacing, 0, desk_widget_spacing],
27 | anchor: ["top", "left", "right"],
28 | child: mainBox,
29 | layer: "background", //可以被覆盖在底层。相当于css里面z-index较低的层级
30 | });
31 | return win;
32 | };
33 |
34 | export default deskCenter;
35 |
--------------------------------------------------------------------------------
/widgets/deskCenter/wellKnow.js:
--------------------------------------------------------------------------------
1 | import Widget from "resource:///com/github/Aylur/ags/widget.js";
2 | import * as Utils from "resource:///com/github/Aylur/ags/utils.js";
3 | const { Gdk, Gtk } = imports.gi;
4 | import { execAsync } from "resource:///com/github/Aylur/ags/utils.js";
5 | import meoryVaribale from "../../variables/memory.js";
6 |
7 | const mainCover = (avg_row_px)=>{
8 | const widget= Widget.Box({
9 | css:`background-color:rgba(0,0,0,0.3);min-height:${avg_row_px}px;border-radius:1.5rem`,
10 |
11 | })
12 |
13 | return widget
14 |
15 | }
16 |
17 |
18 | const wellKnow = (avg_row_px)=>{
19 |
20 |
21 | const widget = Widget.Box({
22 | hpack: "fill",
23 | vpack: "fill",
24 | vertical: true,
25 | css: `min-width:${avg_row_px * 2}px;min-height:${avg_row_px}px;background-color:rgba(232,232,232,0.8);;border-radius:1.5rem;background-image:url('/home/amao/.config/awesome/wallpapers/bg2.jpg');background-size:cover;`,
26 | children:[
27 | // mainCover(avg_row_px)
28 | ]
29 | });
30 |
31 | return widget;
32 | }
33 |
34 | export default wellKnow
35 |
--------------------------------------------------------------------------------
/widgets/dock/index.js:
--------------------------------------------------------------------------------
1 | import Widget from 'resource:///com/github/Aylur/ags/widget.js';
2 | import Dock from './dock.js';
3 |
4 | export default (monitor) => Widget.Window({
5 | monitor,
6 | className: 'f-dock-window',
7 | name: `dock${monitor}`,
8 | layer: 'top',
9 | anchor: ['bottom'],
10 | margins: [10, 0, 10, 0],
11 | exclusivity: 'exclusive',
12 | child: Dock(),
13 | });
14 |
--------------------------------------------------------------------------------
/widgets/runApps/index.js:
--------------------------------------------------------------------------------
1 |
2 | import Widget from "resource:///com/github/Aylur/ags/widget.js";
3 | import mainBox from "./main.js"
4 |
5 |
6 | const runApps = (monitor) => {
7 | const win = Widget.Window({
8 | monitor,
9 | name: `runApps`,
10 | // anchor: ["top"],
11 | child: mainBox(),
12 | popup: true,
13 | layer: "top", //可以被覆盖在底层。相当于css里面z-index较低的层级
14 | keymode: "on-demand",
15 | visible: false,
16 | });
17 | return win;
18 | };
19 |
20 | export default runApps;
21 |
--------------------------------------------------------------------------------
/widgets/screencorners/main.js:
--------------------------------------------------------------------------------
1 | import Widget from 'resource:///com/github/Aylur/ags/widget.js';
2 | import {RoundedCorner} from './roundedcorner.js';
3 |
4 | export const CornerTopleft = () => Widget.Window({
5 | name: 'cornertl',
6 | layer: 'top',
7 | anchor: ['top', 'left'],
8 | exclusive: false,
9 | visible: true,
10 | child: RoundedCorner('topleft', { className: 'corner', }),
11 | });
12 | export const CornerTopright = () => Widget.Window({
13 | name: 'cornertr',
14 | layer: 'top',
15 | anchor: ['top', 'right'],
16 | exclusive: false,
17 | visible: true,
18 | child: RoundedCorner('topright', { className: 'corner', }),
19 | });
20 | export const CornerBottomleft = () => Widget.Window({
21 | name: 'cornerbl',
22 | layer: 'top',
23 | anchor: ['bottom', 'left'],
24 | exclusive: false,
25 | visible: true,
26 | child: RoundedCorner('bottomleft', { className: 'corner-black', }),
27 | });
28 | export const CornerBottomright = () => Widget.Window({
29 | name: 'cornerbr',
30 | layer: 'top',
31 | anchor: ['bottom', 'right'],
32 | exclusive: false,
33 | visible: true,
34 | child: RoundedCorner('bottomright', { className: 'corner-black', }),
35 | });
36 |
37 |
--------------------------------------------------------------------------------
/widgets/topBar/centerBar.js:
--------------------------------------------------------------------------------
1 | import Widget from "resource:///com/github/Aylur/ags/widget.js";
2 | import clientInfoWidget from "./dymicBar/clientInfo.js";
3 |
4 |
5 |
6 | export const centerBar = () => {
7 | const mainControl = Widget.Stack({
8 | items: [
9 | ['clientInfo',clientInfoWidget()],
10 | ],
11 | shown:'clientInfo',
12 | connections: [
13 | ],
14 | })
15 |
16 | const centerWidget = Widget.Box({
17 | className: "u-right-bar",
18 | hpack: "end",
19 | vpack: "fill",
20 | vertical: false,
21 | children: [
22 | mainControl,
23 | ],
24 | });
25 |
26 | return centerWidget;
27 | };
28 |
--------------------------------------------------------------------------------
/widgets/topBar/topRightBar.js:
--------------------------------------------------------------------------------
1 |
2 | import Widget from 'resource:///com/github/Aylur/ags/widget.js';
3 | import { execAsync } from 'resource:///com/github/Aylur/ags/utils.js'
4 | import Hyprland from 'resource:///com/github/Aylur/ags/service/hyprland.js';
5 | import { rightBar } from './rightBar.js'
6 | const topRightBar = function(monitor = 1) {
7 |
8 | const win = Widget.Window({
9 | monitor,
10 | name: `bar-right-${monitor}`,
11 | anchor: ['top','right'],
12 | child: rightBar(),
13 | // exclusive: true,
14 | layer: 'top'
15 | })
16 | return win
17 | }
18 |
19 |
20 |
21 | export default topRightBar
22 |
--------------------------------------------------------------------------------