Skip to content

Commit

Permalink
Update Desktop.osl
Browse files Browse the repository at this point in the history
  • Loading branch information
Mistium authored Jul 4, 2024
1 parent 2aabf81 commit 12fbff3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions OSL Programs/apps/System/Desktop.osl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ def "icons_small"
save "theme.json" "set" theme
endef

def "icons_hide"
app_size = 0
theme.app_size = app_size
save "theme.json" "set" theme
endef


desktop_rightclick = [
"Change Wallpaper",
Expand All @@ -32,10 +38,12 @@ desktop_rightclick = [
"Copy Path",
"-",
[
"File Icon Size",
"View",
{"Big Icons":"icons_big"},
{"Normal Icons":"icons_norm"},
{"Small Icons":"icons_small"}
{"Small Icons":"icons_small"},
"-",
{"Hide Icons":"icons_hide"}
]
]

Expand Down Expand Up @@ -64,6 +72,7 @@ mainloop:
include windowfileloc
nhvr = window_id_index != window_top_index
cnrn = desktop != data or bg_redrawn

if cnrn.not and nhvr "exit"
movefileloc windowfileloc
window "y" 35
Expand Down Expand Up @@ -112,6 +121,7 @@ if nhvr.not (
rightclick desktop_rightclick desktop_uuid
)
if data == [] "exit"
if app_size == 0 "exit"
each i app_id desktop (
file "open" app_id "onlyaccess"
loc 2 2 35 -35
Expand Down

0 comments on commit 12fbff3

Please sign in to comment.