Update: Changed screenshot script, added option to exit rofi menu by clicking on background, added new aliases, minor changes in zshrc. etc...

This commit is contained in:
Keyitdev committed 2026-10-04 20:56:32 +02:00
1 parent ad19130ded
commit 42131ebb2c
9 files changed
+497 -151

No files matched your search

@@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<match target="scan">
<test name="family" compare="contains">
<string>Iosevka Nerd Font</string>
</test>
<edit name="charset" mode="assign">
<minus>
<name>charset</name>
<charset>
<range>
<int>0xe900</int>
<int>0xea19</int>
</range>
</charset>
</minus>
</edit>
</match>
</fontconfig>
+26
View File
@@ -0,0 +1,26 @@
window {
fullscreen: true;
background-color: transparent;
border: 0;
border-radius: 0;
padding: 0;
orientation: vertical;
children: [ button-top, middle, button-bottom ];
}
middle {
orientation: horizontal;
expand: false;
background-color: transparent;
children: [ button-left, mainbox, button-right ];
}
button-top, button-bottom, button-left, button-right {
expand: true;
background-color: transparent;
action: "kb-cancel";
}
mainbox {
expand: false;
}
+15 -9
View File
@@ -37,26 +37,32 @@
window {
transparency: "real";
location: north;
anchor: north;
fullscreen: false;
width: 100%;
x-offset: 0px;
y-offset: 0px;
children: [ horibox];
fullscreen: true;
orientation: vertical;
children: [ horibox, button-bottom];
enabled: true;
margin: 0px;
padding: 0px;
border: 0px 0px 3px 0px solid;
border: 0px;
border-radius: 0px;
border-color: @border-colour;
background-color: transparent;
cursor: "default";
}
button-bottom {
expand: true;
padding: 0px;
background-color: transparent;
action: "kb-cancel";
}
horibox {
expand: false;
spacing: 0px;
background-color: @background-colour;
text-color: @foreground-colour;
border: 0px 0px 3px 0px solid;
border-color: @border-colour;
orientation: horizontal;
children: [ "prompt", "textbox-prompt-colon", "entry", "listview"];
}
+9 -19
View File
@@ -5,7 +5,7 @@
* Copyright (C) 2022-2026 Keyitdev, Aditya Shakya
*/
@import "colors.rasi"
@import "colors.rasi"
configuration {
font: "Roboto mono 14";
@@ -18,20 +18,6 @@ configuration {
sidebar-mode: false;
}
window {
transparency: "real";
background-color: @bg;
text-color: @fg;
border: 2px;
border-color: @br;
border-radius: 20px;
// height: 45.3%;
width: 40%;
location: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: true;
padding: 1.6% 0% 1.5% 1.2%;
@@ -74,10 +60,12 @@ listview {
}
mainbox {
background-color: @al;
border: 0% 0% 0% 0%;
border-radius: 0% 0% 0% 0%;
border-color: @ac;
background-color: @bg;
text-color: @fg;
border: 2px;
border-color: @br;
border-radius: 20px;
width: 40%;
children: [ inputbar, listview];
spacing: 0%;
padding: 0%;
@@ -117,3 +105,5 @@ element selected {
border-radius: 0px;
border-color: @bg;
}
@import "click-outside.rasi"
+9 -19
View File
@@ -5,7 +5,7 @@
* Copyright (C) 2022-2026 Keyitdev, Aditya Shakya
*/
@import "colors.rasi"
@import "colors.rasi"
configuration {
font: "Roboto mono 14";
@@ -19,20 +19,6 @@ configuration {
}
window {
transparency: "real";
background-color: @bg;
text-color: @fg;
border: 2px;
border-color: @br;
border-radius: 20px;
//height: 36.54%;
width: 25%;
location: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: true;
//padding: 1.6% 0% 1.5% 1%;
@@ -76,10 +62,12 @@ listview {
}
mainbox {
background-color: @al;
border: 0% 0% 0% 0%;
border-radius: 0% 0% 0% 0%;
border-color: @ac;
background-color: @bg;
text-color: @fg;
border: 2px;
border-color: @br;
border-radius: 20px;
width: 25%;
children: [ inputbar, listview];
spacing: 0%;
padding: 0%;
@@ -119,3 +107,5 @@ element selected {
border-radius: 0px;
border-color: @bg;
}
@import "click-outside.rasi"
+17 -3
View File
@@ -36,6 +36,18 @@ precmd() {
fi
}
vim() {
local f
for f in "$@"; do
[[ $f == -* || $f == +* ]] && continue
if [[ -e $f && ! -w $f ]] || [[ ! -e $f && ! -w ${f:h} ]]; then
sudoedit "$@"
return
fi
done
command vim "$@"
}
# prompt
# PROMPT='%F{blue}%B%~%b%f$(git_info) [%*]
# %B%(!.#.$)%b '
@@ -107,8 +119,8 @@ alias ......="cd ../../.."
alias ........="cd ../../../.."
# lazy
alias nemo="nemo ."
alias files="nemo ."
nemo() { command nemo "${@:-.}" &>/dev/null &! }
files() { command nemo "${@:-.}" &>/dev/null &! }
alias c="clear" # I know about ctrl l etc.
alias g="git"
alias py="python3"
@@ -120,6 +132,8 @@ alias sudoo="sudo DISPLAY=$DISPLAY WAYLAND_DISPLAY=$WAYLAND_DISPLAY XDG_RUNTIME_
alias help="cat ~/.zshrc | less"
alias battery="upower -i $(upower -e | grep BAT)"
alias disk_usage="du -sh ./* | sort -hr"
alias disk_usage_btrfs="sudo compsize -x \$(findmnt -l -t btrfs -no TARGET)"
alias disk_usage_btrfs_all="sudo sh -c 'compsize -x \$(findmnt -l -t btrfs -no TARGET) /var/lib/portables /var/lib/machines /.snapshots/*/snapshot'"
alias logout="killall -KILL -u $USER"
# common mistakes
@@ -127,4 +141,4 @@ bindkey "^[[3~" delete-char
alias nemo.="nemo ."
alias files.="files ."
alias code.="code ."
alias kilall="killall"
alias kilall="killall"