diff --git a/.config/ags/.gitignore b/.config/ags/.gitignore new file mode 100644 index 0000000..298eb4d --- /dev/null +++ b/.config/ags/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +@girs/ diff --git a/.config/ags/app.ts b/.config/ags/app.ts new file mode 100644 index 0000000..7e8cc7c --- /dev/null +++ b/.config/ags/app.ts @@ -0,0 +1,10 @@ +import { App } from "astal/gtk4" +import style from "./style.scss" +import Bar from "./widget/Bar" + +App.start({ + css: style, + main() { + App.get_monitors().map(Bar) + }, +}) diff --git a/.config/ags/env.d.ts b/.config/ags/env.d.ts new file mode 100644 index 0000000..467c0a4 --- /dev/null +++ b/.config/ags/env.d.ts @@ -0,0 +1,21 @@ +declare const SRC: string + +declare module "inline:*" { + const content: string + export default content +} + +declare module "*.scss" { + const content: string + export default content +} + +declare module "*.blp" { + const content: string + export default content +} + +declare module "*.css" { + const content: string + export default content +} diff --git a/.config/ags/package.json b/.config/ags/package.json new file mode 100644 index 0000000..44226f2 --- /dev/null +++ b/.config/ags/package.json @@ -0,0 +1,6 @@ +{ + "name": "astal-shell", + "dependencies": { + "astal": "/usr/share/astal/gjs" + } +} diff --git a/.config/ags/style.scss b/.config/ags/style.scss new file mode 100644 index 0000000..1d0d3a9 --- /dev/null +++ b/.config/ags/style.scss @@ -0,0 +1,20 @@ +// https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/theme/Adwaita/_colors-public.scss +$fg-color: #{"@theme_fg_color"}; +$bg-color: #{"@theme_bg_color"}; + +window.Bar { + background: transparent; + color: $fg-color; + font-weight: bold; + + >centerbox { + background: $bg-color; + border-radius: 10px; + margin: 8px; + } + + button { + border-radius: 8px; + margin: 2px; + } +} diff --git a/.config/ags/tsconfig.json b/.config/ags/tsconfig.json new file mode 100644 index 0000000..a92bc43 --- /dev/null +++ b/.config/ags/tsconfig.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "compilerOptions": { + "experimentalDecorators": true, + "strict": true, + "target": "ES2022", + "module": "ES2022", + "moduleResolution": "Bundler", + // "checkJs": true, + // "allowJs": true, + "jsx": "react-jsx", + "jsxImportSource": "astal/gtk4", + } +} diff --git a/.config/ags/widget/Bar.tsx b/.config/ags/widget/Bar.tsx new file mode 100644 index 0000000..c2db8c5 --- /dev/null +++ b/.config/ags/widget/Bar.tsx @@ -0,0 +1,36 @@ +import { App, Astal, Gtk, Gdk } from "astal/gtk4" +import { Variable } from "astal" + +const time = Variable("").poll(1000, "date") + +export default function Bar(gdkmonitor: Gdk.Monitor) { + const { TOP, LEFT, RIGHT } = Astal.WindowAnchor + + return + + + + + + + +} diff --git a/.config/hypr/hyprland/autostart.conf b/.config/hypr/hyprland/autostart.conf index 09a2b09..e817b14 100644 --- a/.config/hypr/hyprland/autostart.conf +++ b/.config/hypr/hyprland/autostart.conf @@ -1,3 +1,3 @@ # Set Darkmode exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # for GTK4 apps - +exec = swayosd-server diff --git a/.config/hypr/hyprland/binds.conf b/.config/hypr/hyprland/binds.conf index 1217bdf..f98b378 100644 --- a/.config/hypr/hyprland/binds.conf +++ b/.config/hypr/hyprland/binds.conf @@ -12,7 +12,7 @@ binde = SUPERCTRL, down, resizeactive, 0 20 bind = $mainMod, RETURN, exec, alacritty bind = $mainMod, Q, killactive, bind = $mainMod SHIFT, X, exit, -bind = $mainMod, D, exec, wofi --show drun +bind = $mainMod, D, exec, wofi --show drun -G bind = $mainMod, E, exec, dolphin #bind = $mainMod, P, exec, grim -g "$(slurp)" - | wl-copy @@ -72,9 +72,9 @@ bindm = $mainMod, mouse:273, resizewindow # Special keys #bind = , Caps_lock, exec, swayosd-client --caps-lock -#binde = , XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise -#binde = , XF86AudioLowerVolume, exec, swayosd-client --output-volume lower -#bind = , XF86AudioMute, exec, swayosd-client --output-volume mute-toggle +binde = , XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise +binde = , XF86AudioLowerVolume, exec, swayosd-client --output-volume lower +bind = , XF86AudioMute, exec, swayosd-client --output-volume mute-toggle #bind = , XF86AudioPlayPause, exec, playerctl play-pause #binde = , XF86MonBrightnessUp, exec, swayosd-client --brightness raise diff --git a/.config/hypr/hyprland/layout.conf b/.config/hypr/hyprland/layout.conf index 13458e1..9a9d04d 100644 --- a/.config/hypr/hyprland/layout.conf +++ b/.config/hypr/hyprland/layout.conf @@ -21,7 +21,6 @@ master { new_on_active = none orientation = left inherit_fullscreen = true - always_center_master = false smart_resizing = true drop_at_cursor = true } diff --git a/.config/tmux/plugins/oxocarbon-tmux b/.config/tmux/plugins/oxocarbon-tmux new file mode 160000 index 0000000..5d9b323 --- /dev/null +++ b/.config/tmux/plugins/oxocarbon-tmux @@ -0,0 +1 @@ +Subproject commit 5d9b32341c9a47f62715fc6668b71d46b9047e93 diff --git a/.gitmodules b/.gitmodules index d6ccc24..fda1db1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule ".tmux/plugins/tpm"] path = .tmux/plugins/tpm url = https://github.com/tmux-plugins/tpm +[submodule ".config/tmux/plugins/oxocarbon-tmux"] + path = .config/tmux/plugins/oxocarbon-tmux + url = https://github.com/NicolaiVdS/oxocarbon-tmux diff --git a/.zshrc b/.zshrc index 28c0a6b..498390a 100644 --- a/.zshrc +++ b/.zshrc @@ -65,3 +65,11 @@ eval "$(fzf --zsh)" eval "$(zoxide init --cmd cd zsh)" source /usr/share/nvm/init-nvm.sh + +# pnpm +export PNPM_HOME="/home/nicolaivds/.local/share/pnpm" +case ":$PATH:" in + *":$PNPM_HOME:"*) ;; + *) export PATH="$PNPM_HOME:$PATH" ;; +esac +# pnpm end