Update: added powermenu, minor bug fixes

This commit is contained in:
Keyitdev
2022-07-24 20:10:29 +02:00
parent a2d46e7b94
commit c3f992e4d6
7 changed files with 60 additions and 11 deletions
+6 -6
View File
@@ -77,13 +77,13 @@ Detailed information and dependencies
## Showcase
|vsc & ncmpcpp & cava|rofi & dunst|
|neofetch|vsc & ncmpcpp & cava|
|-|-|
|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v23/screenshots/1.png)|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/1.png)|
|nemo & nvim & ranger|-|
|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/1.png)|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/1.png)|
|-|i3lock-color|
|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/1.png)|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/1.png)|
|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/1.png)|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/2.png)|
|rofi & dunst|nemo & nvim & ranger|
|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/3.png)|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/4.png)|
|i3lock-color|sddm|
|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/5.png)|![](https://github.com/Keyitdev/screenshots/blob/master/dotfiles/v3/screenshots/6.png)|
## Installation
+1
View File
@@ -116,6 +116,7 @@ bindsym $mod+a exec "rofi -show window -no-default-config -config ~/.config/rofi
bindsym $mod+d exec "rofi -show drun -no-default-config -config ~/.config/rofi/main.rasi"
bindsym $mod+s exec "rofi -show drun -no-default-config -config ~/.config/rofi/full_screen.rasi"
bindsym $mod+z exec "rofi -show  -modi ':rofi-bookmarks' -no-default-config -config ~/.config/rofi/main.rasi"
bindsym $mod+x exec "rofi-powermenu"
bindsym $mod+c exec "rofi-screenshot"
# take a screenshot
+1 -1
View File
@@ -26,7 +26,7 @@ window {
border: 2px;
border-color: @br;
border-radius: 20px;
height: 32%;
height: 28%;
width: 25%;
location: center;
x-offset: 0;
+1 -1
View File
@@ -61,7 +61,7 @@ create_backup(){
[ -d "$config_directory"/rofi ] && mv "$config_directory"/rofi "$config_directory"/rofi_$date && echo "rofi configs detected, backing up."
[ -d "$config_directory"/zathura ] && mv "$config_directory"/zathura "$config_directory"/zathura_$date && echo "zathura configs detected, backing up."
[ -d "$scripts_directory" ] && mv "$scripts_directory" "$scripts_directory"_$date && echo "scripts ($scripts_directory) detected, backing up."
[ -d "$scripts_directory" ] && sudo mv "$scripts_directory" "$scripts_directory"_$date && echo "scripts ($scripts_directory) detected, backing up."
[ -f "$config_directory"/Code\ -\ OSS/User/settings.json ] && mv "$config_directory"/Code\ -\ OSS/User/settings.json "$config_directory"/Code\ -\ OSS/User/settings.json_$date && echo "Vsc configs detected, backing up."
+1 -1
View File
@@ -4,7 +4,7 @@ font="dedede"
green="9ece6a"
red="db4b4b"
i3lock -n --force-clock -F -i ~/Pictures/wallpapers/lockscreen2.png -e \
i3lock -n --force-clock -F -i ~/Pictures/wallpapers/lockscreen.png -e \
--refresh-rate=1 --line-uses-inside --pointer=default --pass-media-keys --pass-volume-keys --pass-screen-keys \
--inside-color="$green" --ring-color="$green" --insidever-color="$green" --ringver-color="$green" --insidewrong-color="$red" --ringwrong-color="$red" \
--keyhl-color="$green" --separator-color="$green" --bshl-color="$green" --color=000000 \
+48
View File
@@ -0,0 +1,48 @@
#!/bin/sh
# rofi theme
theme="$HOME/.config/rofi/main_without_icons.rasi"
get_options() {
echo " Poweroff"
echo " Reboot"
echo " Hibernate"
echo " Lock"
echo " Suspend"
echo " Log out"
}
main() {
# get choice from rofi
choice=$( (get_options) | rofi -dmenu -i -fuzzy -p "" -theme "$theme")
# run the selected command
case $choice in
' Poweroff')
systemctl poweroff
;;
' Reboot')
systemctl reboot
;;
' Hibernate')
systemctl hibernate
;;
' Lock')
lock
;;
' Suspend')
systemctl suspend
;;
' Log out')
i3-msg exit
;;
esac
# done
set -e
}
main &
exit 0
Binary file not shown.

After

Width:  |  Height:  |  Size: 590 KiB