Compare commits
No commits in common. "a4431f4ff333e26898fe5a0a7784fda6d10b82c5" and "15f9d42b1c8313361ea6f7ee0037907820ea0f08" have entirely different histories.
a4431f4ff3
...
15f9d42b1c
2
.config/ags/.gitignore
vendored
2
.config/ags/.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
node_modules/
|
|
||||||
@girs/
|
|
@ -1,10 +0,0 @@
|
|||||||
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)
|
|
||||||
},
|
|
||||||
})
|
|
21
.config/ags/env.d.ts
vendored
21
.config/ags/env.d.ts
vendored
@ -1,21 +0,0 @@
|
|||||||
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
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "astal-shell",
|
|
||||||
"dependencies": {
|
|
||||||
"astal": "/usr/share/astal/gjs"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,20 +0,0 @@
|
|||||||
// 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;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"$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",
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,36 +0,0 @@
|
|||||||
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 <window
|
|
||||||
visible
|
|
||||||
cssClasses={["Bar"]}
|
|
||||||
gdkmonitor={gdkmonitor}
|
|
||||||
exclusivity={Astal.Exclusivity.EXCLUSIVE}
|
|
||||||
anchor={TOP | LEFT | RIGHT}
|
|
||||||
application={App}>
|
|
||||||
<centerbox cssName="centerbox">
|
|
||||||
<button
|
|
||||||
onClicked="echo hello"
|
|
||||||
hexpand
|
|
||||||
halign={Gtk.Align.CENTER}
|
|
||||||
>
|
|
||||||
Welcome to AGS!
|
|
||||||
</button>
|
|
||||||
<box />
|
|
||||||
<menubutton
|
|
||||||
hexpand
|
|
||||||
halign={Gtk.Align.CENTER}
|
|
||||||
>
|
|
||||||
<label label={time()} />
|
|
||||||
<popover>
|
|
||||||
<Gtk.Calendar />
|
|
||||||
</popover>
|
|
||||||
</menubutton>
|
|
||||||
</centerbox>
|
|
||||||
</window>
|
|
||||||
}
|
|
@ -1,3 +1,3 @@
|
|||||||
# Set Darkmode
|
# Set Darkmode
|
||||||
exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # for GTK4 apps
|
exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # for GTK4 apps
|
||||||
exec = swayosd-server
|
|
||||||
|
@ -12,7 +12,7 @@ binde = SUPERCTRL, down, resizeactive, 0 20
|
|||||||
bind = $mainMod, RETURN, exec, alacritty
|
bind = $mainMod, RETURN, exec, alacritty
|
||||||
bind = $mainMod, Q, killactive,
|
bind = $mainMod, Q, killactive,
|
||||||
bind = $mainMod SHIFT, X, exit,
|
bind = $mainMod SHIFT, X, exit,
|
||||||
bind = $mainMod, D, exec, wofi --show drun -G
|
bind = $mainMod, D, exec, wofi --show drun
|
||||||
bind = $mainMod, E, exec, dolphin
|
bind = $mainMod, E, exec, dolphin
|
||||||
#bind = $mainMod, P, exec, grim -g "$(slurp)" - | wl-copy
|
#bind = $mainMod, P, exec, grim -g "$(slurp)" - | wl-copy
|
||||||
|
|
||||||
@ -72,9 +72,9 @@ bindm = $mainMod, mouse:273, resizewindow
|
|||||||
# Special keys
|
# Special keys
|
||||||
#bind = , Caps_lock, exec, swayosd-client --caps-lock
|
#bind = , Caps_lock, exec, swayosd-client --caps-lock
|
||||||
|
|
||||||
binde = , XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise
|
#binde = , XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise
|
||||||
binde = , XF86AudioLowerVolume, exec, swayosd-client --output-volume lower
|
#binde = , XF86AudioLowerVolume, exec, swayosd-client --output-volume lower
|
||||||
bind = , XF86AudioMute, exec, swayosd-client --output-volume mute-toggle
|
#bind = , XF86AudioMute, exec, swayosd-client --output-volume mute-toggle
|
||||||
#bind = , XF86AudioPlayPause, exec, playerctl play-pause
|
#bind = , XF86AudioPlayPause, exec, playerctl play-pause
|
||||||
|
|
||||||
#binde = , XF86MonBrightnessUp, exec, swayosd-client --brightness raise
|
#binde = , XF86MonBrightnessUp, exec, swayosd-client --brightness raise
|
||||||
|
@ -21,6 +21,7 @@ master {
|
|||||||
new_on_active = none
|
new_on_active = none
|
||||||
orientation = left
|
orientation = left
|
||||||
inherit_fullscreen = true
|
inherit_fullscreen = true
|
||||||
|
always_center_master = false
|
||||||
smart_resizing = true
|
smart_resizing = true
|
||||||
drop_at_cursor = true
|
drop_at_cursor = true
|
||||||
}
|
}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
Subproject commit 5d9b32341c9a47f62715fc6668b71d46b9047e93
|
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,6 +1,3 @@
|
|||||||
[submodule ".tmux/plugins/tpm"]
|
[submodule ".tmux/plugins/tpm"]
|
||||||
path = .tmux/plugins/tpm
|
path = .tmux/plugins/tpm
|
||||||
url = https://github.com/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
|
|
||||||
|
71
.zshrc
Normal file
71
.zshrc
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
|
||||||
|
|
||||||
|
# Set the directory we want to store zinit and plugins
|
||||||
|
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/shere}/zinit/zinit.git"
|
||||||
|
|
||||||
|
# Download Zinit, if it's not there yet
|
||||||
|
if [ ! -d "$ZINIT_HOME" ]; then
|
||||||
|
mkdir -p "$(dirname $ZINIT_HOME)"
|
||||||
|
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Source/Load zinit
|
||||||
|
source "${ZINIT_HOME}/zinit.zsh"
|
||||||
|
|
||||||
|
# Add in zsh plugins
|
||||||
|
zinit light zsh-users/zsh-syntax-highlighting
|
||||||
|
zinit light zsh-users/zsh-completions
|
||||||
|
zinit light zsh-users/zsh-autosuggestions
|
||||||
|
zinit light Aloxaf/fzf-tab
|
||||||
|
|
||||||
|
# Add in snippets
|
||||||
|
zinit snippet OMZP::git
|
||||||
|
zinit snippet OMZP::sudo
|
||||||
|
zinit snippet OMZP::archlinux
|
||||||
|
zinit snippet OMZP::command-not-found
|
||||||
|
|
||||||
|
# Load completions
|
||||||
|
autoload -U compinit && compinit
|
||||||
|
|
||||||
|
zinit cdreplay -q
|
||||||
|
|
||||||
|
eval "$(oh-my-posh init zsh --config $HOME/.config/ohmyposh/zen.toml)"
|
||||||
|
|
||||||
|
# Keybinds
|
||||||
|
bindkey '^p' history-search-backward
|
||||||
|
bindkey '^n' history-search-forward
|
||||||
|
|
||||||
|
# History
|
||||||
|
HISTSIZE=5000
|
||||||
|
HISTFILE=~/.zsh_history
|
||||||
|
SAVEHIST=$HISTSIZE
|
||||||
|
HISTDUP=erase
|
||||||
|
setopt appendhistory
|
||||||
|
setopt sharehistory
|
||||||
|
setopt hist_ignore_space
|
||||||
|
setopt hist_ignore_all_dups
|
||||||
|
setopt hist_save_no_dups
|
||||||
|
setopt hist_ignore_dups
|
||||||
|
setopt hist_find_no_dups
|
||||||
|
|
||||||
|
# Completion styling
|
||||||
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||||
|
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||||
|
zstyle ':completion:*' menu no
|
||||||
|
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
|
||||||
|
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
|
||||||
|
|
||||||
|
# Aliases
|
||||||
|
alias ls='ls --color'
|
||||||
|
alias vi='nvim'
|
||||||
|
alias vim='nvim'
|
||||||
|
alias nvim='nvim'
|
||||||
|
alias c='clear'
|
||||||
|
|
||||||
|
# Shell integrations
|
||||||
|
eval "$(fzf --zsh)"
|
||||||
|
eval "$(zoxide init --cmd cd zsh)"
|
||||||
|
|
||||||
|
source /usr/share/nvm/init-nvm.sh
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user