Compare commits
No commits in common. "main" and "v2" have entirely different histories.
34
README.md
34
README.md
@ -1,36 +1,4 @@
|
|||||||
<div id="title" align="center">
|
# janishutz Hyprland
|
||||||
<img src="https://static.janishutz.com/logo.jpg" width="300">
|
|
||||||
<h1>janishutz Hyprland</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
Collection of dotfiles for my personal Hyprland setup, running on Arch Linux. Includes a setup and install script (that one is not complete yet though). For my neovim config, see [here](https://git.janishutz.com/janishutz/nvim)
|
|
||||||
|
|
||||||
## Features
|
|
||||||
- Astal4 based Status Bar and Quick Actions menu
|
|
||||||
- System info
|
|
||||||
- Hyprland info
|
|
||||||
- Date & Time
|
|
||||||
- Bluetooth picker
|
|
||||||
- some networking settings (more coming later)
|
|
||||||
- Audio and brightness control
|
|
||||||
- battery monitoring
|
|
||||||
- Logout, Reboot, Shutdown, etc
|
|
||||||
- Rofi config for App launcher
|
|
||||||
- Wlogout config
|
|
||||||
- Theming script that generates a GTK theme and theming for bar, Hyprland, etc
|
|
||||||
- Fish config (with some handy aliases, based on one from ohh-my-fish)
|
|
||||||
- Fastfetch config
|
|
||||||
- kitty config with cursor trail
|
|
||||||
- Linter configs (currently only eslint, which is not complete yet)
|
|
||||||
- mpv config
|
|
||||||
- zathura configs
|
|
||||||
- yazi configs with links to various directories I use commonly plus a few plugins and themes that are applied by the script
|
|
||||||
- Astal3 based Notifications (due to be migrated to Astal4)
|
|
||||||
|
|
||||||
## Installing
|
|
||||||
Clone your repo to any folder and adapt what you need. Some folders are still hard-coded, which I will be changing later on, so you will likely run into issues.
|
|
||||||
|
|
||||||
You may then run the `setup` script. That won't install all dependencies though. The `install` script is what serves that purpose, but that is not complete yet
|
|
||||||
|
|
||||||
|
|
||||||
## Setting up to develop
|
## Setting up to develop
|
||||||
|
@ -30,7 +30,7 @@ const build = ( wallpaper, lockpaper, theme ) => {
|
|||||||
name: 'confirm-proceed-build',
|
name: 'confirm-proceed-build',
|
||||||
message: 'Okay to proceed with these colours?'
|
message: 'Okay to proceed with these colours?'
|
||||||
} ] ).then( answer => {
|
} ] ).then( answer => {
|
||||||
if ( answer['confirm-proceed-build'] ) proceedWithBuild( wallpaper, lockpaper, theme, palette );
|
if ( answer ) proceedWithBuild( wallpaper, lockpaper, theme, palette );
|
||||||
else {
|
else {
|
||||||
// Have the user pick any other of the extracted colours instead
|
// Have the user pick any other of the extracted colours instead
|
||||||
let counter = -1;
|
let counter = -1;
|
||||||
|
@ -29,13 +29,11 @@ export const BatteryBox = () => {
|
|||||||
cssClasses={["battery-time"]}
|
cssClasses={["battery-time"]}
|
||||||
visible={bind(battery, "charging").as(c => !c)}
|
visible={bind(battery, "charging").as(c => !c)}
|
||||||
label={bind(battery, "timeToEmpty").as(t => `(${toTime(t)})`)}
|
label={bind(battery, "timeToEmpty").as(t => `(${toTime(t)})`)}
|
||||||
tooltipText={bind(battery, 'energyRate').as(er => `Time to empty. Power usage: ${batteryEnergy(er)}`)}
|
|
||||||
/>
|
/>
|
||||||
<label
|
<label
|
||||||
cssClasses={["battery-time"]}
|
cssClasses={["battery-time"]}
|
||||||
visible={bind(battery, "charging")}
|
visible={bind(battery, "charging")}
|
||||||
label={bind(battery, "timeToFull").as(t => `(${toTime(t)})`)}
|
label={bind(battery, "timeToFull").as(t => `(${toTime(t)})`)}
|
||||||
tooltipText={bind(battery, 'energyRate').as(er => `Time to full. Charge rate: ${batteryEnergy(er)}`)}
|
|
||||||
/>
|
/>
|
||||||
</box>
|
</box>
|
||||||
);
|
);
|
||||||
@ -45,7 +43,7 @@ const toTime = (time: number) => {
|
|||||||
const MINUTE = 60;
|
const MINUTE = 60;
|
||||||
const HOUR = MINUTE * 60;
|
const HOUR = MINUTE * 60;
|
||||||
|
|
||||||
if (time > 24 * HOUR) return "24h+";
|
if (time > 24 * HOUR) return "";
|
||||||
|
|
||||||
const hours = Math.round(time / HOUR);
|
const hours = Math.round(time / HOUR);
|
||||||
const minutes = Math.round((time - hours * HOUR) / MINUTE);
|
const minutes = Math.round((time - hours * HOUR) / MINUTE);
|
||||||
|
@ -135,9 +135,8 @@ const PlayerItem = ({ player }: { player: AstalMpris.Player }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const secondsToFriendlyTime = (time: number) => {
|
const secondsToFriendlyTime = (time: number) => {
|
||||||
const m = Math.floor(time / 60);
|
const minutes = Math.floor(time / 60);
|
||||||
const minutes = Math.floor(m % 60);
|
const hours = Math.floor(minutes / 60);
|
||||||
const hours = Math.floor(m / 60 % 24);
|
|
||||||
const seconds = Math.floor(time % 60);
|
const seconds = Math.floor(time % 60);
|
||||||
if (hours > 0) {
|
if (hours > 0) {
|
||||||
return `${hours}:${expandTime(minutes)}:${expandTime(seconds)}`;
|
return `${hours}:${expandTime(minutes)}:${expandTime(seconds)}`;
|
||||||
|
@ -2,7 +2,6 @@ import AstalTray from "gi://AstalTray";
|
|||||||
import { bind, GObject } from "astal";
|
import { bind, GObject } from "astal";
|
||||||
import AstalHyprland from "gi://AstalHyprland";
|
import AstalHyprland from "gi://AstalHyprland";
|
||||||
import { Gtk } from "astal/gtk4";
|
import { Gtk } from "astal/gtk4";
|
||||||
import Pango from "gi://Pango?version=1.0";
|
|
||||||
|
|
||||||
const hypr = AstalHyprland.get_default();
|
const hypr = AstalHyprland.get_default();
|
||||||
const SYNC = GObject.BindingFlags.SYNC_CREATE;
|
const SYNC = GObject.BindingFlags.SYNC_CREATE;
|
||||||
@ -106,10 +105,7 @@ const ActiveWindow = () => {
|
|||||||
focused.as(
|
focused.as(
|
||||||
client =>
|
client =>
|
||||||
client && (
|
client && (
|
||||||
<label
|
<label label={bind(client, "title").as(String)} />
|
||||||
maxWidthChars={40}
|
|
||||||
ellipsize={Pango.EllipsizeMode.END}
|
|
||||||
label={bind(client, "title").as(String)} />
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
}></button>
|
}></button>
|
||||||
|
@ -125,9 +125,9 @@ const BatteryWidget = () => {
|
|||||||
if (battery.get_is_present()) {
|
if (battery.get_is_present()) {
|
||||||
return (
|
return (
|
||||||
<image
|
<image
|
||||||
iconName={bind(battery, "batteryIconName").as(icon => icon)}
|
iconName={bind(battery, "iconName").as(icon => icon)}
|
||||||
cssClasses={["quick-view-symbol"]}
|
cssClasses={["quick-view-symbol"]}
|
||||||
tooltipText={bind(battery, 'percentage').as(p => `Battery Level: ${Math.round(p * 100)}%`)}
|
tooltipText={bind(battery, 'percentage').as(p => `${Math.round(p * 100)}%`)}
|
||||||
></image>
|
></image>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@ -3,9 +3,8 @@ alias ll='ls -la --color'
|
|||||||
alias v='nvim'
|
alias v='nvim'
|
||||||
alias c='clear'
|
alias c='clear'
|
||||||
alias zs='zathura-sandbox'
|
alias zs='zathura-sandbox'
|
||||||
alias z='zathura'
|
|
||||||
alias bt='bluetui'
|
alias bt='bluetui'
|
||||||
alias vicfg='nvim ~/projects/active/nvim/'
|
alias vicfg='cd ~/.config/nvim/ && nvim'
|
||||||
alias fm='thunar .'
|
alias fm='thunar .'
|
||||||
alias gl='git ls-files --others --exclude-standard'
|
alias gl='git ls-files --others --exclude-standard'
|
||||||
alias gm='gti ls-files -m'
|
alias gm='gti ls-files -m'
|
||||||
@ -16,7 +15,8 @@ alias ga='git add ./*'
|
|||||||
alias cfh='nvim ~/projects/active/dotfiles/config/hypr/'
|
alias cfh='nvim ~/projects/active/dotfiles/config/hypr/'
|
||||||
alias cfn='nvim ~/projects/active/nvim/'
|
alias cfn='nvim ~/projects/active/nvim/'
|
||||||
alias cff='nvim ~/projects/active/dotfiles/config/fish/'
|
alias cff='nvim ~/projects/active/dotfiles/config/fish/'
|
||||||
alias cfa='nvim ~/projects/active/dotfiles/config/astal/'
|
alias cfw='nvim ~/projects/archive/dotfiles-old/pc/configs/waybar/'
|
||||||
|
alias cfa='nvim ~/projects/active/dotfiles/config/ags/'
|
||||||
alias cf='nvim ~/projects/active/dotfiles/'
|
alias cf='nvim ~/projects/active/dotfiles/'
|
||||||
alias g='lazygit'
|
alias g='lazygit'
|
||||||
alias open-webui='sudo systemctl start docker && sudo docker start -i open-webui'
|
alias open-webui='sudo systemctl start docker && sudo docker start -i open-webui'
|
||||||
|
@ -13,10 +13,10 @@ exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|||||||
exec-once = hypridle
|
exec-once = hypridle
|
||||||
exec-once = nm-applet
|
exec-once = nm-applet
|
||||||
exec-once = nextcloud --background
|
exec-once = nextcloud --background
|
||||||
exec-once = sleep 2 && bash -c "ags run -d ~/projects/active/dotfiles/config/astal/ --gtk4 >> /tmp/runner-log 2>&1"
|
# exec-once = sleep 2 && bash -c "ags run -d ~/projects/active/dotfiles/config/astal/ --gtk4 >> ~/log 2>&1"
|
||||||
# exec-once = sleep 2 && bash -c "ags run -d ~/projects/active/dotfiles/config/astal/ --gtk4"
|
exec-once = sleep 2 && bash -c "ags run -d ~/projects/active/dotfiles/config/astal/ --gtk4"
|
||||||
exec-once = bash -c "ags run -d ~/projects/active/dotfiles/config/ags/notifications/ >> /tmp/notifier-log 2>&1"
|
# exec-once = bash -c "ags run -d ~/projects/active/dotfiles/config/ags/notifications/ >> ~/logn 2>&1"
|
||||||
# exec-once = bash -c "ags run -d ~/projects/active/dotfiles/config/ags/notifications/"
|
exec-once = bash -c "ags run -d ~/projects/active/dotfiles/config/ags/notifications/"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ general {
|
|||||||
# └ ┘
|
# └ ┘
|
||||||
background {
|
background {
|
||||||
monitor =
|
monitor =
|
||||||
path = /home/janis/NextCloud/Wallpapers/dark/mountains.jpg # Or screenshot
|
path = /home/janis/NextCloud/Wallpapers/dark/colour-splash.jpg # Or screenshot
|
||||||
|
|
||||||
blur_passes = 1
|
blur_passes = 1
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@ font_size 12.0
|
|||||||
# │ Cursor config │
|
# │ Cursor config │
|
||||||
# └ ┘
|
# └ ┘
|
||||||
cursor_trail 1
|
cursor_trail 1
|
||||||
cursor_trail_start_threshold 0
|
|
||||||
|
|
||||||
|
|
||||||
# ┌ ┐
|
# ┌ ┐
|
||||||
|
@ -1,65 +0,0 @@
|
|||||||
// @ts-check
|
|
||||||
|
|
||||||
import eslint from '@eslint/js';
|
|
||||||
import tseslint from 'typescript-eslint';
|
|
||||||
import stylistic from '@stylistic/eslint-plugin';
|
|
||||||
|
|
||||||
export default tseslint.config(
|
|
||||||
eslint.configs.recommended,
|
|
||||||
...tseslint.configs.recommended,
|
|
||||||
{
|
|
||||||
'plugins': {
|
|
||||||
'@stylistic/js': stylistic,
|
|
||||||
'@stylistic/ts': stylistic,
|
|
||||||
},
|
|
||||||
'rules': {
|
|
||||||
// Formatting
|
|
||||||
'@stylistic/js/array-bracket-newline': [ 'error', { 'multiline': true, 'minItems': 4 } ],
|
|
||||||
'@stylistic/js/array-bracket-spacing': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/array-element-newline': [ 'error', { 'multiline': true, 'minItems': 4 } ],
|
|
||||||
'@stylistic/js/arrow-parens': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/arrow-spacing': [ 'error', { 'before': true, 'after': true } ],
|
|
||||||
'@stylistic/js/block-spacing': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/brace-style': [ 'error', '1tbs' ],
|
|
||||||
'@stylistic/js/comma-spacing': [ 'error', { 'before': false, 'after': true } ],
|
|
||||||
'@stylistic/js/comma-style': [ 'error', 'last' ],
|
|
||||||
'@stylistic/js/dot-location': [ 'error', 'property' ],
|
|
||||||
'@stylistic/js/eol-last': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/function-call-spacing': [ 'error', 'never' ],
|
|
||||||
'@stylistic/js/implicit-arrow-linebreak': [ 'error', 'beside' ],
|
|
||||||
'@stylistic/js/indent': [ 'error', 4 ],
|
|
||||||
'@stylistic/js/key-spacing': [ 'error', { 'beforeColon': false, 'afterColon': true } ],
|
|
||||||
'@stylistic/js/keyword-spacing': [ 'error', { 'before': true, 'after': true } ],
|
|
||||||
'@stylistic/js/lines-between-class-members': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/new-parens': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/no-extra-parens': [ 'error', 'all' ],
|
|
||||||
'@stylistic/js/no-extra-semi': 'error',
|
|
||||||
'@stylistic/js/no-floating-decimal': 'error',
|
|
||||||
'@stylistic/js/no-mixed-operators': 'error',
|
|
||||||
'@stylistic/js/no-mixed-spaces-and-tabs': 'error',
|
|
||||||
'@stylistic/js/no-multi-spaces': 'error',
|
|
||||||
'@stylistic/js/no-trailing-spaces': 'error',
|
|
||||||
'@stylistic/js/no-whitespace-before-property': 'error',
|
|
||||||
'@stylistic/js/object-curly-newline': [ 'error', { 'multiline': true, 'minProperties': 3 } ],
|
|
||||||
'@stylistic/js/object-curly-spacing': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/one-var-declaration-per-line': 'error',
|
|
||||||
'@stylistic/js/quote-props': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/quotes': [ 'error', 'single' ],
|
|
||||||
'@stylistic/js/rest-spread-spacing': [ 'error', 'never' ],
|
|
||||||
'@stylistic/js/semi': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/semi-spacing': [ 'error', { 'before': false, 'after': true } ],
|
|
||||||
'@stylistic/js/semi-style': [ 'error', 'last' ],
|
|
||||||
'@stylistic/js/space-before-blocks': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/space-before-function-paren': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/space-in-parens': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/space-infix-ops': [ 'error', { 'int32Hint': false } ],
|
|
||||||
'@stylistic/js/space-unary-ops': 'error',
|
|
||||||
'@stylistic/js/spaced-comment': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/switch-colon-spacing': 'error',
|
|
||||||
'@stylistic/js/template-curly-spacing': [ 'error', 'always' ],
|
|
||||||
'@stylistic/js/wrap-iife': [ 'error', 'inside' ],
|
|
||||||
'@stylistic/js/wrap-regex': 'error',
|
|
||||||
'@stylistic/ts/type-annotation-spacing': 'error',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
@ -1,118 +1,65 @@
|
|||||||
import vue from 'eslint-plugin-vue';
|
// @ts-check
|
||||||
import eslint from '@eslint/js';
|
|
||||||
import typescript from '@typescript-eslint/eslint-plugin';
|
|
||||||
import stylistic from '@stylistic/eslint-plugin';
|
|
||||||
import tseslint from 'typescript-eslint';
|
|
||||||
|
|
||||||
const style = {
|
import eslint from '@eslint/js';
|
||||||
|
import tseslint from 'typescript-eslint';
|
||||||
|
import stylistic from '@stylistic/eslint-plugin';
|
||||||
|
|
||||||
|
export default tseslint.config(
|
||||||
|
eslint.configs.recommended,
|
||||||
|
...tseslint.configs.recommended,
|
||||||
|
{
|
||||||
'plugins': {
|
'plugins': {
|
||||||
'@stylistic': stylistic,
|
|
||||||
'@stylistic/js': stylistic,
|
'@stylistic/js': stylistic,
|
||||||
'@stylistic/ts': stylistic,
|
'@stylistic/ts': stylistic,
|
||||||
},
|
},
|
||||||
'rules': {
|
'rules': {
|
||||||
// Formatting
|
// Formatting
|
||||||
'@stylistic/array-bracket-newline': ['error', { 'multiline': true, 'minItems': 4 }],
|
'@stylistic/js/array-bracket-newline': [ 'error', { 'multiline': true, 'minItems': 4 } ],
|
||||||
'@stylistic/array-bracket-spacing': ['error', 'always'],
|
'@stylistic/js/array-bracket-spacing': [ 'error', 'always' ],
|
||||||
'@stylistic/array-element-newline': ['error', { 'multiline': true, 'minItems': 4 }],
|
'@stylistic/js/array-element-newline': [ 'error', { 'multiline': true, 'minItems': 4 } ],
|
||||||
'@stylistic/arrow-parens': ['error', 'as-needed'],
|
'@stylistic/js/arrow-parens': [ 'error', 'always' ],
|
||||||
'@stylistic/arrow-spacing': ['error', { 'before': true, 'after': true }],
|
'@stylistic/js/arrow-spacing': [ 'error', { 'before': true, 'after': true } ],
|
||||||
'@stylistic/block-spacing': ['error', 'always'],
|
'@stylistic/js/block-spacing': [ 'error', 'always' ],
|
||||||
'@stylistic/brace-style': ['error', '1tbs'],
|
'@stylistic/js/brace-style': [ 'error', '1tbs' ],
|
||||||
'@stylistic/comma-spacing': ['error', { 'before': false, 'after': true }],
|
'@stylistic/js/comma-spacing': [ 'error', { 'before': false, 'after': true } ],
|
||||||
'@stylistic/comma-style': ['error', 'last'],
|
'@stylistic/js/comma-style': [ 'error', 'last' ],
|
||||||
'@stylistic/dot-location': ['error', 'property'],
|
'@stylistic/js/dot-location': [ 'error', 'property' ],
|
||||||
'@stylistic/eol-last': ['error', 'always'],
|
'@stylistic/js/eol-last': [ 'error', 'always' ],
|
||||||
'@stylistic/function-call-spacing': ['error', 'never'],
|
'@stylistic/js/function-call-spacing': [ 'error', 'never' ],
|
||||||
'@stylistic/implicit-arrow-linebreak': ['error', 'beside'],
|
'@stylistic/js/implicit-arrow-linebreak': [ 'error', 'beside' ],
|
||||||
'@stylistic/indent': ['error', 4],
|
'@stylistic/js/indent': [ 'error', 4 ],
|
||||||
'@stylistic/key-spacing': ['error', { 'beforeColon': false, 'afterColon': true }],
|
'@stylistic/js/key-spacing': [ 'error', { 'beforeColon': false, 'afterColon': true } ],
|
||||||
'@stylistic/keyword-spacing': ['error', { 'before': true, 'after': true }],
|
'@stylistic/js/keyword-spacing': [ 'error', { 'before': true, 'after': true } ],
|
||||||
'@stylistic/lines-between-class-members': ['error', 'always'],
|
'@stylistic/js/lines-between-class-members': [ 'error', 'always' ],
|
||||||
'@stylistic/new-parens': ['error', 'always'],
|
'@stylistic/js/new-parens': [ 'error', 'always' ],
|
||||||
'@stylistic/no-extra-parens': ['error', 'all'],
|
'@stylistic/js/no-extra-parens': [ 'error', 'all' ],
|
||||||
'@stylistic/no-extra-semi': 'error',
|
'@stylistic/js/no-extra-semi': 'error',
|
||||||
'@stylistic/no-floating-decimal': 'error',
|
'@stylistic/js/no-floating-decimal': 'error',
|
||||||
'@stylistic/no-mixed-operators': 'error',
|
'@stylistic/js/no-mixed-operators': 'error',
|
||||||
'@stylistic/no-mixed-spaces-and-tabs': 'error',
|
'@stylistic/js/no-mixed-spaces-and-tabs': 'error',
|
||||||
'@stylistic/no-multi-spaces': 'error',
|
'@stylistic/js/no-multi-spaces': 'error',
|
||||||
'@stylistic/no-trailing-spaces': 'error',
|
'@stylistic/js/no-trailing-spaces': 'error',
|
||||||
'@stylistic/no-whitespace-before-property': 'error',
|
'@stylistic/js/no-whitespace-before-property': 'error',
|
||||||
'@stylistic/object-curly-newline': ['error', { 'multiline': true, 'minProperties': 3 }],
|
'@stylistic/js/object-curly-newline': [ 'error', { 'multiline': true, 'minProperties': 3 } ],
|
||||||
'@stylistic/object-curly-spacing': ['error', 'always'],
|
'@stylistic/js/object-curly-spacing': [ 'error', 'always' ],
|
||||||
'@stylistic/one-var-declaration-per-line': 'error',
|
'@stylistic/js/one-var-declaration-per-line': 'error',
|
||||||
'@stylistic/quote-props': ['error', 'always'],
|
'@stylistic/js/quote-props': [ 'error', 'always' ],
|
||||||
'@stylistic/quotes': ['error', 'single'],
|
'@stylistic/js/quotes': [ 'error', 'single' ],
|
||||||
'@stylistic/rest-spread-spacing': ['error', 'never'],
|
'@stylistic/js/rest-spread-spacing': [ 'error', 'never' ],
|
||||||
'@stylistic/semi': ['error', 'always'],
|
'@stylistic/js/semi': [ 'error', 'always' ],
|
||||||
'@stylistic/semi-spacing': ['error', { 'before': false, 'after': true }],
|
'@stylistic/js/semi-spacing': [ 'error', { 'before': false, 'after': true } ],
|
||||||
'@stylistic/semi-style': ['error', 'last'],
|
'@stylistic/js/semi-style': [ 'error', 'last' ],
|
||||||
'@stylistic/space-before-blocks': ['error', 'always'],
|
'@stylistic/js/space-before-blocks': [ 'error', 'always' ],
|
||||||
'@stylistic/space-before-function-paren': ['error', 'always'],
|
'@stylistic/js/space-before-function-paren': [ 'error', 'always' ],
|
||||||
'@stylistic/space-in-parens': ['error', 'always'],
|
'@stylistic/js/space-in-parens': [ 'error', 'always' ],
|
||||||
'@stylistic/space-infix-ops': ['error', { 'int32Hint': false }],
|
'@stylistic/js/space-infix-ops': [ 'error', { 'int32Hint': false } ],
|
||||||
'@stylistic/space-unary-ops': 'error',
|
'@stylistic/js/space-unary-ops': 'error',
|
||||||
'@stylistic/spaced-comment': ['error', 'always'],
|
'@stylistic/js/spaced-comment': [ 'error', 'always' ],
|
||||||
'@stylistic/switch-colon-spacing': 'error',
|
'@stylistic/js/switch-colon-spacing': 'error',
|
||||||
'@stylistic/template-curly-spacing': ['error', 'always'],
|
'@stylistic/js/template-curly-spacing': [ 'error', 'always' ],
|
||||||
'@stylistic/wrap-iife': ['error', 'inside'],
|
'@stylistic/js/wrap-iife': [ 'error', 'inside' ],
|
||||||
'@stylistic/wrap-regex': 'error',
|
'@stylistic/js/wrap-regex': 'error',
|
||||||
'@stylistic/ts/type-annotation-spacing': 'error',
|
'@stylistic/ts/type-annotation-spacing': 'error',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
||||||
export default tseslint.config(
|
|
||||||
// Base JavaScript rules
|
|
||||||
eslint.configs.recommended,
|
|
||||||
...tseslint.configs.recommended,
|
|
||||||
style,
|
|
||||||
|
|
||||||
// TypeScript support
|
|
||||||
// {
|
|
||||||
// files: ['**/*.ts', '**/*.tsx'],
|
|
||||||
// languageOptions: {
|
|
||||||
// parser: parserTs,
|
|
||||||
// parserOptions: {
|
|
||||||
// ecmaVersion: 'latest',
|
|
||||||
// sourceType: 'module',
|
|
||||||
// project: './tsconfig.json',
|
|
||||||
// ecmaFeatures: {
|
|
||||||
// jsx: true,
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// plugins: {
|
|
||||||
// '@typescript-eslint': typescript,
|
|
||||||
// },
|
|
||||||
// rules: {
|
|
||||||
// ...typescript.configs.recommended.rules,
|
|
||||||
// ...style.rules,
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
|
|
||||||
// Vue support (including TS and JSX inside SFCs)
|
|
||||||
{
|
|
||||||
files: ['**/*.vue'],
|
|
||||||
extends: [
|
|
||||||
'plugin: vue/recommended'
|
|
||||||
],
|
|
||||||
plugins: {
|
|
||||||
'vue-eslint-parser': vue,
|
|
||||||
'@typescript-eslint': typescript,
|
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
...typescript.configs.recommended.rules,
|
|
||||||
...style.rules,
|
|
||||||
|
|
||||||
// You can override any Vue or TS rules here
|
|
||||||
'vue/html-indent': ['error', 4],
|
|
||||||
'vue/html-comment-indent': ['error', 4],
|
|
||||||
'vue/script-indent': ['error', 4],
|
|
||||||
'vue/max-attributes-per-line': ['error', {
|
|
||||||
singleline: 3,
|
|
||||||
multiline: { max: 1, allowFirstLine: false },
|
|
||||||
}],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
|
@ -8,24 +8,19 @@ prepend_keymap = [
|
|||||||
# Goto
|
# Goto
|
||||||
{ on = [ "g", "h" ], run = "cd ~", desc = "Go to ~" },
|
{ on = [ "g", "h" ], run = "cd ~", desc = "Go to ~" },
|
||||||
{ on = [ "g", "c", "c" ], run = "cd ~/.config", desc = "Go to ~/.config" },
|
{ on = [ "g", "c", "c" ], run = "cd ~/.config", desc = "Go to ~/.config" },
|
||||||
|
{ on = [ "g", "c", "h" ], run = "cd ~/.config/hypr", desc = "Go to Hyprland config" },
|
||||||
|
{ on = [ "g", "c", "f" ], run = "cd ~/.config/fish", desc = "Go to Fish config" },
|
||||||
|
{ on = [ "g", "c", "y" ], run = "cd ~/.config/yazi", desc = "Go to Yazi config" },
|
||||||
|
{ on = [ "g", "c", "w" ], run = "cd ~/.config/waybar", desc = "Go to waybar config" },
|
||||||
|
{ on = [ "g", "c", "n" ], run = "cd ~/.config/nvim", desc = "Go to NeoVim config" },
|
||||||
{ on = [ "g", "a" ], run = "cd ~/.cache", desc = "Go to ~/.cache" },
|
{ on = [ "g", "a" ], run = "cd ~/.cache", desc = "Go to ~/.cache" },
|
||||||
{ on = [ "g", "l", "b" ], run = "cd ~/.local/bin", desc = "Go to ~/.local/bin" },
|
|
||||||
{ on = [ "g", "l", "s" ], run = "cd ~/.local/share", desc = "Go to ~/.local/share" },
|
|
||||||
{ on = [ "g", "c", "h" ], run = "cd ~/projects/active/dotfiles/config/hypr", desc = "Go to Hyprland config" },
|
|
||||||
{ on = [ "g", "c", "f" ], run = "cd ~/projects/active/dotfiles/config/fish", desc = "Go to Fish config" },
|
|
||||||
{ on = [ "g", "c", "y" ], run = "cd ~/projects/active/dotfiles/config/yazi", desc = "Go to Yazi config" },
|
|
||||||
{ on = [ "g", "c", "a" ], run = "cd ~/projects/active/dotfiles/config/astal", desc = "Go to astal config" },
|
|
||||||
{ on = [ "g", "c", "l" ], run = "cd ~/projects/active/dotfiles/config/lint", desc = "Go to linter configs" },
|
|
||||||
{ on = [ "g", "c", "k" ], run = "cd ~/projects/active/dotfiles/config/kitty", desc = "Go to kitty config" },
|
|
||||||
{ on = [ "g", "c", "r" ], run = "cd ~/projects/active/dotfiles/config/rofi", desc = "Go to rofi config" },
|
|
||||||
{ on = [ "g", "c", "s" ], run = "cd ~/projects/active/dotfiles/scripts", desc = "Go to script" },
|
|
||||||
{ on = [ "g", "c", "n" ], run = "cd ~/projects/active/nvim", desc = "Go to NeoVim config" },
|
|
||||||
{ on = [ "g", "n" ], run = "cd ~/NextCloud/Documents/", desc = "Go to NextCloud Documents" },
|
{ on = [ "g", "n" ], run = "cd ~/NextCloud/Documents/", desc = "Go to NextCloud Documents" },
|
||||||
{ on = [ "g", "w" ], run = "cd ~/NextCloud/Wallpapers", desc = "Go to Wallpapers" },
|
|
||||||
{ on = [ "g", "e", "c" ], run = "cd ~/projects/active/eth-gitlab/eth-code-expert/Semester2/", desc = "Go to ETH-Code-Expert" },
|
{ on = [ "g", "e", "c" ], run = "cd ~/projects/active/eth-gitlab/eth-code-expert/Semester2/", desc = "Go to ETH-Code-Expert" },
|
||||||
{ on = [ "g", "e", "n" ], run = "cd ~/NextCloud/Documents/ETH/Semester2", desc = "Go to ETH Nextcloud" },
|
{ on = [ "g", "e", "n" ], run = "cd ~/NextCloud/Documents/ETH/Semester2", desc = "Go to ETH Nextcloud" },
|
||||||
{ on = [ "g", "e", "p" ], run = "cd ~/projects/active/eth/semester2/", desc = "Go to ETH notes folder" },
|
{ on = [ "g", "e", "p" ], run = "cd ~/projects/active/eth/semester2/", desc = "Go to ETH notes folder" },
|
||||||
{ on = [ "g", "e", "g" ], run = "cd ~/projects/active/eth-gitlab/pprog25-jahutz/", desc = "Go to ETH Gitlab folder" },
|
{ on = [ "g", "e", "g" ], run = "cd ~/projects/active/eth-gitlab/pprog25-jahutz/", desc = "Go to ETH Gitlab folder" },
|
||||||
|
{ on = [ "g", "l", "b" ], run = "cd ~/.local/bin", desc = "Go to ~/.local/bin" },
|
||||||
|
{ on = [ "g", "l", "s" ], run = "cd ~/.local/share", desc = "Go to ~/.local/share" },
|
||||||
{ on = [ "g", "s", "h" ], run = "cd ~/.steam/steam/steamapps/common", desc = "Go to ~/.steam/steam/steamapps/common" },
|
{ on = [ "g", "s", "h" ], run = "cd ~/.steam/steam/steamapps/common", desc = "Go to ~/.steam/steam/steamapps/common" },
|
||||||
{ on = [ "g", "s", "g" ], run = "cd /mnt/games/SteamLibrary", desc = "Go to SteamLibrary on NTFS partition" },
|
{ on = [ "g", "s", "g" ], run = "cd /mnt/games/SteamLibrary", desc = "Go to SteamLibrary on NTFS partition" },
|
||||||
{ on = [ "g", "s", "s" ], run = "cd /mnt/secondary/SteamLibrary", desc = "Go to SteamLibrary on main games drive" },
|
{ on = [ "g", "s", "s" ], run = "cd /mnt/secondary/SteamLibrary", desc = "Go to SteamLibrary on main games drive" },
|
||||||
|
8
install
8
install
@ -21,17 +21,17 @@ ya pack -a boydaihungst/restore
|
|||||||
yay -S adobe-source-code-pro-fonts gnome-font-viewer gnome-characters gnome-tweaks lxappearance kvantum gnome-keyring smartmontools ffmpeg polkit-gnome swaybg network-manager-applet polkit-kde-agent cpupower-gui ttf-fantasque-nerd ttf-jetbrains-mono-nerd ttf-fluentui-system-icons ttf-comfortaa
|
yay -S adobe-source-code-pro-fonts gnome-font-viewer gnome-characters gnome-tweaks lxappearance kvantum gnome-keyring smartmontools ffmpeg polkit-gnome swaybg network-manager-applet polkit-kde-agent cpupower-gui ttf-fantasque-nerd ttf-jetbrains-mono-nerd ttf-fluentui-system-icons ttf-comfortaa
|
||||||
|
|
||||||
# Programming
|
# Programming
|
||||||
yay -S meld docker vscodium kitty fish docker terminator ghex nodejs npm python-pip git-credential-manager-core-bin wine kate rustup cargo filezilla php jdk
|
yay -S meld docker vscodium kitty fish docker terminator ghex nodejs npm python-pip git-credential-manager-core-bin wine kate rustup cargo filezilla typescript-language-server php jdk vscode-css-languageserver vscode-html-languageserver bash-language-server lazygit
|
||||||
|
sudo npm i -g @vue/typescript-plugin
|
||||||
|
|
||||||
# nvim
|
# nvim
|
||||||
yay -S neovim lua lua-language-server tree-sitter texlab stylua luarocks jdtls perl julia autojump pyright vscode-css-languageserver vscode-html-languageserver bash-language-server lazygit python-black proselint asmfmt typescript-language-server
|
yay -S neovim lua lua-language-server tree-sitter texlab stylua luarocks jdtls perl julia autojump pyright
|
||||||
sudo npm i -g @vue/typescript-plugin
|
|
||||||
|
|
||||||
# Internet
|
# Internet
|
||||||
yay -S librewolf-bin webcord-bin thunderbird rustdesk brave-bin
|
yay -S librewolf-bin webcord-bin thunderbird rustdesk brave-bin
|
||||||
|
|
||||||
# Utilities
|
# Utilities
|
||||||
yay -S okular vlc nextcloud-client p7zip zip unzip gnome-keyring noto-fonts thunderbird pamixer pavucontrol light neofetch bashtop hugo sddm uxplay upower gdu
|
yay -S okular vlc nextcloud-client p7zip zip unzip gnome-keyring noto-fonts thunderbird pamixer pavucontrol light neofetch bashtop hugo sddm uxplay upower
|
||||||
|
|
||||||
# LaTeX
|
# LaTeX
|
||||||
yay -S texlive biber
|
yay -S texlive biber
|
||||||
|
14
notes.md
14
notes.md
@ -17,8 +17,6 @@
|
|||||||
- [ ] AppLauncher (possibly, if anyrun is no good, probably not)
|
- [ ] AppLauncher (possibly, if anyrun is no good, probably not)
|
||||||
- [ ] OSD (see [here](https://github.com/Aylur/astal/tree/main/examples/gtk3/js))
|
- [ ] OSD (see [here](https://github.com/Aylur/astal/tree/main/examples/gtk3/js))
|
||||||
- [x] Open Window List for bar when hovering over window title and per-workspace when hovering over workspace
|
- [x] Open Window List for bar when hovering over window title and per-workspace when hovering over workspace
|
||||||
- [ ] Keybind to open QuickActions
|
|
||||||
- [ ] Improve handling of tray items (crashes on update of submenus)
|
|
||||||
- [ ] Text recognition
|
- [ ] Text recognition
|
||||||
- [ ] Theming
|
- [ ] Theming
|
||||||
- [x] Vivado dark mode
|
- [x] Vivado dark mode
|
||||||
@ -52,14 +50,14 @@
|
|||||||
- [ ] Configure formatters (of Java, Cpp, TS/JS/Vue, Python)
|
- [ ] Configure formatters (of Java, Cpp, TS/JS/Vue, Python)
|
||||||
- [ ] Maybe: Add extra configs to commentbox
|
- [ ] Maybe: Add extra configs to commentbox
|
||||||
- [ ] Remove trouble (useless for my purposes)
|
- [ ] Remove trouble (useless for my purposes)
|
||||||
- [x] Yazi
|
- [ ] Yazi
|
||||||
- [x] More keybinds
|
- [x] More keybinds
|
||||||
- [x] Configure
|
- [ ] Configure
|
||||||
- [ ] ~Drag and drop support?~
|
- [ ] Drag and drop support?
|
||||||
- [x] Check out plugins
|
- [ ] Check out plugins
|
||||||
- [x] Use as file picker
|
- [x] Use as file picker
|
||||||
- [x] SDDM
|
- [ ] SDDM
|
||||||
- [x] Replace with LightDM or ensure theming works, but prefer replacing, consider greetd + tuigreet
|
- [ ] Replace with LightDM or ensure theming works, but prefer replacing, consider greetd + tuigreet
|
||||||
- [ ] Scripts
|
- [ ] Scripts
|
||||||
- [ ] Installer (after the basic OS setup is done (= from chroot onwards))
|
- [ ] Installer (after the basic OS setup is done (= from chroot onwards))
|
||||||
- [x] Theming script
|
- [x] Theming script
|
||||||
|
@ -5,5 +5,5 @@ SCRIPT_DIR=$(dirname "$0")
|
|||||||
cp "$SCRIPT_DIR/../config/lint/eslint.config.mjs" .
|
cp "$SCRIPT_DIR/../config/lint/eslint.config.mjs" .
|
||||||
|
|
||||||
# TODO: Improve eslint config to include JSX and Vue configs too, read on website
|
# TODO: Improve eslint config to include JSX and Vue configs too, read on website
|
||||||
npm i --save-dev @eslint/js typescript-eslint @stylistic/eslint-plugin eslint-plugin-vue
|
npm i --save-dev @eslint/js typescript-eslint @stylistic/eslint-plugin
|
||||||
|
|
||||||
|
17
setup
17
setup
@ -100,16 +100,13 @@ sudo cp ./system/environment /etc/environment
|
|||||||
sudo cp -r ./system/greetd/* /etc/greetd/
|
sudo cp -r ./system/greetd/* /etc/greetd/
|
||||||
hyprctl reload
|
hyprctl reload
|
||||||
|
|
||||||
echo "
|
# echo "
|
||||||
=> Restarting bars, etc
|
# => Restarting bars, etc
|
||||||
-> This will take a couple of seconds to ensure them quitting properly
|
# "
|
||||||
"
|
# killall gjs
|
||||||
killall gjs
|
# sleep 1
|
||||||
killall ags
|
# ags run -d ./config/astal --gtk4 & disown 2>&1 > /dev/null
|
||||||
sleep 5
|
# ags run -d ./config/ags/notifications/ & disown 2>&1 > /dev/null
|
||||||
ags run -d ~/projects/active/dotfiles/config/astal --gtk4 & disown
|
|
||||||
sleep 2
|
|
||||||
ags run -d ~/projects/active/dotfiles/config/ags/notifications & disown
|
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user