tweaks for hyprland and emacs
This commit is contained in:
parent
6001fa7e21
commit
73da080847
|
@ -211,7 +211,7 @@ tooltip label {
|
||||||
}
|
}
|
||||||
.iconbright {
|
.iconbright {
|
||||||
color: $base09;
|
color: $base09;
|
||||||
margin: 2px 13px 0px 8px;
|
margin: 3px 13px 0px 8px;
|
||||||
}
|
}
|
||||||
.iconbat, .iconmem, .iconcpu .iconvol .iconbright {
|
.iconbat, .iconmem, .iconcpu .iconvol .iconbright {
|
||||||
font-size: 12;
|
font-size: 12;
|
||||||
|
@ -238,7 +238,7 @@ tooltip label {
|
||||||
.icondisk {
|
.icondisk {
|
||||||
font-size: 18;
|
font-size: 18;
|
||||||
color: $base09;
|
color: $base09;
|
||||||
margin: 0px 15px 0px 3px;
|
margin: 3px 5px 0px 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.separ {
|
.separ {
|
||||||
|
|
|
@ -130,6 +130,8 @@ with lib;
|
||||||
gcmh
|
gcmh
|
||||||
use-package
|
use-package
|
||||||
esh-autosuggest
|
esh-autosuggest
|
||||||
|
melpaPackages.org-ai
|
||||||
|
melpaPackages.gptel
|
||||||
pkgs.mu
|
pkgs.mu
|
||||||
pkgs.openjdk
|
pkgs.openjdk
|
||||||
pkgs.languagetool
|
pkgs.languagetool
|
||||||
|
|
|
@ -68,6 +68,8 @@ with lib;
|
||||||
qt5.qtwayland
|
qt5.qtwayland
|
||||||
qt6.qtwayland
|
qt6.qtwayland
|
||||||
swww
|
swww
|
||||||
|
grim
|
||||||
|
slurp
|
||||||
# mkchromecast
|
# mkchromecast
|
||||||
plocate
|
plocate
|
||||||
# librepresenter.libre-presenter
|
# librepresenter.libre-presenter
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
if [ $(hostname) = "syl" ]; then
|
if [ $(hostname) = "syl" ]; then
|
||||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||||
style="laptop-search"
|
style="laptop"
|
||||||
else
|
else
|
||||||
style="laptop-search-wayland"
|
style="laptop-rbw-wayland"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
style="desktop-search"
|
style="desktop-search"
|
||||||
|
@ -13,7 +13,12 @@ fi
|
||||||
|
|
||||||
timestamp=$(date +%F-%T)
|
timestamp=$(date +%F-%T)
|
||||||
|
|
||||||
picture=$(maim --hidecursor --select /tmp/$timestamp.png)
|
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||||
|
picture=$(maim --hidecursor --select /tmp/$timestamp.png)
|
||||||
|
else
|
||||||
|
region=$(slurp)
|
||||||
|
picture=$(grim -g "$region" /tmp/$timestamp.png)
|
||||||
|
fi
|
||||||
|
|
||||||
declare -a options=(
|
declare -a options=(
|
||||||
"clipboard"
|
"clipboard"
|
||||||
|
@ -21,14 +26,19 @@ declare -a options=(
|
||||||
"cancel"
|
"cancel"
|
||||||
)
|
)
|
||||||
|
|
||||||
choice=$(printf '%s\n' "${options[@]}" | rofi -theme /home/chris/.config/rofi/launchers-git/$style.rasi -dmenu -p 'Clip or Save')
|
choice=$(printf '%s\n' "${options[@]}" | rofi -sync -i -theme /home/chris/.config/rofi/launchers-git/$style.rasi -dmenu -p 'Clip or Save')
|
||||||
|
|
||||||
if [[ "$choice" == "cancel" ]]; then
|
if [[ "$choice" == "cancel" ]]; then
|
||||||
rm /tmp/$timestamp.png
|
rm /tmp/$timestamp.png
|
||||||
echo "Canceled." && exit 1
|
echo "Canceled." && exit 1
|
||||||
|
|
||||||
elif [ "$choice" == "clipboard" ]; then
|
elif [ "$choice" == "clipboard" ]; then
|
||||||
xclip -selection clipboard -target image/png -i /tmp/$timestamp.png
|
|
||||||
|
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||||
|
xclip -selection clipboard -target image/png -i /tmp/$timestamp.png
|
||||||
|
else
|
||||||
|
wl-copy /tmp/$timestamp.png
|
||||||
|
fi
|
||||||
rm /tmp/$timestamp.png
|
rm /tmp/$timestamp.png
|
||||||
echo 'saved to clipboard'
|
echo 'saved to clipboard'
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,14 @@
|
||||||
|
|
||||||
window=$(wlrctl window list | rofi -i -sync -dmenu -p " " -theme ~/.config/rofi/launchers-git/laptop-rbw-wayland.rasi)
|
window=$(wlrctl window list | rofi -i -sync -dmenu -p " " -theme ~/.config/rofi/launchers-git/laptop-rbw-wayland.rasi)
|
||||||
|
|
||||||
|
echo $window
|
||||||
|
|
||||||
win=$(echo $window | awk '{print $1}' | sed 's/://')
|
win=$(echo $window | awk '{print $1}' | sed 's/://')
|
||||||
|
|
||||||
if [ $win == "" ]
|
echo $win
|
||||||
|
|
||||||
|
if [ ! -z "$win" ]
|
||||||
then
|
then
|
||||||
exit 0
|
wlrctl window focus $win
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wlrctl window focus $win
|
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
bind = SUPERSHIFT,D,exec,dolphin
|
bind = SUPERSHIFT,D,exec,dolphin
|
||||||
bind = SUPERSHIFT,F,togglefloating,
|
bind = SUPERSHIFT,F,togglefloating,
|
||||||
bindr = SUPER,Super_L,exec,/home/chris/bin/launcher.sh
|
bindr = SUPER,Super_L,exec,/home/chris/bin/launcher.sh
|
||||||
# bindr = ALT,Alt_L,exec,/home/chris/bin/window.sh
|
bindr = ALT,Alt_L,exec,/home/chris/bin/window.sh
|
||||||
bind = SUPER,w,exec,/home/chris/bin/window.sh
|
bind = SUPER,w,exec,/home/chris/bin/window.sh
|
||||||
bind = SUPER,E,exec,/home/chris/bin/emacslof
|
bind = SUPER,E,exec,/home/chris/bin/emacslof
|
||||||
bind = SUPER,d,exec,emacsclient -c -e '(chris/dired-open-wm)'
|
bind = SUPER,d,exec,emacsclient -c -e '(chris/dired-open-wm)'
|
||||||
|
@ -146,6 +146,7 @@
|
||||||
bind = SUPER,B,exec,/home/chris/bin/fflof
|
bind = SUPER,B,exec,/home/chris/bin/fflof
|
||||||
bind = SUPER,A,exec,alacritty --class pulsemixer -e pulsemixer
|
bind = SUPER,A,exec,alacritty --class pulsemixer -e pulsemixer
|
||||||
bind = SUPERCTRL,i,exec,alacritty --class btop -e btop
|
bind = SUPERCTRL,i,exec,alacritty --class btop -e btop
|
||||||
|
bind = ,Print,exec,screenshot
|
||||||
|
|
||||||
bind = SUPER,P,exec,/home/chris/bin/rbw.sh
|
bind = SUPER,P,exec,/home/chris/bin/rbw.sh
|
||||||
bind = SUPER,M,fullscreen,1
|
bind = SUPER,M,fullscreen,1
|
||||||
|
|
Loading…
Reference in a new issue