tenseleyflow/ndotfiles / bfcfb5c

Browse files

third screen in portrait

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
bfcfb5c7bc8545a36307dc772e533d1196681ae9
Parents
44aaf88
Tree
ee04e42

4 changed files

StatusFile+-
M hypr/config/monitor.conf 2 1
A waybar/config-landscape 196 0
A waybar/config-portrait 60 0
M waybar/waybar.sh 5 2
hypr/config/monitor.confmodified
@@ -5,8 +5,9 @@
55
 # Monitor wiki https://wiki.hyprland.org/Configuring/Monitors/
66
 
77
 # monitor = , preferred, auto, 1
8
-monitor = DP-1, 3840x2160@60, 2560x0, 1
98
 monitor = HDMI-A-1, 2560x1440@60, 0x0, 1
9
+monitor = DP-1, 3840x2160@60, 2560x0, 1
10
+# monitor = HDMI-A-2, 1920x1080@60, 6400x0, 1, transform, 1  # Third monitor disconnected
1011
 
1112
 # If you need to scale things like steam etc, please uncomment these lines.
1213
 #xwayland {
waybar/config-landscapeadded
@@ -0,0 +1,196 @@
1
+{
2
+    // -------------------------------------------------------------------------
3
+    // Global configuration - Landscape monitors
4
+    // -------------------------------------------------------------------------
5
+
6
+    "layer": "top",
7
+    "position": "top",
8
+    "margin-left": 10,
9
+    "margin-bottom": 0,
10
+    "margin-right": 10,
11
+    "spacing": 5,
12
+
13
+    // Only show on landscape monitors
14
+    "output": ["HDMI-A-1", "DP-1"],
15
+
16
+    "modules-left": [
17
+        "hyprland/workspaces",
18
+        "temperature",
19
+        "custom/spotify"
20
+    ],
21
+    "modules-center": [
22
+        "clock#date",
23
+        "custom/weather"
24
+    ],
25
+    "modules-right": [
26
+        "backlight",
27
+        "custom/storage",
28
+        "memory",
29
+        "cpu",
30
+        "battery",
31
+        "wireplumber",
32
+        "custom/almanta",
33
+        "custom/screenshot_t",
34
+        "custom/jetbrains",
35
+        "tray",
36
+        "custom/power"
37
+    ],
38
+
39
+    // -------------------------------------------------------------------------
40
+    // Modules (same as original)
41
+    // -------------------------------------------------------------------------
42
+
43
+    "custom/jetbrains": {
44
+      "format": "",
45
+      "tooltip": "JetBrains (click to choose IDE; right-click: Toolbox)",
46
+      "on-click": "~/.config/waybar/modules/jetbrains_menu.sh",
47
+      "on-click-right": "jetbrains-toolbox",
48
+      "interval": 0,
49
+      "class": "chip jetbrains"
50
+    },
51
+
52
+    "custom/almanta": {
53
+      "format": "{}",
54
+      "return-type": "json",
55
+      "interval": 20,
56
+      "exec": "/home/mfwolffe/.config/waybar/modules/almanta.sh",
57
+      "on-click": "alacritty -e ssh espadon@almanta",
58
+      "tooltip": true,
59
+      "class": "chip almanta"
60
+    },
61
+    
62
+    "custom/screenshot_t":{
63
+        "format":" ",
64
+        "on-click": "~/.config/hypr/scripts/screenshot_full",
65
+        "on-click-right":"~/.config/hypr/scripts/screenshot_area"
66
+    },
67
+
68
+    "temperature": {
69
+        "interval": 4,
70
+        "critical-threshold": 80,
71
+        "format-critical": "  {temperatureC}°C",
72
+        "format": "{icon}  {temperatureC}°C",
73
+        "format-icons": ["", "", ""],
74
+        "max-length": 7,
75
+        "min-length": 7,
76
+        "on-click": "xsensors"
77
+    },
78
+
79
+    "memory": {
80
+        "interval": 30,
81
+        "format": "  {used:0.2f} / {total:0.0f} GB",
82
+        "on-click": "alacritty -e btop"
83
+    },
84
+
85
+    "battery": {
86
+        "interval": 2,
87
+        "states": {
88
+            "good": 95,
89
+            "warning": 30,
90
+            "critical": 15
91
+        },
92
+        "format": "{icon} {capacity}%",
93
+        "format-charging": " {capacity}%",
94
+        "format-plugged": " {capacity}%",
95
+        "format-icons": ["", "", "", "", ""]
96
+    },
97
+
98
+    "custom/storage": {
99
+        "format": " {}",
100
+        "format-alt": "{percentage}% ",
101
+        "format-alt-click": "click-right",
102
+        "return-type": "json",
103
+        "interval": 60,
104
+        "exec": "~/.config/waybar/modules/storage.sh"
105
+    },
106
+
107
+    "backlight": {
108
+        "device": "intel_backlight",
109
+        "format": "{icon} {percent}%",
110
+        "format-alt": "{percent}% {icon}",
111
+        "format-alt-click": "click-right",
112
+        "format-icons": ["", ""],
113
+        "on-scroll-down": "brightnessctl s 5%-",
114
+        "on-scroll-up": "brightnessctl s +5%"
115
+    },
116
+
117
+    "custom/weather": {
118
+        "format": "{}",
119
+        "format-alt": "{alt}: {}",
120
+        "format-alt-click": "click-right",
121
+        "interval": 3600,
122
+        "exec": "curl -s 'https://wttr.in/?format=1'",
123
+        "exec-if": "ping wttr.in -c1"
124
+    },
125
+
126
+    "custom/spotify": {
127
+        "exec": "~/.config/waybar/mediaplayer.py --player spotify",
128
+        "format": "{}  ",
129
+        "return-type": "json",
130
+        "on-click": "playerctl play-pause",
131
+        "on-scroll-up": "playerctl next",
132
+        "on-scroll-down": "playerctl previous"
133
+    },
134
+
135
+    "custom/power": {
136
+        "format": " 󰐥 ",
137
+        "tooltip": false,
138
+        "on-click": "wlogout"
139
+    },
140
+
141
+    "clock#date": {
142
+        "format": "󰥔  {:%H:%M \n %e %b}",
143
+        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
144
+        "today-format": "<b>{}</b>"
145
+    },
146
+
147
+    "cpu": {
148
+        "interval": 1,
149
+        "format": "{max_frequency}GHz <span color=\"darkgray\">| {usage}%</span>",
150
+        "max-length": 13,
151
+        "min-length": 13
152
+    },
153
+
154
+    "hyprland/workspaces": {
155
+        "format": "{name}",
156
+        "format-icons": {
157
+            "1": "一",
158
+            "2": "二", 
159
+            "3": "三",
160
+            "4": "四",
161
+            "5": "五",
162
+            "6": "六",
163
+            "7": "七",
164
+            "8": "八",
165
+            "9": "九",
166
+            "10": "十"
167
+        },
168
+        "on-scroll-up": "hyprctl dispatch workspace e+1 1>/dev/null",
169
+        "on-scroll-down": "hyprctl dispatch workspace e-1 1>/dev/null",
170
+        "sort-by-number": true,
171
+        "active-only": false
172
+    },
173
+
174
+    "wireplumber": {
175
+        "on-click": "pavucontrol",
176
+        "on-click-right": "amixer sset Master toggle 1>/dev/null",
177
+        "format": "<span foreground='#fab387'>{icon}</span>  {volume}%",
178
+        "format-muted": " ",
179
+        "format-source": "",
180
+        "format-source-muted": "",
181
+        "format-icons": {
182
+            "headphone": " ",
183
+            "hands-free": " ",
184
+            "headset": " ",
185
+            "phone": " ",
186
+            "portable": " ",
187
+            "car": " ",
188
+            "default": [" ", " ", " "]
189
+        }
190
+    },
191
+
192
+    "tray": {
193
+        "icon-size": 15,
194
+        "spacing": 5
195
+    }
196
+}
waybar/config-portraitadded
@@ -0,0 +1,60 @@
1
+{
2
+    // -------------------------------------------------------------------------
3
+    // Global configuration - Portrait monitor
4
+    // -------------------------------------------------------------------------
5
+
6
+    "layer": "top",
7
+    "position": "top",
8
+    "margin-left": 5,
9
+    "margin-bottom": 0, 
10
+    "margin-right": 5,
11
+    "spacing": 3,
12
+
13
+    // Only show on portrait monitor
14
+    "output": ["HDMI-A-2"],
15
+
16
+    "modules-left": [
17
+        "hyprland/workspaces"
18
+    ],
19
+    "modules-center": [
20
+        "clock#portrait"
21
+    ],
22
+    "modules-right": [
23
+        "tray"
24
+    ],
25
+
26
+    // -------------------------------------------------------------------------
27
+    // Modules for portrait monitor (simplified)
28
+    // -------------------------------------------------------------------------
29
+
30
+    "clock#portrait": {
31
+        "format": "{:%H:%M}",
32
+        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
33
+        "today-format": "<b>{}</b>"
34
+    },
35
+
36
+    "hyprland/workspaces": {
37
+        "format": "{name}",
38
+        "format-icons": {
39
+            "1": "一",
40
+            "2": "二", 
41
+            "3": "三",
42
+            "4": "四",
43
+            "5": "五",
44
+            "6": "六",
45
+            "7": "七",
46
+            "8": "八",
47
+            "9": "九",
48
+            "10": "十"
49
+        },
50
+        "on-scroll-up": "hyprctl dispatch workspace e+1 1>/dev/null",
51
+        "on-scroll-down": "hyprctl dispatch workspace e-1 1>/dev/null",
52
+        "sort-by-number": true,
53
+        "active-only": false
54
+    },
55
+
56
+    "tray": {
57
+        "icon-size": 12,
58
+        "spacing": 3
59
+    }
60
+}
waybar/waybar.shmodified
@@ -6,5 +6,8 @@ killall -q waybar
66
 # Wait until the processes have been shut down
77
 while pgrep -x waybar >/dev/null; do sleep 1; done
88
 
9
-# Launch main
10
-waybar &
9
+# Launch waybar for landscape monitors
10
+waybar -c ~/.config/waybar/config-landscape &
11
+
12
+# Launch waybar for portrait monitor
13
+waybar -c ~/.config/waybar/config-portrait &