initial commit
This commit is contained in:
5
.bash_profile
Normal file
5
.bash_profile
Normal file
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# ~/.bash_profile
|
||||
#
|
||||
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
12
.bashrc
Normal file
12
.bashrc
Normal file
@@ -0,0 +1,12 @@
|
||||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
PS1='[\u@\h \W]\$ '
|
||||
|
||||
export GPG_TTY=$(tty)
|
||||
1
.config/alacritty/alacritty.yml
Normal file
1
.config/alacritty/alacritty.yml
Normal file
@@ -0,0 +1 @@
|
||||
import: [/home/guz/.my-env/environments/neutral_alacritty.yml]
|
||||
79
.config/alacritty/colors.yml
Normal file
79
.config/alacritty/colors.yml
Normal file
@@ -0,0 +1,79 @@
|
||||
|
||||
colors:
|
||||
primary:
|
||||
background: "#111111" # base
|
||||
foreground: "#CDD6F4" # text
|
||||
# Bright and dim foreground colors
|
||||
dim_foreground: "#CDD6F4" # text
|
||||
bright_foreground: "#CDD6F4" # text
|
||||
|
||||
# Cursor colors
|
||||
cursor:
|
||||
text: "#111111" # base
|
||||
cursor: "#F5E0DC" # rosewater
|
||||
vi_mode_cursor:
|
||||
text: "#111111" # base
|
||||
cursor: "#B4BEFE" # lavender
|
||||
|
||||
# Search colors
|
||||
search:
|
||||
matches:
|
||||
foreground: "#111111" # base
|
||||
background: "#A6ADC8" # subtext0
|
||||
focused_match:
|
||||
foreground: "#111111" # base
|
||||
background: "#A6E3A1" # green
|
||||
footer_bar:
|
||||
foreground: "#111111" # base
|
||||
background: "#A6ADC8" # subtext0
|
||||
|
||||
# Keyboard regex hints
|
||||
hints:
|
||||
start:
|
||||
foreground: "#111111" # base
|
||||
background: "#F9E2AF" # yellow
|
||||
end:
|
||||
foreground: "#111111" # base
|
||||
background: "#A6ADC8" # subtext0
|
||||
|
||||
# Selection colors
|
||||
selection:
|
||||
text: "#111111" # base
|
||||
background: "#F5E0DC" # rosewater
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: "#45475A" # surface1
|
||||
red: "#F38BA8" # red
|
||||
green: "#A6E3A1" # green
|
||||
yellow: "#F9E2AF" # yellow
|
||||
blue: "#89B4FA" # blue
|
||||
magenta: "#F5C2E7" # pink
|
||||
cyan: "#94E2D5" # teal
|
||||
white: "#BAC2DE" # subtext1
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: "#585B70" # surface2
|
||||
red: "#F38BA8" # red
|
||||
green: "#A6E3A1" # green
|
||||
yellow: "#F9E2AF" # yellow
|
||||
blue: "#89B4FA" # blue
|
||||
magenta: "#F5C2E7" # pink
|
||||
cyan: "#94E2D5" # teal
|
||||
white: "#A6ADC8" # subtext0
|
||||
|
||||
# Dim colors
|
||||
dim:
|
||||
black: "#45475A" # surface1
|
||||
red: "#F38BA8" # red
|
||||
green: "#A6E3A1" # green
|
||||
yellow: "#F9E2AF" # yellow
|
||||
blue: "#89B4FA" # blue
|
||||
magenta: "#F5C2E7" # pink
|
||||
cyan: "#94E2D5" # teal
|
||||
white: "#BAC2DE" # subtext1
|
||||
|
||||
indexed_colors:
|
||||
- { index: 16, color: "#FAB387" }
|
||||
- { index: 17, color: "#F5E0DC" }
|
||||
54
.config/alacritty/default_alacritty.yml
Normal file
54
.config/alacritty/default_alacritty.yml
Normal file
@@ -0,0 +1,54 @@
|
||||
## Copyright (C) 2020-2023 Aditya Shakya <adi1090x@gmail.com>
|
||||
## Modified by Guz013
|
||||
|
||||
## Configuration for Alacritty, the GPU enhanced terminal emulator.
|
||||
## It's a very basic and simple config file, for full configuration...
|
||||
## See, /usr/share/doc/alacritty/example/alacritty.yml
|
||||
|
||||
## Import files (Colors, Fonts, Etc)
|
||||
import:
|
||||
- ~/.config/alacritty/colors.yml
|
||||
- ~/.config/alacritty/fonts.yml
|
||||
|
||||
## Set environment variables
|
||||
env:
|
||||
TERM: alacritty
|
||||
WINIT_X11_SCALE_FACTOR: '1.0'
|
||||
|
||||
## Terminal window settings
|
||||
window:
|
||||
dimensions:
|
||||
columns: 82
|
||||
lines: 24
|
||||
|
||||
padding:
|
||||
x: 12
|
||||
y: 12
|
||||
|
||||
decorations: full
|
||||
startup_mode: Windowed
|
||||
dynamic_title: true
|
||||
|
||||
## scrolling
|
||||
history: 10000
|
||||
multiplier: 3
|
||||
|
||||
## Background opacity
|
||||
opacity: 1.0
|
||||
|
||||
## Cursor
|
||||
cursor:
|
||||
style:
|
||||
shape: Block
|
||||
blinking: On
|
||||
|
||||
unfocused_hollow: false
|
||||
|
||||
## Live config reload
|
||||
live_config_reload: true
|
||||
|
||||
## Shell
|
||||
shell:
|
||||
program: /bin/zsh
|
||||
args:
|
||||
- --login
|
||||
37
.config/alacritty/fonts.yml
Normal file
37
.config/alacritty/fonts.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
## Copyright (C) 2020-2023 Aditya Shakya <adi1090x@gmail.com>
|
||||
## Modified by Guz013
|
||||
|
||||
# Font configuration
|
||||
font:
|
||||
# Normal (roman) font face
|
||||
normal:
|
||||
family: "JetBrainsMono Nerd Font"
|
||||
#style: Regular
|
||||
|
||||
# Bold font face
|
||||
bold:
|
||||
family: "JetBrainsMono Nerd Font"
|
||||
#style: Bold
|
||||
|
||||
# Italic font face
|
||||
italic:
|
||||
family: "JetBrainsMono Nerd Font"
|
||||
#style: Italic
|
||||
|
||||
# Bold italic font face
|
||||
bold_italic:
|
||||
family: "JetBrainsMono Nerd Font"
|
||||
#style: Bold Italic
|
||||
|
||||
# Point size
|
||||
size: 10
|
||||
|
||||
# Offset
|
||||
#offset:
|
||||
# x: 0
|
||||
# y: 0
|
||||
|
||||
# Glyph offset
|
||||
#glyph_offset:
|
||||
# x: 0
|
||||
# y: 0
|
||||
8
.config/eww/eww.scss
Normal file
8
.config/eww/eww.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
@import "/home/guz/.config/eww/vars.scss";
|
||||
|
||||
@import "/home/guz/.config/eww/windows/bar-coding.scss";
|
||||
@import "/home/guz/.config/eww/windows/bar-neutral.scss";
|
||||
|
||||
* {
|
||||
all: unset; //Unsets everything so you can style everything from scratch
|
||||
}
|
||||
9
.config/eww/eww.yuck
Normal file
9
.config/eww/eww.yuck
Normal file
@@ -0,0 +1,9 @@
|
||||
(include "/home/guz/.config/eww/widgets/metric.yuck")
|
||||
(include "/home/guz/.config/eww/widgets/date.yuck")
|
||||
(include "/home/guz/.config/eww/widgets/active-window.yuck")
|
||||
(include "/home/guz/.config/eww/widgets/sidestuff.yuck")
|
||||
|
||||
(defwidget empty [] "")
|
||||
|
||||
(include "/home/guz/.config/eww/windows/bar-coding.yuck")
|
||||
(include "/home/guz/.config/eww/windows/bar-neutral.yuck")
|
||||
3
.config/eww/scripts/get-active-window.sh
Normal file
3
.config/eww/scripts/get-active-window.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
hyprctl activewindow -j | jq --raw-output .title
|
||||
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}'
|
||||
6
.config/eww/scripts/get-active-workspace.sh
Normal file
6
.config/eww/scripts/get-active-workspace.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
hyprctl monitors -j | jq '.[] | select(.focused) | .activeWorkspace.id'
|
||||
|
||||
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
|
||||
stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}'
|
||||
15
.config/eww/scripts/volume.sh
Normal file
15
.config/eww/scripts/volume.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sink="$(echo $(pulsemixer -l | grep 'Default' | grep 'sink-' | awk '{print $3}') | rev | cut -c 2- | rev)"
|
||||
function="$1"
|
||||
value="$2"
|
||||
|
||||
if [[ "$function" == "set" ]]; then
|
||||
pulsemixer --id "$sink" --set-volume $2
|
||||
echo "0"
|
||||
elif [[ "$function" == "get" ]]; then
|
||||
echo "$(pulsemixer --id "$sink" --get-volume | awk '{print $1}')"
|
||||
elif [[ "$function" == "label" ]]; then
|
||||
echo "$(pulsemixer --id "$sink" --get-mute | awk '{if($1>0) print ""; else print ""}')"
|
||||
fi
|
||||
|
||||
13
.config/eww/vars-coding.scss
Normal file
13
.config/eww/vars-coding.scss
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
$color-accent: #88C0D0;
|
||||
$color-foreground: rgba(#181818, 1);
|
||||
$color-background: rgba(#111111, 1);
|
||||
|
||||
$shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
|
||||
$border-radius: 5px;
|
||||
|
||||
@mixin box-style {
|
||||
border-radius: $border-radius;
|
||||
box-shadow: $shadow;
|
||||
background-color: $color-background;
|
||||
}
|
||||
12
.config/eww/vars-neutral.scss
Normal file
12
.config/eww/vars-neutral.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
$color-accent: #dbdbdb;
|
||||
$color-foreground: rgba(#181818, 1);
|
||||
$color-background: rgba(#111111, 1);
|
||||
|
||||
$shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
|
||||
$border-radius: 5px;
|
||||
|
||||
@mixin box-style {
|
||||
border-radius: $border-radius;
|
||||
box-shadow: $shadow;
|
||||
background-color: $color-background;
|
||||
}
|
||||
1
.config/eww/vars.scss
Normal file
1
.config/eww/vars.scss
Normal file
@@ -0,0 +1 @@
|
||||
@import "/home/guz/.config/eww/vars-neutral.scss";
|
||||
7
.config/eww/widgets/active-window.scss
Normal file
7
.config/eww/widgets/active-window.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
@import "/home/guz/.config/eww/vars.scss";
|
||||
|
||||
.active-window {
|
||||
padding-left: 15px;
|
||||
color: $color-accent;
|
||||
font-size: smaller;
|
||||
}
|
||||
12
.config/eww/widgets/active-window.yuck
Normal file
12
.config/eww/widgets/active-window.yuck
Normal file
@@ -0,0 +1,12 @@
|
||||
(deflisten active-window :initial "..."
|
||||
"bash /home/guz/.config/eww/scripts/get-active-window.sh")
|
||||
(deflisten active-workspace :initial "..."
|
||||
"bash /home/guz/.config/eww/scripts/get-active-workspace.sh")
|
||||
|
||||
(defwidget window []
|
||||
(box :class "active-window"
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:halign "center"
|
||||
:spacing 10
|
||||
(label :text " ${active-workspace} - ${active-window}")))
|
||||
16
.config/eww/widgets/calendar.scss
Normal file
16
.config/eww/widgets/calendar.scss
Normal file
@@ -0,0 +1,16 @@
|
||||
@import "/home/guz/.config/eww/vars.scss";
|
||||
|
||||
.cal-wrapper {
|
||||
|
||||
padding: 6px 11px;
|
||||
|
||||
.calendar {
|
||||
|
||||
color: $color-accent;
|
||||
font-family: 'Fira Code';
|
||||
font-weight: 500;
|
||||
padding: 6px 11px;
|
||||
|
||||
@include box-style;
|
||||
}
|
||||
}
|
||||
25
.config/eww/widgets/calendar.yuck
Normal file
25
.config/eww/widgets/calendar.yuck
Normal file
@@ -0,0 +1,25 @@
|
||||
(defpoll calendar_day :interval "20h" "date '+%d'")
|
||||
(defpoll calendar_month :interval "20h" "date '+%m'")
|
||||
(defpoll calendar_year :interval "20h" "date '+%Y'")
|
||||
|
||||
(defwindow calendar
|
||||
:monitor 0
|
||||
:windowtype "dock"
|
||||
:geometry (geometry :x "0%"
|
||||
:y "0%"
|
||||
:width "10%"
|
||||
:height "5px"
|
||||
:anchor "top left")
|
||||
:reserve (struts :side "top" :distance "4%")
|
||||
:exclusive "false"
|
||||
:stacking "fg"
|
||||
(eventbox
|
||||
; :onhover "eww open calendar"
|
||||
:onhoverlost "eww close calendar"
|
||||
(box :class "cal-wrapper"
|
||||
(box :class "calendar" :orientation "v"
|
||||
(calendar
|
||||
:day calendar_day
|
||||
:month calendar_month
|
||||
:year calendar_year
|
||||
)))))
|
||||
7
.config/eww/widgets/date.scss
Normal file
7
.config/eww/widgets/date.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
@import "/home/guz/.config/eww/vars.scss";
|
||||
|
||||
@import "/home/guz/.config/eww/widgets/calendar.scss";
|
||||
|
||||
.date {
|
||||
color: $color-accent;
|
||||
}
|
||||
19
.config/eww/widgets/date.yuck
Normal file
19
.config/eww/widgets/date.yuck
Normal file
@@ -0,0 +1,19 @@
|
||||
(include "/home/guz/.config/eww/widgets/calendar.yuck")
|
||||
|
||||
(defvar cal_reveal false)
|
||||
|
||||
(defpoll week-day :interval "10s"
|
||||
"date '+%a'")
|
||||
(defpoll time :interval "10s"
|
||||
"date '+%H:%M'")
|
||||
(defpoll day :interval "10s"
|
||||
"date '+%b %d'")
|
||||
(defpoll year :interval "10s"
|
||||
"date '+%y'")
|
||||
|
||||
(defwidget date []
|
||||
(eventbox
|
||||
; :onhover "eww open calendar"
|
||||
; :onhoverlost "eww close calendar"
|
||||
(box :class "date" :orientation "h" :halign "start"
|
||||
" ${week-day} - ${day}, 12.0${year} - ${time} ")))
|
||||
34
.config/eww/widgets/metric.scss
Normal file
34
.config/eww/widgets/metric.scss
Normal file
@@ -0,0 +1,34 @@
|
||||
@import "/home/guz/.config/eww/vars.scss";
|
||||
|
||||
.metric {
|
||||
font-weight: normal;
|
||||
|
||||
.value {
|
||||
|
||||
.value-label label {
|
||||
margin-left: 12px;
|
||||
|
||||
&.text-value {
|
||||
font-size: smaller;
|
||||
}
|
||||
}
|
||||
|
||||
scale trough {
|
||||
all: unset;
|
||||
background-color: $color-foreground;
|
||||
border-radius: 50px;
|
||||
padding-top: 2px;
|
||||
min-height: 3px;
|
||||
min-width: 65px;
|
||||
margin-left: 10px;
|
||||
margin-right: 20px;
|
||||
margin-top: 0;
|
||||
|
||||
highlight {
|
||||
all: unset;
|
||||
background-color: $color-accent;
|
||||
border-radius: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
44
.config/eww/widgets/metric.yuck
Normal file
44
.config/eww/widgets/metric.yuck
Normal file
@@ -0,0 +1,44 @@
|
||||
(defwidget metric [label value-text value onchange onclick]
|
||||
(box :orientation "h"
|
||||
:class "metric"
|
||||
:space-evenly false
|
||||
(box
|
||||
:class "value"
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
(button
|
||||
:onclick onclick
|
||||
(box
|
||||
:class "value-label"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
(label :class "text-label" :text "${label}")
|
||||
(label :class "text-value" :text "${value-text}")
|
||||
))
|
||||
(scale :min 0
|
||||
:max 101
|
||||
:active {onchange != ""}
|
||||
:value value
|
||||
:onchange onchange))))
|
||||
|
||||
(defwidget metric-minimal [label value-text value onchange onclick]
|
||||
(box :orientation "h"
|
||||
:class "metric"
|
||||
:space-evenly false
|
||||
(box
|
||||
:class "value"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
(button
|
||||
:onclick onclick
|
||||
(box
|
||||
:class "value-label"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
(label :class "text-label" :text "${label}")
|
||||
))
|
||||
(scale :min 0
|
||||
:max 101
|
||||
:active {onchange != ""}
|
||||
:value value
|
||||
:onchange onchange))))
|
||||
7
.config/eww/widgets/sidestuff.scss
Normal file
7
.config/eww/widgets/sidestuff.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
@import "/home/guz/.config/eww/vars.scss";
|
||||
|
||||
@import "/home/guz/.config/eww/widgets/metric.scss";
|
||||
|
||||
.sidestuff {
|
||||
color: $color-accent;
|
||||
}
|
||||
55
.config/eww/widgets/sidestuff.yuck
Normal file
55
.config/eww/widgets/sidestuff.yuck
Normal file
@@ -0,0 +1,55 @@
|
||||
|
||||
(defvar time_rev false)
|
||||
|
||||
(defpoll volume :interval "1s"
|
||||
"bash /home/guz/.config/eww/scripts/volume.sh get")
|
||||
(defpoll volume-label :interval "1s"
|
||||
"bash /home/guz/.config/eww/scripts/volume.sh label")
|
||||
|
||||
(defwidget sidestuff []
|
||||
(box :class "sidestuff" :orientation "h" :space-evenly false :halign "end"
|
||||
(metric :label volume-label
|
||||
:value volume
|
||||
:value-text "${volume}.00%"
|
||||
:onchange "bash /home/guz/.config/eww/scripts/volume.sh set {}"
|
||||
:onclick "pulsemixer --toggle-mute")
|
||||
(metric :label ""
|
||||
:value {EWW_RAM.used_mem_perc}
|
||||
:value-text "${round(EWW_RAM.used_mem_perc, 2)}%"
|
||||
:onchange ""
|
||||
:onclick "hyprctl dispatch exec -- alacritty -e htop -t")
|
||||
(metric :label ""
|
||||
:value "${round(EWW_CPU.avg, 0)}"
|
||||
:value-text "${round(EWW_CPU.avg, 2)}%"
|
||||
:onchange ""
|
||||
:onclick "hyprctl dispatch exec -- alacritty -e htop -t")
|
||||
(metric :label ""
|
||||
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
|
||||
:value-text "${round(EWW_DISK["/"].used_perc, 2)}%"
|
||||
:onchange ""
|
||||
:onclick "")
|
||||
))
|
||||
|
||||
(defwidget sidestuff-minimal []
|
||||
(box :class "sidestuff" :orientation "h" :space-evenly false :halign "end"
|
||||
(metric-minimal :label volume-label
|
||||
:value volume
|
||||
:value-text "${volume}.00%"
|
||||
:onchange "bash /home/guz/.config/eww/scripts/volume.sh set {}"
|
||||
:onclick "pulsemixer --toggle-mute")
|
||||
(metric-minimal :label ""
|
||||
:value {EWW_RAM.used_mem_perc}
|
||||
:value-text "${round(EWW_RAM.used_mem_perc, 2)}%"
|
||||
:onchange ""
|
||||
:onclick "hyprctl dispatch exec -- alacritty -e htop -t")
|
||||
(metric-minimal :label ""
|
||||
:value "${round(EWW_CPU.avg, 0)}"
|
||||
:value-text "${round(EWW_CPU.avg, 2)}%"
|
||||
:onchange ""
|
||||
:onclick "hyprctl dispatch exec -- alacritty -e htop -t")
|
||||
(metric-minimal :label ""
|
||||
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
|
||||
:value-text "${round(EWW_DISK["/"].used_perc, 2)}%"
|
||||
:onchange ""
|
||||
:onclick "")
|
||||
))
|
||||
16
.config/eww/windows/bar-coding.scss
Normal file
16
.config/eww/windows/bar-coding.scss
Normal file
@@ -0,0 +1,16 @@
|
||||
@import "/home/guz/.config/eww/vars.scss";
|
||||
|
||||
@import "/home/guz/.config/eww/widgets/date.scss";
|
||||
@import "/home/guz/.config/eww/widgets/active-window.scss";
|
||||
@import "/home/guz/.config/eww/widgets/sidestuff.scss";
|
||||
|
||||
.bar {
|
||||
font-weight: 500;
|
||||
font-family: 'Fira Code';
|
||||
|
||||
margin: 5px 10px;
|
||||
margin-bottom: 0px;
|
||||
padding: 6px 12px;
|
||||
|
||||
@include box-style;
|
||||
}
|
||||
38
.config/eww/windows/bar-coding.yuck
Normal file
38
.config/eww/windows/bar-coding.yuck
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
(defwidget bar--coding []
|
||||
(centerbox :orientation "h" :class "bar"
|
||||
(date)
|
||||
(window)
|
||||
(empty)))
|
||||
|
||||
(defwindow bar-coding
|
||||
:monitor 0
|
||||
:windowtype "dock"
|
||||
:geometry (geometry :x "0%"
|
||||
:y "0%"
|
||||
:width "100%"
|
||||
:height "5px"
|
||||
:anchor "top center")
|
||||
:reserve (struts :side "top" :distance "0%")
|
||||
:exclusive "true"
|
||||
:stacking "fg"
|
||||
(bar--coding))
|
||||
|
||||
(defwidget bar--coding-2 []
|
||||
(centerbox :orientation "h" :class "bar"
|
||||
(empty)
|
||||
(window)
|
||||
(sidestuff)))
|
||||
|
||||
(defwindow bar-coding-2
|
||||
:monitor 1
|
||||
:windowtype "dock"
|
||||
:geometry (geometry :x "0%"
|
||||
:y "0%"
|
||||
:width "100%"
|
||||
:height "5px"
|
||||
:anchor "top center")
|
||||
:reserve (struts :side "top" :distance "4%")
|
||||
:exclusive "true"
|
||||
:stacking "fg"
|
||||
(bar--coding-2))
|
||||
21
.config/eww/windows/bar-neutral.scss
Normal file
21
.config/eww/windows/bar-neutral.scss
Normal file
@@ -0,0 +1,21 @@
|
||||
@import "/home/guz/.config/eww/vars.scss";
|
||||
|
||||
@import "/home/guz/.config/eww/widgets/date.scss";
|
||||
@import "/home/guz/.config/eww/widgets/active-window.scss";
|
||||
@import "/home/guz/.config/eww/widgets/sidestuff.scss";
|
||||
|
||||
.bar {
|
||||
font-weight: 500;
|
||||
font-family: 'Fira Code';
|
||||
|
||||
margin: 5px 10px;
|
||||
margin-bottom: 0px;
|
||||
padding: 6px 12px;
|
||||
|
||||
// background-color: transparent;
|
||||
|
||||
.date-wrapper {
|
||||
@include box-style;
|
||||
}
|
||||
|
||||
}
|
||||
40
.config/eww/windows/bar-neutral.yuck
Normal file
40
.config/eww/windows/bar-neutral.yuck
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
(defwidget bar--neutral []
|
||||
(centerbox :orientation "h" :class "bar"
|
||||
(empty)
|
||||
(box :class "date-wrapper" :orientation "h" :halign "center"
|
||||
(date))
|
||||
(empty)))
|
||||
|
||||
(defwindow bar-neutral
|
||||
:monitor 0
|
||||
:windowtype "dock"
|
||||
:geometry (geometry :x "0%"
|
||||
:y "0%"
|
||||
:width "100%"
|
||||
:height "5px"
|
||||
:anchor "top center")
|
||||
:reserve (struts :side "top" :distance "0%")
|
||||
:exclusive "true"
|
||||
:stacking "fg"
|
||||
(bar--neutral))
|
||||
|
||||
(defwidget bar--neutral-2 []
|
||||
(centerbox :orientation "h" :class "bar"
|
||||
(empty)
|
||||
(box :class "sidestuff-wrapper" :orientation "h" :halign "center"
|
||||
(sidestuff-minimal))
|
||||
(empty)))
|
||||
|
||||
(defwindow bar-neutral-2
|
||||
:monitor 1
|
||||
:windowtype "dock"
|
||||
:geometry (geometry :x "0%"
|
||||
:y "0%"
|
||||
:width "100%"
|
||||
:height "5px"
|
||||
:anchor "top center")
|
||||
:reserve (struts :side "top" :distance "4%")
|
||||
:exclusive "true"
|
||||
:stacking "fg"
|
||||
(bar--neutral-2))
|
||||
163
.config/hypr/hyprland.conf
Normal file
163
.config/hypr/hyprland.conf
Normal file
@@ -0,0 +1,163 @@
|
||||
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
exec-once=wl-paste --watch cliphist store
|
||||
exec-once=swww init
|
||||
exec-once=eww daemon
|
||||
exec-once=$HOME/.local/share/hyprload/hyprload.sh
|
||||
exec-once=$HOME/.my-env/boot.sh
|
||||
|
||||
# CONSTANTS #######################################
|
||||
$mainMod = SUPER
|
||||
|
||||
$firstMonitor = HDMI-A-1
|
||||
$secondMonitor = DVI-D-1
|
||||
|
||||
####################################################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
monitor=$firstMonitor,2560x1080@60,0x0,1
|
||||
monitor=$secondMonitor,1920x1080@60,2560x0,1
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
|
||||
# Execute your favorite apps at launch
|
||||
# exec-once = waybar & hyprpaper & firefox
|
||||
|
||||
# Source a file (multi-file configs)
|
||||
# source = ~/.config/hypr/myColors.conf
|
||||
|
||||
# Some default env vars.
|
||||
env = XCURSOR_SIZE,24
|
||||
env = MOZ_ENABLE_WAYLAND,1
|
||||
|
||||
# Hyperland screen-sharing fix
|
||||
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
|
||||
windowrulev2 = noanim,class:^(xwaylandvideobridge)$
|
||||
windowrulev2 = nofocus,class:^(xwaylandvideobridge)$
|
||||
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
|
||||
|
||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||
input {
|
||||
kb_layout = br
|
||||
kb_variant = abnt2
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
touchpad {
|
||||
natural_scroll = no
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
}
|
||||
|
||||
general {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
gaps_in = 5
|
||||
gaps_out = 10
|
||||
border_size = 0
|
||||
col.active_border = rgba(ffffff99) rgba(ffffff33) 90deg
|
||||
col.inactive_border = rgba(18181800)
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
decoration {
|
||||
rounding = 5
|
||||
|
||||
dim_inactive = true
|
||||
dim_strength = 0.2
|
||||
dim_around = 0.4
|
||||
|
||||
blur {
|
||||
enabled = false
|
||||
size = 20
|
||||
}
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = yes
|
||||
|
||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
|
||||
animation = windows, 1, 7, myBezier
|
||||
animation = windowsOut, 1, 7, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 6, default
|
||||
}
|
||||
|
||||
dwindle {
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = yes # you probably want this
|
||||
}
|
||||
|
||||
master {
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
new_is_master = true
|
||||
}
|
||||
|
||||
gestures {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
workspace_swipe = off
|
||||
}
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
||||
device:epic-mouse-v1 {
|
||||
sensitivity = -0.5
|
||||
}
|
||||
|
||||
# Example windowrule v1
|
||||
# windowrule = float, ^(kitty)$
|
||||
# Example windowrule v2
|
||||
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod, Q, exec, alacritty
|
||||
bind = $mainMod, C, killactive,
|
||||
bind = $mainMod, M, exit,
|
||||
bind = $mainMod, E, exec, thunar
|
||||
bind = $mainMod SHIFT, E, exec, librewolf
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, R, exec, rofi -show drun
|
||||
bind = $mainMod, Z, togglesplit,
|
||||
bind = $mainMod, X, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
|
||||
bind = $mainMod, P, exec, hyprpicker -a
|
||||
bind = $mainMod, S, exec, grimblast copy area
|
||||
|
||||
# Move window to workspace
|
||||
bind = $mainMod SHIFT, L, movetoworkspace, e+1
|
||||
bind = $mainMod SHIFT, H, movetoworkspace, e-1
|
||||
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, index
|
||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, H, movefocus, l
|
||||
bind = $mainMod, L, movefocus, r
|
||||
bind = $mainMod, K, movefocus, u
|
||||
bind = $mainMod, J, movefocus, d
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
source=$HOME/.config/hypr/workspaces.conf
|
||||
source=$HOME/.config/hypr/windowrules.conf
|
||||
8
.config/hypr/hyprload.toml
Normal file
8
.config/hypr/hyprload.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
[hyprbars]
|
||||
description = "A plugin to add title bars to windows"
|
||||
version = "1.0"
|
||||
author = "Vaxry"
|
||||
|
||||
[hyprbars.build]
|
||||
output = "/urs/lib/hyprland-plugins/hyprbars.so"
|
||||
10
.config/hypr/windowrules.conf
Normal file
10
.config/hypr/windowrules.conf
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
# Main termianl
|
||||
windowrulev2=workspace index,class:(main-terminal)
|
||||
windowrulev2=float,class:(main-terminal)
|
||||
windowrulev2=move 2227 822,class:(main-terminal)
|
||||
windowrulev2=size 300 200,class:(main-terminal)
|
||||
windowrulev2=nodim,class:(main-terminal)
|
||||
|
||||
# Games
|
||||
windowrulev2=float,title:(.*)(Minecraft)(.*)$
|
||||
25
.config/hypr/workspaces.conf
Normal file
25
.config/hypr/workspaces.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
# Index workspace/neutral
|
||||
workspace=name:index,monitor:$firstMonitor,default:true
|
||||
bind = $mainMod,0,workspace,name:index
|
||||
|
||||
workspace=name:index2,monitor:$secondMonitor,default:true
|
||||
bind = $mainMod SHIFT,0,workspace,name:index2
|
||||
|
||||
# Main workspaces/monitor
|
||||
workspace=1,monitor:$firstMonitor
|
||||
workspace=2,monitor:$firstMonitor
|
||||
workspace=3,monitor:$firstMonitor
|
||||
|
||||
bind = $mainMod,1,workspace,1
|
||||
bind = $mainMod,2,workspace,2
|
||||
bind = $mainMod,3,workspace,3
|
||||
|
||||
# Secondary workspaces/monitor
|
||||
workspace=4,monitor:$secondMonitor,default:true
|
||||
workspace=5,monitor:$secondMonitor
|
||||
workspace=6,monitor:$secondMonitor
|
||||
|
||||
bind = $mainMod SHIFT,1,workspace,4
|
||||
bind = $mainMod SHIFT,2,workspace,5
|
||||
bind = $mainMod SHIFT,3,workspace,6
|
||||
101
.config/rofi/config.rasi
Normal file
101
.config/rofi/config.rasi
Normal file
@@ -0,0 +1,101 @@
|
||||
* {
|
||||
font: "Fira Code 12";
|
||||
g-spacing: 10px;
|
||||
g-margin: 0;
|
||||
b-color: #000000FF;
|
||||
fg-color: #FFFFFFFF;
|
||||
fgp-color: #888888FF;
|
||||
b-radius: 8px;
|
||||
g-padding: 8px;
|
||||
hl-color: #181818FF;
|
||||
hlt-color: #FFFFFFFF;
|
||||
alt-color: #111111FF;
|
||||
wbg-color: #111111FF;
|
||||
w-border: 2px solid;
|
||||
w-border-color: #111111FF;
|
||||
w-padding: 12px;
|
||||
}
|
||||
|
||||
configuration {
|
||||
modi: "drun";
|
||||
show-icons: false;
|
||||
display-drun: "";
|
||||
}
|
||||
|
||||
listview {
|
||||
columns: 1;
|
||||
lines: 7;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
cycle: false;
|
||||
scrollbar: false;
|
||||
border: 0px solid;
|
||||
}
|
||||
|
||||
window {
|
||||
transparency: "real";
|
||||
width: 450px;
|
||||
border-radius: @b-radius;
|
||||
background-color: @wbg-color;
|
||||
border: @w-border;
|
||||
border-color: @w-border-color;
|
||||
padding: @w-padding;
|
||||
}
|
||||
|
||||
prompt {
|
||||
text-color: @fg-color;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: ["prompt", "entry"];
|
||||
spacing: @g-spacing;
|
||||
}
|
||||
|
||||
entry {
|
||||
placeholder: "";
|
||||
text-color: @fg-color;
|
||||
placeholder-color: @fgp-color;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
spacing: @g-spacing;
|
||||
margin: @g-margin;
|
||||
padding: @g-padding;
|
||||
children: ["inputbar", "listview", "message"];
|
||||
}
|
||||
|
||||
element {
|
||||
spacing: @g-spacing;
|
||||
margin: @g-margin;
|
||||
padding: @g-padding;
|
||||
border: 0px solid;
|
||||
border-radius: @b-radius;
|
||||
border-color: @b-color;
|
||||
background-color: transparent;
|
||||
text-color: @fg-color;
|
||||
}
|
||||
|
||||
element normal.normal {
|
||||
background-color: transparent;
|
||||
text-color: @fg-color;
|
||||
}
|
||||
|
||||
element alternate.normal {
|
||||
background-color: @alt-color;
|
||||
text-color: @fg-color;
|
||||
}
|
||||
|
||||
element selected.active {
|
||||
background-color: @hl-color;
|
||||
text-color: @hlt-color;
|
||||
}
|
||||
|
||||
element selected.normal {
|
||||
background-color: @hl-color;
|
||||
text-color: @hlt-color;
|
||||
}
|
||||
|
||||
message {
|
||||
background-color: red;
|
||||
border: 0px solid;
|
||||
}
|
||||
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
.my-env/env.txt
|
||||
.my-env/temp.txt
|
||||
.my-env/environments/states/*
|
||||
!.my-env/environments/states/_states.txt
|
||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,6 +1,3 @@
|
||||
[submodule ".oh-my-zsh/zsh-autosuggestions"]
|
||||
path = .oh-my-zsh/zsh-autosuggestions
|
||||
url = https://github.com/zsh-users/zsh-autosuggestions.git
|
||||
[submodule ".oh-my-zsh/custom/plugins/zsh-syntax-highlighting"]
|
||||
path = .oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
||||
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||
|
||||
31
.my-env/_hyprland_utils.sh
Normal file
31
.my-env/_hyprland_utils.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/bin/env bash
|
||||
|
||||
_temp_file="$HOME/.my-env/temp.txt"
|
||||
|
||||
source "$HOME/.my-env/_utils.sh"
|
||||
|
||||
function get_current_clients() {
|
||||
echo "$(hyprctl clients)" >"$_temp_file"
|
||||
echo "$(cat "$_temp_file")"
|
||||
}
|
||||
|
||||
function get_window_by_str() {
|
||||
local str="$1"
|
||||
local line_offset="$2"
|
||||
|
||||
local temp="$(get_current_clients)"
|
||||
|
||||
local line_num="$(get_line_number_of_str "$str" "$_temp_file")"
|
||||
if [[ "$line_num" == "" ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
local line=$(("$line_num" - "$line_offset"))
|
||||
|
||||
echo "$(get_line_by_number "$line" "$_temp_file" | awk '{print $2}')"
|
||||
|
||||
}
|
||||
|
||||
function get_window_pid_by_str() {
|
||||
echo "$(get_window_by_str "$1" $(("$2" - 12)))"
|
||||
}
|
||||
80
.my-env/_utils.sh
Normal file
80
.my-env/_utils.sh
Normal file
@@ -0,0 +1,80 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function cut_str() {
|
||||
local str="$1"
|
||||
local number="$(($2 + 1))"
|
||||
|
||||
echo "$(echo $1 | rev | cut -c $number- | rev)"
|
||||
}
|
||||
|
||||
function get_line_number_of_str() {
|
||||
local str="$1"
|
||||
local file="$2"
|
||||
local line="$(cat "$file" | grep "$str" -n -m1 | awk '{print $1}')"
|
||||
echo "$(cut_str "$line" "1")"
|
||||
}
|
||||
|
||||
function get_line_by_number() {
|
||||
local line_num="$1"
|
||||
local file="$2"
|
||||
echo "$(sed -n ""$line_num"p" "$file")"
|
||||
}
|
||||
|
||||
function get_pid_by_name() {
|
||||
local name="$1"
|
||||
echo $(ps -ax | grep "$name" | grep -v 'grep' -m1 | awk '{print $1}')
|
||||
}
|
||||
|
||||
function get_librewolf_profile_path() {
|
||||
local profile_name="$1"
|
||||
local profile_file="$(ls "$HOME/.librewolf/" | grep ".$profile_name")"
|
||||
echo "$HOME/.librewolf/$profile_file"
|
||||
}
|
||||
|
||||
# Workaround to opening discord when it's already opened in the background
|
||||
# $1 - Workspace to open discord
|
||||
# $2 - Workspace to go after opening
|
||||
function open_discord_client() {
|
||||
local discord_client_name="webcord/app.asar"
|
||||
local discord_w="$1"
|
||||
local last_w="$2"
|
||||
local discord_pid=$(get_pid_by_name "$discord_client_name")
|
||||
sleep 1
|
||||
if [[ "$discord_pid" -ne "" ]]; then
|
||||
echo "Moving discord to workspace $discord_w"
|
||||
hyprctl "dispatch workspace 6"
|
||||
sleep 2
|
||||
hyprctl "dispatch exec [workspace $discord_w silent] bash $HOME/.temp-fixes/discord-wayland.sh"
|
||||
sleep 2
|
||||
hyprctl "dispatch movetoworkspace $discord_w,pid:$discord_pid"
|
||||
sleep 2
|
||||
hyprctl "dispatch workspace $last_w"
|
||||
else
|
||||
hyprctl "dispatch exec [workspace $discord_w silent] $discord_client_name"
|
||||
fi
|
||||
}
|
||||
|
||||
function close_discord_client() {
|
||||
local discord_client_name="webcord/app.asar"
|
||||
local discord_pid=$(get_pid_by_name "$discord_client_name")
|
||||
hyprctl dispatch closewindow "pid:$discord_pid"
|
||||
}
|
||||
|
||||
# $1 - File path
|
||||
# $2 - State key
|
||||
function get_state() {
|
||||
local file="$1"
|
||||
|
||||
echo $(cat "$HOME/.my-env/environments/states/$file.txt")
|
||||
}
|
||||
|
||||
# $1 - File path
|
||||
# $2 - State key
|
||||
# $3 - State value
|
||||
function save_state() {
|
||||
local file="$1"
|
||||
local value="$2"
|
||||
|
||||
touch "$HOME/.my-env/environments/states/$file.txt"
|
||||
echo "$value" >"$HOME/.my-env/environments/states/$file.txt"
|
||||
}
|
||||
3
.my-env/boot.sh
Executable file
3
.my-env/boot.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
GUZ_ACTIVE_ENV="neutral"
|
||||
bash $HOME/.my-env/env.sh "neutral"
|
||||
9
.my-env/commands/opps.sh
Normal file
9
.my-env/commands/opps.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
app="$1"
|
||||
|
||||
if [[ "$app" == "" ]]; then
|
||||
hyprctl dispatch exec -- rofi -show drun
|
||||
else
|
||||
hyprctl dispatch exec -- "$app"
|
||||
fi
|
||||
52
.my-env/env.sh
Normal file
52
.my-env/env.sh
Normal file
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# $1 - The item to be founded
|
||||
# $2 - The return value
|
||||
# $3 - The aliases list
|
||||
function check_alias() {
|
||||
local find="$1"
|
||||
local return="$2"
|
||||
shift 2
|
||||
local list=("$@")
|
||||
for alias in "${list[@]}"; do
|
||||
if [[ "$find" == "$alias" ]]; then
|
||||
echo "$return"
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
echo "0"
|
||||
}
|
||||
env="0"
|
||||
if [[ $env == "0" ]]; then
|
||||
env=$(check_alias $1 "neutral" "n" "index" "neutral" "off")
|
||||
fi
|
||||
if [[ $env == "0" ]]; then
|
||||
env=$(check_alias $1 "coding" "c" "code" "coding")
|
||||
fi
|
||||
if [[ $env == "0" ]]; then
|
||||
env=$(check_alias $1 "drawing" "d" "art" "draw" "drawing")
|
||||
fi
|
||||
if [[ $env == "0" ]]; then
|
||||
env=$(check_alias $1 "writing" "w" "write" "writing")
|
||||
fi
|
||||
|
||||
if [[ $env == "0" ]]; then
|
||||
echo "Please choose between: neutral, coding, drawing or writing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# $1 - Environment
|
||||
function change_banner() {
|
||||
local wallpaper_dir="$HOME/.my-env/wallpapers"
|
||||
case "$1" in
|
||||
"neutral") swww img "$wallpaper_dir/neutral.jpg";;
|
||||
"coding") swww img "$wallpaper_dir/coding.jpg";;
|
||||
"drawing") swww swww img "$wallpaper_dir/drawing.jpg";;
|
||||
"writing") swww img "$wallpaper_dir/writing.jpg";;
|
||||
esac
|
||||
}
|
||||
change_banner $env
|
||||
|
||||
bash "$HOME/.my-env/environments/_index.sh" $env
|
||||
|
||||
echo "$env"
|
||||
35
.my-env/environments/_index.sh
Normal file
35
.my-env/environments/_index.sh
Normal file
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source "$HOME/.my-env/_utils.sh"
|
||||
source "$HOME/.my-env/_hyprland_utils.sh"
|
||||
|
||||
function set_env() {
|
||||
touch "$HOME/.my-env/env.txt"
|
||||
echo "$1" >"$HOME/.my-env/env.txt"
|
||||
export GUZ_ACTIVE_ENV="$1"
|
||||
hyprctl keyword env "GUZ_ACTIVE_ENV,$1"
|
||||
}
|
||||
|
||||
function get_env() {
|
||||
echo $(cat "$HOME/.my-env/env.txt")
|
||||
return 0
|
||||
}
|
||||
|
||||
source "$HOME/.my-env/environments/neutral.sh"
|
||||
source "$HOME/.my-env/environments/coding.sh"
|
||||
source "$HOME/.my-env/environments/drawing.sh"
|
||||
source "$HOME/.my-env/environments/writing.sh"
|
||||
|
||||
case $(get_env) in
|
||||
"neutral") close_neutral ;;
|
||||
"coding") close_coding ;;
|
||||
"drawing") close_drawing ;;
|
||||
"writing") close_writing ;;
|
||||
esac
|
||||
|
||||
case $1 in
|
||||
"neutral") open_neutral ;;
|
||||
"coding") open_coding ;;
|
||||
"drawing") open_drawing ;;
|
||||
"writing") open_writing ;;
|
||||
esac
|
||||
79
.my-env/environments/coding.sh
Normal file
79
.my-env/environments/coding.sh
Normal file
@@ -0,0 +1,79 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Theme Nord
|
||||
function open_coding() {
|
||||
local state_file="$HOME/.my-env/environments/coding_state.txt"
|
||||
|
||||
echo "Opening coding"
|
||||
|
||||
# Reload Hyperland just in case
|
||||
hyprctl reload
|
||||
|
||||
# Load windows rules for this setup
|
||||
hyprctl keyword source "$HOME/.my-env/environments/coding_hyprland.conf"
|
||||
|
||||
# Start softwares
|
||||
hyprctl --batch 'dispatch workspace 1; dispatch exec [workspace 1] alacritty --class neovim-instance -e nvim; dispatch workspace 4'
|
||||
hyprctl --batch 'dispatch exec [workspace 5 silent] librewolf -P code-profile; dispatch exec [workspace 6 silent] dbus-run-session webcord'
|
||||
|
||||
sleep 1L
|
||||
# local webcord="$(get_window_pid_by_str "class: WebCord" 8)"
|
||||
# hyprctl "dispatch movetoworkspacesilent 6,pid:$webcord"
|
||||
|
||||
# Read last session state
|
||||
local last_browser="$(get_state "coding_last_dev_browser")"
|
||||
if [[ "$last_browser" == "firefox" ]]; then
|
||||
hyprctl 'dispatch exec [workspace 4] firefox'
|
||||
elif [[ "$last_browser" == "brave" ]]; then
|
||||
hyprctl 'dispatch exec [workspace 4] brave'
|
||||
fi
|
||||
|
||||
sleep 2
|
||||
hyprctl dispatch workspace 1;
|
||||
|
||||
echo "import: [$HOME/.my-env/environments/coding_alacritty.yml]" > "$HOME/.config/alacritty/alacritty.yml"
|
||||
echo "@import \"/home/guz/.config/eww/vars-coding.scss\";" > "$HOME/.config/eww/vars.scss"
|
||||
|
||||
eww open bar-coding
|
||||
eww open bar-coding-2
|
||||
|
||||
set_env "coding"
|
||||
|
||||
exec zsh
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
}
|
||||
|
||||
function close_coding() {
|
||||
echo "Closing coding"
|
||||
|
||||
eww close bar-coding
|
||||
eww close bar-coding-2
|
||||
|
||||
echo "import: [$HOME/.config/alacritty/default_alacritty.yml]" > "$HOME/.config/alacritty/alacritty.yml"
|
||||
echo "@import \"/home/guz/.config/eww/vars-neutral.scss\";" > "$HOME/.config/eww/vars.scss"
|
||||
|
||||
# close_discord_client
|
||||
|
||||
|
||||
if [[ "$(get_pid_by_name 'firefox')" -ne "" ]]; then
|
||||
save_state "coding_last_dev_browser" "firefox"
|
||||
hyprctl dispatch closewindow "pid:$(get_pid_by_name 'firefox')"
|
||||
elif [[ "$(get_pid_by_name 'brave')" -ne "" ]]; then
|
||||
save_state "coding_last_dev_browser" "brave"
|
||||
hyprctl dispatch closewindow "pid:$(get_pid_by_name 'brave')"
|
||||
else
|
||||
save_state "coding_last_dev_browser" ""
|
||||
fi
|
||||
|
||||
hyprctl dispatch closewindow "pid:$(get_pid_by_name 'librewolf')"
|
||||
hyprctl dispatch closewindow "pid:$(get_window_pid_by_str "class: neovim-instance" 8)"
|
||||
|
||||
sleep 1
|
||||
|
||||
hyprctl reload
|
||||
|
||||
sleep 2
|
||||
clear
|
||||
}
|
||||
49
.my-env/environments/coding_alacritty.yml
Normal file
49
.my-env/environments/coding_alacritty.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
import:
|
||||
- ~/.config/alacritty/default_alacritty.yml
|
||||
|
||||
# Base colorscheme: Nord
|
||||
colors:
|
||||
primary:
|
||||
background: "#111111"
|
||||
foreground: "#d8dee9"
|
||||
dim_foreground: "#a5abb6"
|
||||
cursor:
|
||||
text: "#111111"
|
||||
cursor: "#d8dee9"
|
||||
vi_mode_cursor:
|
||||
text: "#111111"
|
||||
cursor: "#d8dee9"
|
||||
selection:
|
||||
text: CellForeground
|
||||
background: "#4c566a"
|
||||
search:
|
||||
matches:
|
||||
foreground: CellBackground
|
||||
background: "#88c0d0"
|
||||
normal:
|
||||
black: "#3b4252"
|
||||
red: "#bf616a"
|
||||
green: "#a3be8c"
|
||||
yellow: "#ebcb8b"
|
||||
blue: "#81a1c1"
|
||||
magenta: "#b48ead"
|
||||
cyan: "#88c0d0"
|
||||
white: "#e5e9f0"
|
||||
bright:
|
||||
black: "#4c566a"
|
||||
red: "#bf616a"
|
||||
green: "#a3be8c"
|
||||
yellow: "#ebcb8b"
|
||||
blue: "#81a1c1"
|
||||
magenta: "#b48ead"
|
||||
cyan: "#8fbcbb"
|
||||
white: "#eceff4"
|
||||
dim:
|
||||
black: "#373e4d"
|
||||
red: "#94545d"
|
||||
green: "#809575"
|
||||
yellow: "#b29e75"
|
||||
blue: "#68809a"
|
||||
magenta: "#8c738c"
|
||||
cyan: "#6d96a5"
|
||||
white: "#aeb3bb"
|
||||
13
.my-env/environments/coding_hyprland.conf
Normal file
13
.my-env/environments/coding_hyprland.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
# Editor
|
||||
windowrulev2 = workspace 1, class:^(VSCodium)$
|
||||
|
||||
# Browser for preview/development
|
||||
windowrulev2 = workspace 4, class:^(Brave-Browser|firefox)$
|
||||
|
||||
# Browser for documentation and web in general
|
||||
windowrulev2 = workspace 5, class:^(Librewolf)$
|
||||
|
||||
# Contacts
|
||||
windowrulev2 = workspace 6, class:^(VencordDiscord|Discord)$
|
||||
|
||||
3
.my-env/environments/coding_zsh.zsh
Normal file
3
.my-env/environments/coding_zsh.zsh
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
# PROMPT="%(?:%{$fg_bold[red]%}%{$fg_bold[green]%}%{$fg_bold[yellow]%} :%{$fg_bold[red]%} )"
|
||||
PROMPT='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)'
|
||||
20
.my-env/environments/drawing.sh
Normal file
20
.my-env/environments/drawing.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Theme Catppuccin Mauve
|
||||
function open_drawing() {
|
||||
echo "Opening drawing"
|
||||
|
||||
# Reload Hyperland just in case
|
||||
hyprctl reload
|
||||
|
||||
hyprctl keyword general:col.active_border "rgba(cba6f799) rgba(cba6f733)"
|
||||
hyprctl keyword general:col.inactive_border "rgba(00000000)"
|
||||
|
||||
set_env "drawing"
|
||||
}
|
||||
|
||||
function close_drawing() {
|
||||
echo "Closing drawing"
|
||||
|
||||
hyprctl reload
|
||||
}
|
||||
58
.my-env/environments/neutral.sh
Normal file
58
.my-env/environments/neutral.sh
Normal file
@@ -0,0 +1,58 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function open_neutral() {
|
||||
echo "Opening neutral"
|
||||
|
||||
# Reload Hyperland just in case
|
||||
hyprctl reload
|
||||
|
||||
hyprctl keyword general:col.active_border "rgba(ffffff99) rgba(ffffff33)"
|
||||
hyprctl keyword general:col.inactive_border "rgba(00000000)"
|
||||
|
||||
local webcord="$(get_window_pid_by_str "class: WebCord" 8)"
|
||||
if [[ "$main_terminal" -le "0" ]]; then
|
||||
hyprctl 'dispatch exec [workspace index2 silent] webcord'
|
||||
fi
|
||||
sleep 1
|
||||
hyprctl "dispatch movetoworkspacesilent index2,pid:$webcord"
|
||||
|
||||
local obsidian="$(get_window_pid_by_str "class: obsidian" 8)"
|
||||
if [[ "$obsidian" -le "0" ]]; then
|
||||
hyprctl "dispatch exec [workspace index silent] obsidian"
|
||||
fi
|
||||
hyprctl "dispatch movetoworkspacesilent index,pid:$obsidian"
|
||||
|
||||
local main_terminal=$(get_window_pid_by_str "class: main-terminal" 8)
|
||||
if [[ "$main_terminal" -le "0" ]]; then
|
||||
hyprctl 'dispatch exec [workspace index silent] alacritty --class main-terminal'
|
||||
fi
|
||||
hyprctl --batch "dispatch workspace index2; dispatch workspace index; dispatch focuswindow pid:$main_terminal; dispatch moveactive exact 2227 822; dispatch resizeactive exact 300 200"
|
||||
|
||||
echo "import: [$HOME/.my-env/environments/neutral_alacritty.yml]" >"$HOME/.config/alacritty/alacritty.yml"
|
||||
echo "@import \"/home/guz/.config/eww/vars-neutral.scss\";" >"$HOME/.config/eww/vars.scss"
|
||||
|
||||
eww open bar-neutral
|
||||
eww open bar-neutral-2
|
||||
|
||||
set_env "neutral"
|
||||
|
||||
exec zsh
|
||||
|
||||
sleep 1
|
||||
clear
|
||||
}
|
||||
|
||||
function close_neutral() {
|
||||
echo "Closing neutral"
|
||||
|
||||
eww close bar-neutral
|
||||
eww close bar-neutral-2
|
||||
|
||||
echo "import: [$HOME/.config/alacritty/default_alacritty.yml]" >"$HOME/.config/alacritty/alacritty.yml"
|
||||
echo "@import \"/home/guz/.config/eww/vars-neutral.scss\";" >"$HOME/.config/eww/vars.scss"
|
||||
|
||||
hyprctl reload
|
||||
|
||||
sleep 1
|
||||
clear
|
||||
}
|
||||
82
.my-env/environments/neutral_alacritty.yml
Normal file
82
.my-env/environments/neutral_alacritty.yml
Normal file
@@ -0,0 +1,82 @@
|
||||
import:
|
||||
- ~/.config/alacritty/default_alacritty.yml
|
||||
|
||||
# Base colorscheme: Catppuccin
|
||||
colors:
|
||||
primary:
|
||||
background: "#111111" # base
|
||||
foreground: "#CDD6F4" # text
|
||||
# Bright and dim foreground colors
|
||||
dim_foreground: "#CDD6F4" # text
|
||||
bright_foreground: "#CDD6F4" # text
|
||||
|
||||
# Cursor colors
|
||||
cursor:
|
||||
text: "#111111" # base
|
||||
cursor: "#F5E0DC" # rosewater
|
||||
vi_mode_cursor:
|
||||
text: "#111111" # base
|
||||
cursor: "#B4BEFE" # lavender
|
||||
|
||||
# Search colors
|
||||
search:
|
||||
matches:
|
||||
foreground: "#111111" # base
|
||||
background: "#A6ADC8" # subtext0
|
||||
focused_match:
|
||||
foreground: "#111111" # base
|
||||
background: "#A6E3A1" # green
|
||||
footer_bar:
|
||||
foreground: "#111111" # base
|
||||
background: "#A6ADC8" # subtext0
|
||||
|
||||
# Keyboard regex hints
|
||||
hints:
|
||||
start:
|
||||
foreground: "#111111" # base
|
||||
background: "#F9E2AF" # yellow
|
||||
end:
|
||||
foreground: "#111111" # base
|
||||
background: "#A6ADC8" # subtext0
|
||||
|
||||
# Selection colors
|
||||
selection:
|
||||
text: "#111111" # base
|
||||
background: "#F5E0DC" # rosewater
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: "#45475A" # surface1
|
||||
red: "#F38BA8" # red
|
||||
green: "#A6E3A1" # green
|
||||
yellow: "#F9E2AF" # yellow
|
||||
blue: "#89B4FA" # blue
|
||||
magenta: "#F5C2E7" # pink
|
||||
cyan: "#94E2D5" # teal
|
||||
white: "#BAC2DE" # subtext1
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: "#585B70" # surface2
|
||||
red: "#F38BA8" # red
|
||||
green: "#A6E3A1" # green
|
||||
yellow: "#F9E2AF" # yellow
|
||||
blue: "#89B4FA" # blue
|
||||
magenta: "#F5C2E7" # pink
|
||||
cyan: "#94E2D5" # teal
|
||||
white: "#A6ADC8" # subtext0
|
||||
|
||||
# Dim colors
|
||||
dim:
|
||||
black: "#45475A" # surface1
|
||||
red: "#F38BA8" # red
|
||||
green: "#A6E3A1" # green
|
||||
yellow: "#F9E2AF" # yellow
|
||||
blue: "#89B4FA" # blue
|
||||
magenta: "#F5C2E7" # pink
|
||||
cyan: "#94E2D5" # teal
|
||||
white: "#BAC2DE" # subtext1
|
||||
|
||||
indexed_colors:
|
||||
- { index: 16, color: "#FAB387" }
|
||||
- { index: 17, color: "#F5E0DC" }
|
||||
3
.my-env/environments/neutral_zsh.zsh
Normal file
3
.my-env/environments/neutral_zsh.zsh
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
# PROMPT="%(?:%{$fg_bold[red]%}%{$fg_bold[green]%}%{$fg_bold[yellow]%} :%{$fg_bold[red]%} )"
|
||||
PROMPT='%{$fg[white]%} %c%{$reset_color%} $(git_prompt_info)'
|
||||
0
.my-env/environments/states/_states.txt
Normal file
0
.my-env/environments/states/_states.txt
Normal file
21
.my-env/environments/writing.sh
Normal file
21
.my-env/environments/writing.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Theme Catppuccin Green
|
||||
function open_writing() {
|
||||
echo "Opening writing"
|
||||
|
||||
# Reload Hyperland just in case
|
||||
hyprctl reload
|
||||
|
||||
hyprctl keyword general:col.active_border "rgba(a6e3a199) rgba(a6e3a133)"
|
||||
hyprctl keyword general:col.inactive_border "rgba(00000000)"
|
||||
|
||||
set_env "writing"
|
||||
}
|
||||
|
||||
|
||||
function close_writing() {
|
||||
echo "Closing writing"
|
||||
|
||||
hyprctl reload
|
||||
}
|
||||
BIN
.my-env/wallpapers/coding.jpg
Normal file
BIN
.my-env/wallpapers/coding.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 222 KiB |
BIN
.my-env/wallpapers/drawing.jpg
Normal file
BIN
.my-env/wallpapers/drawing.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
BIN
.my-env/wallpapers/neutral.jpg
Normal file
BIN
.my-env/wallpapers/neutral.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 145 KiB |
BIN
.my-env/wallpapers/writing.jpg
Normal file
BIN
.my-env/wallpapers/writing.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 788 KiB |
15
.oh-my-zsh/custom/themes/archcraft.zsh-theme
Normal file
15
.oh-my-zsh/custom/themes/archcraft.zsh-theme
Normal file
@@ -0,0 +1,15 @@
|
||||
# Default OMZ theme for Archcraft
|
||||
# Modified by Guz013
|
||||
|
||||
if [[ "$USER" == "root" ]]; then
|
||||
# PROMPT="%(?:%{$fg_bold[red]%}%{$fg_bold[yellow]%}%{$fg_bold[red]%} :%{$fg_bold[red]%} )"
|
||||
PROMPT='%{$fg[green]%} %c%{$reset_color%} $(git_prompt_info)'
|
||||
else
|
||||
# PROMPT="%(?:%{$fg_bold[red]%}%{$fg_bold[green]%}%{$fg_bold[yellow]%} :%{$fg_bold[red]%} )"
|
||||
PROMPT='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)'
|
||||
fi
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%} git:(%{$fg[red]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||
Submodule .oh-my-zsh/zsh-autosuggestions deleted from c3d4e576c9
161
.zshrc
Normal file
161
.zshrc
Normal file
@@ -0,0 +1,161 @@
|
||||
# If you come from bash you might have to change your $PATH.
|
||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||
|
||||
# Path to your oh-my-zsh installation.
|
||||
export ZSH=$HOME/.oh-my-zsh
|
||||
|
||||
# Set name of the theme to load --- if set to "random", it will
|
||||
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||
ZSH_THEME="archcraft"
|
||||
|
||||
# Set list of themes to pick from when loading at random
|
||||
# Setting this variable when ZSH_THEME="archcraft"
|
||||
# a theme from this variable instead of looking in $ZSH/themes/
|
||||
# If set to an empty array, this variable will have no effect.
|
||||
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
||||
|
||||
# Uncomment the following line to use case-sensitive completion.
|
||||
# CASE_SENSITIVE="true"
|
||||
|
||||
# Uncomment the following line to use hyphen-insensitive completion.
|
||||
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||
# HYPHEN_INSENSITIVE="true"
|
||||
|
||||
# Uncomment one of the following lines to change the auto-update behavior
|
||||
# zstyle ':omz:update' mode disabled # disable automatic updates
|
||||
# zstyle ':omz:update' mode auto # update automatically without asking
|
||||
zstyle ':omz:update' mode reminder # just remind me to update when it's time
|
||||
|
||||
# Uncomment the following line to change how often to auto-update (in days).
|
||||
zstyle ':omz:update' frequency 7
|
||||
|
||||
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||
# DISABLE_MAGIC_FUNCTIONS="true"
|
||||
|
||||
# Uncomment the following line to disable colors in ls.
|
||||
# DISABLE_LS_COLORS="true"
|
||||
|
||||
# Uncomment the following line to disable auto-setting terminal title.
|
||||
# DISABLE_AUTO_TITLE="true"
|
||||
|
||||
# Uncomment the following line to enable command auto-correction.
|
||||
# ENABLE_CORRECTION="true"
|
||||
|
||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||
# You can also set it to another string to have that shown instead of the default red dots.
|
||||
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
|
||||
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
|
||||
# COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
# Uncomment the following line if you want to disable marking untracked files
|
||||
# under VCS as dirty. This makes repository status check for large repositories
|
||||
# much, much faster.
|
||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||
|
||||
# Uncomment the following line if you want to change the command execution time
|
||||
# stamp shown in the history command output.
|
||||
# You can set one of the optional three formats:
|
||||
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||
# or set a custom format using the strftime function format specifications,
|
||||
# see 'man strftime' for details.
|
||||
# HIST_STAMPS="mm/dd/yyyy"
|
||||
|
||||
# Would you like to use another custom folder than $ZSH/custom?
|
||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||
|
||||
# Which plugins would you like to load?
|
||||
# Standard plugins can be found in $ZSH/plugins/
|
||||
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
|
||||
plugins=(git thefuck zsh-autosuggestions zsh-syntax-highlighting zsh-autocomplete)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# User configuration
|
||||
|
||||
# export MANPATH="/usr/local/man:$MANPATH"
|
||||
|
||||
# You may need to manually set your language environment
|
||||
export LANG=en_US.UTF-8
|
||||
|
||||
# Preferred editor for local and remote sessions
|
||||
if [[ -n $SSH_CONNECTION ]]; then
|
||||
export EDITOR='vim'
|
||||
else
|
||||
export EDITOR='nvim'
|
||||
fi
|
||||
|
||||
# Compilation flags
|
||||
# export ARCHFLAGS="-arch x86_64"
|
||||
|
||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||
# For a full list of active aliases, run `alias`.
|
||||
#
|
||||
# Example aliases
|
||||
# alias zshconfig="mate ~/.zshrc"
|
||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
|
||||
# On-demand rehash
|
||||
zshcache_time="$(date +%s%N)"
|
||||
|
||||
autoload -Uz add-zsh-hook
|
||||
|
||||
rehash_precmd() {
|
||||
if [[ -a /var/cache/zsh/pacman ]]; then
|
||||
local paccache_time="$(date -r /var/cache/zsh/pacman +%s%N)"
|
||||
if (( zshcache_time < paccache_time )); then
|
||||
rehash
|
||||
zshcache_time="$paccache_time"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
add-zsh-hook -Uz precmd rehash_precmd
|
||||
|
||||
source $HOME/.profile
|
||||
|
||||
# Open webcord with wayland
|
||||
alias webcord='bash ~/.temp-fixes/discord-wayland.sh'
|
||||
|
||||
# omz
|
||||
alias zshconfig="geany ~/.zshrc"
|
||||
alias ohmyzsh="thunar ~/.oh-my-zsh"
|
||||
|
||||
# ls
|
||||
alias l='ls -lh'
|
||||
alias ll='ls -lah'
|
||||
alias la='ls -A'
|
||||
alias lm='ls -m'
|
||||
alias lr='ls -R'
|
||||
alias lg='ls -l --group-directories-first'
|
||||
|
||||
# git
|
||||
alias gcl='git clone --depth 1'
|
||||
alias gi='git init'
|
||||
alias ga='git add'
|
||||
alias gc='git commit -m'
|
||||
alias gp='git push origin master'
|
||||
|
||||
# neovim
|
||||
alias vim='nvim'
|
||||
alias vi='nvim'
|
||||
|
||||
# menu launcher, open-apps = opps
|
||||
alias opps='bash ~/.my-env/commands/opps.sh'
|
||||
|
||||
# my env
|
||||
alias mode='bash ~/.my-env/env.sh'
|
||||
alias myenv='bash ~/.my-env/env.sh'
|
||||
alias m='bash ~/.my-env/env.sh'
|
||||
|
||||
if [[ "$(cat "$HOME/.my-env/env.txt")" == "neutral" ]]; then
|
||||
source $HOME/.my-env/environments/neutral_zsh.zsh
|
||||
elif [[ "$(cat "$HOME/.my-env/env.txt")" == "coding" ]]; then
|
||||
source $HOME/.my-env/environments/coding_zsh.zsh
|
||||
fi
|
||||
Reference in New Issue
Block a user