aboutsummaryrefslogtreecommitdiff
path: root/home/rices/cassette-futurism/plasma.nix
blob: dfb1338b46a96776f85dfc49c6f706b938af616a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
{
  config,
  pkgs,
  ...
}: let
  vars = import ./variables.nix;
in {
  # KDE Plasma configuration via xdg config files
  # This provides basic theming until plasma-manager is available

  xdg.configFile = {
    # i3-style keyboard shortcuts for KWin and KDE
    "kglobalshortcutsrc".text = ''
      [kwin]
      # i3-style window management
      Window Close=Meta+Q,Alt+F4,Close Window
      Window Fullscreen=Meta+F,none,Make Window Fullscreen
      Window Maximize=Meta+Shift+F,Meta+PgUp,Maximize Window
      Window Minimize=Meta+Shift+N,Meta+PgDown,Minimize Window

      # Virtual desktop switching (like i3 workspaces)
      Switch to Desktop 1=Meta+1,none,Switch to Desktop 1
      Switch to Desktop 2=Meta+2,none,Switch to Desktop 2
      Switch to Desktop 3=Meta+3,none,Switch to Desktop 3
      Switch to Desktop 4=Meta+4,none,Switch to Desktop 4
      Switch to Desktop 5=Meta+5,none,Switch to Desktop 5
      Switch to Desktop 6=Meta+6,none,Switch to Desktop 6
      Switch to Desktop 7=Meta+7,none,Switch to Desktop 7
      Switch to Desktop 8=Meta+8,none,Switch to Desktop 8
      Switch to Desktop 9=Meta+9,none,Switch to Desktop 9

      # Window movement
      Window Move Center=Meta+C,none,Move Window to Center
      Window Quick Tile Bottom=Meta+Shift+Down,Meta+Down,Quick Tile Window to the Bottom
      Window Quick Tile Top=Meta+Shift+Up,Meta+Up,Quick Tile Window to the Top
      Window Quick Tile Left=Meta+Shift+Left,Meta+Left,Quick Tile Window to the Left
      Window Quick Tile Right=Meta+Shift+Right,Meta+Right,Quick Tile Window to the Right

      [mediacontrol]
      # Volume controls (i3 media keys)
      mediavolumedown=XF86AudioLowerVolume,none,Media volume down
      mediavolumeup=XF86AudioRaiseVolume,none,Media volume up
      playpausemedia=XF86AudioPlay,none,Play/Pause media playback

      [org_kde_powerdevil]
      # Brightness controls (i3 brightness keys)
      Decrease Screen Brightness=XF86MonBrightnessDown,none,Decrease Screen Brightness
      Increase Screen Brightness=XF86MonBrightnessUp,none,Increase Screen Brightness

      [plasmashell]
      # Application launcher (like dmenu)
      activate application launcher=Meta+D\tAlt+F1,none,Activate Application Launcher Widget
    '';

    # Plasma color scheme - cassette futurism
    "kdeglobals".text = ''
      [ColorEffects:Disabled]
      Color=${vars.colors.gray3}
      ColorAmount=0
      ColorEffect=0
      ContrastAmount=0.65
      ContrastEffect=1
      IntensityAmount=0.1
      IntensityEffect=2

      [ColorEffects:Inactive]
      ChangeSelectionColor=true
      Color=${vars.colors.gray4}
      ColorAmount=0.025
      ColorEffect=2
      ContrastAmount=0.1
      ContrastEffect=2
      Enable=false
      IntensityAmount=0
      IntensityEffect=0

      [Colors:Button]
      BackgroundAlternate=${vars.colors.backgroundAlt}
      BackgroundNormal=${vars.colors.background}
      DecorationFocus=${vars.colors.hotPink}
      DecorationHover=${vars.colors.cyan}
      ForegroundActive=${vars.colors.cyan}
      ForegroundInactive=${vars.colors.gray4}
      ForegroundLink=${vars.colors.purple}
      ForegroundNegative=${vars.colors.error}
      ForegroundNeutral=${vars.colors.warning}
      ForegroundNormal=${vars.colors.foreground}
      ForegroundPositive=${vars.colors.success}
      ForegroundVisited=${vars.colors.magenta}

      [Colors:Selection]
      BackgroundAlternate=${vars.colors.purple}
      BackgroundNormal=${vars.colors.hotPink}
      DecorationFocus=${vars.colors.cyan}
      DecorationHover=${vars.colors.magenta}
      ForegroundActive=${vars.colors.background}
      ForegroundInactive=${vars.colors.gray2}
      ForegroundLink=${vars.colors.cyan}
      ForegroundNegative=${vars.colors.error}
      ForegroundNeutral=${vars.colors.warning}
      ForegroundNormal=${vars.colors.background}
      ForegroundPositive=${vars.colors.success}
      ForegroundVisited=${vars.colors.purple}

      [Colors:Tooltip]
      BackgroundAlternate=${vars.colors.backgroundAlt}
      BackgroundNormal=${vars.colors.gray2}
      DecorationFocus=${vars.colors.hotPink}
      DecorationHover=${vars.colors.cyan}
      ForegroundActive=${vars.colors.cyan}
      ForegroundInactive=${vars.colors.gray4}
      ForegroundLink=${vars.colors.purple}
      ForegroundNegative=${vars.colors.error}
      ForegroundNeutral=${vars.colors.warning}
      ForegroundNormal=${vars.colors.foreground}
      ForegroundPositive=${vars.colors.success}
      ForegroundVisited=${vars.colors.magenta}

      [Colors:View]
      BackgroundAlternate=${vars.colors.backgroundAlt}
      BackgroundNormal=${vars.colors.background}
      DecorationFocus=${vars.colors.hotPink}
      DecorationHover=${vars.colors.cyan}
      ForegroundActive=${vars.colors.cyan}
      ForegroundInactive=${vars.colors.gray4}
      ForegroundLink=${vars.colors.purple}
      ForegroundNegative=${vars.colors.error}
      ForegroundNeutral=${vars.colors.warning}
      ForegroundNormal=${vars.colors.foreground}
      ForegroundPositive=${vars.colors.success}
      ForegroundVisited=${vars.colors.magenta}

      [Colors:Window]
      BackgroundAlternate=${vars.colors.backgroundAlt}
      BackgroundNormal=${vars.colors.background}
      DecorationFocus=${vars.colors.hotPink}
      DecorationHover=${vars.colors.cyan}
      ForegroundActive=${vars.colors.cyan}
      ForegroundInactive=${vars.colors.gray4}
      ForegroundLink=${vars.colors.purple}
      ForegroundNegative=${vars.colors.error}
      ForegroundNeutral=${vars.colors.warning}
      ForegroundNormal=${vars.colors.foreground}
      ForegroundPositive=${vars.colors.success}
      ForegroundVisited=${vars.colors.magenta}

      [General]
      ColorScheme=CassetteFuturism
      Name=Cassette Futurism
      shadeSortColumn=true

      [KDE]
      contrast=4
      LookAndFeelPackage=org.kde.breezedark.desktop
      widgetStyle=Breeze

      [Icons]
      Theme=breeze-dark

      [Toolbar style]
      ToolButtonStyle=NoText
      ToolButtonStyleOtherToolbars=NoText

      [KDE-Global GUI Settings]
      GraphicEffectsLevel=5

      [PreviewSettings]
      MaximumRemoteSize=0

      [KDE Action Restrictions]
      action/kwin_rmb=false

      [Appmenu Style]
      Style=InApplication

      [MainToolbarIcons]
      Size=22

      [WM]
      activeBackground=${vars.colors.background}
      activeBlend=${vars.colors.foreground}
      activeForeground=${vars.colors.foreground}
      inactiveBackground=${vars.colors.backgroundAlt}
      inactiveBlend=${vars.colors.gray3}
      inactiveForeground=${vars.colors.gray4}
    '';

    # KWin configuration - effects, compositing, and i3-style shortcuts
    "kwinrc".text = ''
      [Compositing]
      OpenGLIsUnsafe=false
      Backend=OpenGL

      [Effect-Blur]
      BlurStrength=8

      [Effect-translucency]
      Inactive=90
      MoveResize=80

      [Plugins]
      blurEnabled=true
      contrastEnabled=true
      kwin4_effect_translucencyEnabled=true
      slideEnabled=true
      zoomEnabled=false

      [ModifierOnlyShortcuts]
      Meta=

      [Windows]
      # Hide application titlebars when maximized (clean look like i3)
      BorderlessMaximizedWindows=true

      [org.kde.kdecoration2]
      # Minimal window decorations
      BorderSize=None
      ButtonsOnLeft=
      ButtonsOnRight=X
    '';

    # Konsole color scheme
    "konsole/CassetteFuturism.colorscheme".text = ''
      [Background]
      Color=${vars.colors.background}

      [BackgroundIntense]
      Color=${vars.colors.backgroundAlt}

      [Foreground]
      Color=${vars.colors.foreground}

      [ForegroundIntense]
      Color=${vars.colors.cyan}

      [Color0]
      Color=${vars.colors.gray0}

      [Color0Intense]
      Color=${vars.colors.gray3}

      [Color1]
      Color=${vars.colors.error}

      [Color1Intense]
      Color=${vars.colors.hotPink}

      [Color2]
      Color=${vars.colors.success}

      [Color2Intense]
      Color=${vars.colors.foreground}

      [Color3]
      Color=${vars.colors.warning}

      [Color3Intense]
      Color=${vars.colors.yellow}

      [Color4]
      Color=${vars.colors.purple}

      [Color4Intense]
      Color=${vars.colors.magenta}

      [Color5]
      Color=${vars.colors.magenta}

      [Color5Intense]
      Color=${vars.colors.hotPink}

      [Color6]
      Color=${vars.colors.cyan}

      [Color6Intense]
      Color=${vars.colors.info}

      [Color7]
      Color=${vars.colors.gray5}

      [Color7Intense]
      Color=#FFFFFF

      [General]
      Description=Cassette Futurism
      Opacity=0.95
      Wallpaper=
    '';

    # Konsole profile
    "konsole/CassetteFuturism.profile".text = ''
      [Appearance]
      ColorScheme=CassetteFuturism
      Font=JetBrainsMono Nerd Font,11,-1,5,50,0,0,0,0,0

      [General]
      Name=Cassette Futurism
      Parent=FALLBACK/

      [MenuBar]
      MenuBarVisibility=false
    '';

    # Dolphin (file manager) - hide menubar by default
    "dolphinrc".text = ''
      [MainWindow]
      MenuBar=Disabled
      ToolBarsMovable=Disabled

      [General]
      ShowFullPath=true
    '';

    # Kate (text editor) - hide menubar
    "katerc".text = ''
      [MainWindow]
      MenuBar=Disabled
    '';
  };

  # Set default Konsole profile
  home.file.".local/share/konsole/CassetteFuturism.profile".text = ''
    [Appearance]
    ColorScheme=CassetteFuturism
    Font=JetBrainsMono Nerd Font,11,-1,5,50,0,0,0,0,0

    [General]
    Name=Cassette Futurism
    Parent=FALLBACK/
  '';
}