Skip to content

Commit 7bba5e5

Browse files
committed
fix: restore hyprdots files and add steam_deck theme
- Restore the original game launcher 5 file - Add steam deck theme to themes folder - Set steam deck theme as default
1 parent ac6d692 commit 7bba5e5

File tree

3 files changed

+122
-18
lines changed

3 files changed

+122
-18
lines changed

Configs/.local/lib/hyde/gamelauncher.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
#!/usr/bin/env bash
22

3-
[[ "${HYDE_SHELL_INIT}" -ne 1 ]] && eval "$(hyde-shell init)"
4-
3+
# set variables
54
MODE=${1}
5+
scrDir=$(dirname "$(realpath "$0")")
6+
source $scrDir/globalcontrol.sh
7+
# ThemeSet="${confDir}/hypr/themes/theme.conf"
68

79
if [[ "$MODE" =~ ^[0-9]+$ ]]; then
810
RofiConf="gamelauncher_${MODE}"
911
else
1012
RofiConf="${MODE:-$ROFI_GAMELAUNCHER_STYLE}"
1113
fi
12-
RofiConf=${RofiConf:-"gamelauncher_5"}
14+
RofiConf=${RofiConf:-"steam_deck"}
1315

1416
# set rofi override
1517
elem_border=$((hypr_border * 2))

Configs/.local/share/hyde/rofi/themes/gamelauncher_5.rasi

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ configuration {
1414
show-icons: true;
1515
drun-display-format: "{name}";
1616
font: "JetBrainsMono Nerd Font 8";
17-
kb-row-up: "k,Up";
18-
kb-row-down: "j,Down";
19-
kb-move-char-forward: "l,Right";
20-
kb-move-char-back: "h,Left";
21-
kb-cancel: "q,Escape";
2217
}
2318

2419
@theme "~/.config/rofi/theme.rasi"
@@ -28,9 +23,16 @@ configuration {
2823
window {
2924
enabled: true;
3025
fullscreen: false;
26+
width: 2155px;
27+
height: 850px;
3128
transparency: "real";
3229
cursor: "default";
33-
//background-image: this is dynamically set
30+
spacing: 0em;
31+
padding: 0em;
32+
border: 0em;
33+
border-radius: 0em;
34+
border-color: transparent;
35+
//background-image: this is dynamically set
3436
background-image: url("~/.local/share/hyde/rofi/steamdeck_holographic.png", width);
3537
background-color: transparent;
3638
}
@@ -39,24 +41,29 @@ mainbox {
3941
children: [ "listview" ];
4042
background-color: transparent;
4143
orientation: horizontal;
44+
spacing: 0em;
45+
padding: 4.2em 44.2em 5em 45em;
4246
}
4347

4448

4549
// Lists //
4650
listview {
4751
enabled: true;
48-
columns: 3;
52+
columns: 5;
4953
rows: 2;
5054
flow: horizontal;
5155
spacing: 2.5em;
52-
padding: 4em 5em 2em 5em;
56+
padding: 3em 5em 2em 5em;
5357
cycle: true;
5458
dynamic: true;
5559
scrollbar: false;
5660
reverse: false;
61+
fixed-height: true;
62+
fixed-columns: false;
63+
cursor: "default";
5764
background-color: @main-bg;
5865
text-color: @main-fg;
59-
border-radius: 0.4em;
66+
border-radius: 1em;
6067
}
6168

6269

@@ -65,24 +72,25 @@ element {
6572
enabled: true;
6673
orientation: vertical;
6774
spacing: 0em;
68-
border-radius: 0.4em;
75+
padding: 0.1em;
76+
border-radius: 0em;
6977
cursor: pointer;
7078
background-color: transparent;
7179
text-color: @main-fg;
7280
}
73-
7481
element selected.normal {
7582
background-color: @select-bg;
7683
text-color: @select-fg;
7784
}
78-
7985
element-icon {
80-
size: 24em;
86+
size: 8em;
87+
spacing: 0em;
88+
padding: 0em;
8189
cursor: inherit;
90+
border-radius: 0em;
8291
background-color: transparent;
8392
text-color: inherit;
8493
}
85-
8694
element-text {
8795
vertical-align: 0.5;
8896
horizontal-align: 0.5;
@@ -92,4 +100,3 @@ element-text {
92100
background-color: transparent;
93101
text-color: inherit;
94102
}
95-
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/**
2+
* ROFI Layout
3+
*
4+
* Game launcher 4: steamdeck holographic fullscreen
5+
*
6+
* User: The HyDE Project [ steamdeck holographic fullscreen ]
7+
* Copyright: The HyDE Project
8+
*/
9+
10+
11+
// Config //
12+
configuration {
13+
modi: "drun";
14+
show-icons: true;
15+
drun-display-format: "{name}";
16+
font: "JetBrainsMono Nerd Font 8";
17+
kb-row-up: "k,Up";
18+
kb-row-down: "j,Down";
19+
kb-move-char-forward: "l,Right";
20+
kb-move-char-back: "h,Left";
21+
kb-cancel: "q,Escape";
22+
}
23+
24+
@theme "~/.config/rofi/theme.rasi"
25+
26+
27+
// Main //
28+
window {
29+
enabled: true;
30+
fullscreen: false;
31+
transparency: "real";
32+
cursor: "default";
33+
//background-image: this is dynamically set
34+
background-image: url("~/.local/share/hyde/rofi/steamdeck_holographic.png", width);
35+
background-color: transparent;
36+
}
37+
mainbox {
38+
enabled: true;
39+
children: [ "listview" ];
40+
background-color: transparent;
41+
orientation: horizontal;
42+
}
43+
44+
45+
// Lists //
46+
listview {
47+
enabled: true;
48+
columns: 3;
49+
rows: 2;
50+
flow: horizontal;
51+
spacing: 2.5em;
52+
padding: 4em 5em 2em 5em;
53+
cycle: true;
54+
dynamic: true;
55+
scrollbar: false;
56+
reverse: false;
57+
background-color: @main-bg;
58+
text-color: @main-fg;
59+
border-radius: 0.4em;
60+
}
61+
62+
63+
// Elements //
64+
element {
65+
enabled: true;
66+
orientation: vertical;
67+
spacing: 0em;
68+
border-radius: 0.4em;
69+
cursor: pointer;
70+
background-color: transparent;
71+
text-color: @main-fg;
72+
}
73+
74+
element selected.normal {
75+
background-color: @select-bg;
76+
text-color: @select-fg;
77+
}
78+
79+
element-icon {
80+
size: 24em;
81+
cursor: inherit;
82+
background-color: transparent;
83+
text-color: inherit;
84+
}
85+
86+
element-text {
87+
vertical-align: 0.5;
88+
horizontal-align: 0.5;
89+
spacing: 0em;
90+
padding: 10px;
91+
cursor: inherit;
92+
background-color: transparent;
93+
text-color: inherit;
94+
}
95+

0 commit comments

Comments
 (0)