Commit 1a31c36

Ansari <ping@ansari.wtf>
2026-01-11 15:53:54
Add desktop entries for Chromium and Claude AI, and create a script for Chromium PWA
1 parent d1daa60
Changed files (9)
.assets/icons/claude.png
Binary file
.config/hypr/modules/autostarts.conf
@@ -1,6 +1,6 @@
 exec-once = waybar &
 exec-once = swaync &
-exec-once = hyprctl dispatch workspace "Research"
+exec-once = hyprctl dispatch workspace "Terminal"
 exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
 exec-once = wl-paste --type text --watch cliphist store
 exec-once = wl-paste --type image --watch cliphist store 
.config/hypr/modules/keybinds.conf
@@ -6,15 +6,12 @@ bind = $mainMod, f, togglefloating
 bind = $mainMod CTRL, f , fullscreen
 bind = $mainMod, P, pseudo, # dwindle
 bind = $mainMod, J, togglesplit # dwindle
-bind = ALT, TAB, cyclenext,floating
+bind = ALT, TAB, cyclenext,visible
 bind = ALT, TAB, bringactivetotop
 bind = $mainMod CTRL,     w,swapwindow, u
 bind = $mainMod CTRL,     a,swapwindow, l
 bind = $mainMod CTRL,     s,swapwindow, d
 bind = $mainMod CTRL,     d,  swapwindow, r  
-bind = $mainMod,    TAB, hyprexpo:expo, toggle
-
-bind = $mainMod SHIFT, TAB, movetoworkspace, special:temp
 
 #CUSTOM SCRIPTS and Commands
 bind = $mainMod,    SPACE,  exec, $menu
@@ -65,6 +62,18 @@ bind = , mouse:275, exec, \
 ws=$(hyprctl activeworkspace -j | jq '.id'); \
 [ "$ws" -gt 1 ] && hyprctl dispatch workspace $((ws - 1))
 
+# cycle through active workspaces
+bind = $mainMod, TAB, exec, \
+ws=$(hyprctl activeworkspace -j | jq '.id'); \
+max=$(hyprctl workspaces -j | jq '[.[] | select(.id > 0) | .id] | max'); \
+if [ "$ws" -lt "$max" ]; then \
+    hyprctl dispatch workspace $((ws + 1)); \
+else \
+    hyprctl dispatch workspace 1; \
+fi
+
+bind = $mainMod SHIFT, TAB, exec, ws=$(hyprctl activeworkspace -j | jq '.id'); [ $ws -gt 1 ] && hyprctl dispatch workspace $((ws-1))
+
 # Move to Next (1, 2, 3 are persistent; 4+ only if they exist)
 bind = , mouse:276, exec, \
 ws=$(hyprctl activeworkspace -j | jq '.id'); \
.config/hypr/modules/windows.conf
@@ -2,8 +2,8 @@ monitor=DP-1,1920x1080@144,auto,1
 
 workspace = 1, defaultName:AI,monitor:DP-1,persistent:true
 workspace = 2, defaultName:Code,monitor:DP-1,persistent:true
-workspace = 3, defaultName:Research,monitor:DP-1,persistent:true
-workspace = 4, defaultName:Misc,monitor:DP-1,persistent:true
+workspace = 3, defaultName:Terminal,monitor:DP-1,persistent:true
+workspace = 4, defaultName:Research,monitor:DP-1,persistent:true
 workspace = 5, defaultName:Forge,monitor:DP-1,persistent:true
 # Floating windows
 windowrule = float true,center true,size 875 600,match:tag floating-window
@@ -18,7 +18,7 @@ windowrule = rounding 8, match:tag pop
 # Apps Rules
 windowrule = workspace Research, match:class ^(zen)$
 windowrule = workspace Code, match:class ^(code|code-oss|Code-Insiders)$
-windowrule = workspace AI, match:class ^(chrome-gemini.google.com.*)$
+windowrule = workspace AI, match:class ^(chrome-gemini.google.com.*|chrome-claude.ai.*|chrome-chatgpt.com.*)$
 windowrule = workspace Forge, match:class ^(BambuStudio|blender|FreeCAD)$
 
 windowrule = float true,center true,size 1000 550,rounding 12,tag -floating-window,match:class org.wraith.about
.config/waybar/config.jsonc
@@ -3,7 +3,7 @@
   "position": "top",
   "height": 32,
   "spacing": 0,
-  "modules-left": ["custom/about", "clock", "custom/packages"],
+  "modules-left": ["custom/about","clock#date" ,"clock#time", "custom/packages"],
   "modules-center": ["hyprland/workspaces#main"],
   "modules-right": [
     "hyprland/workspaces#special",
@@ -26,9 +26,9 @@
     "format": "{icon}",
     "format-icons": {
       "AI": "󱚝",
-      "Code": "",
+      "Code": "",
       "Research": "",
-      "Misc": "",
+      "Terminal": "",
       "Forge": "󰐫"
     }
   },
@@ -44,23 +44,16 @@
     },
     "ignore-workspaces": ["^(?!.*(youtube|music)).*$"]
   },
+	"clock#date":{
+		"format": "{:%d-%m-%y}",
+		"interval":3600,
+		"tooltip":false
+	},
 
-  "clock": {
+  "clock#time": {
+    "format": "{:%I:%M %p}",
     "interval": 1,
     "timezone": "Asia/Kolkata",
-    "format": "󰥔  {:%I:%M %p}",
-    "tooltip-format": "<tt>{calendar}</tt>",
-    "calendar": {
-      "weeks-pos": "",
-      "on-scroll": 1,
-      "mode-mon-col": 3,
-      "format": {
-        "months": "<span size='large' color='#b4befe'><b>{}</b></span>",
-        "weekdays": "<span size='large' color='#f9e2af'><b>{}</b></span>",
-        "days": "<span size='large' color='#cdd6f4'><b>{}</b></span>",
-        "today": "<span size='large' color='#f38ba8'><b><u>{}</u></b></span>"
-      }
-    }
   },
   "custom/packages": {
     "exec": "$HOME/.wraith/scripts/packages.sh details",
.local/share/applications/chromium.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Version=1.0
+Name=Chromium
+Type=Application
+Hidden=true
\ No newline at end of file
.local/share/applications/claude.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Name=Claude AI
+Exec=smart-launch --web "chrome-claude.ai" "https://claude.ai"
+Terminal=false
+Type=Application
+Icon=/home/robin/.assets/icons/claude.png
+StartupNotify=true
+
.wraith/bin/chromium-pwa
@@ -0,0 +1,9 @@
+#!/bin/bash
+exec chromium \
+  --user-data-dir="$HOME/.config/chromium-pwa" \
+  --disable-extensions \
+  --disable-sync \
+  --disable-features=Translate,MediaRouter,GlobalMediaControls \
+  --no-default-browser-check \
+  --no-first-run \
+  "$@"
\ No newline at end of file
.wraith/bin/smart-launch
@@ -79,7 +79,8 @@ case $MODE in
         URL="$1"
         shift
         EXTRA_ARGS="$@"
-        BROWSER=$(get_browser)
+        # BROWSER=$(get_browser)
+        BROWSER="chromium-pwa"
         LAUNCH_CMD="uwsm-app -- $BROWSER --app=$URL $EXTRA_ARGS"
         ;;