mirror of
https://github.com/Keyitdev/dotfiles.git
synced 2026-09-24 01:52:09 +00:00
Update: added powermenu, minor bug fixes
This commit is contained in:
@@ -77,13 +77,13 @@ Detailed information and dependencies
|
||||
|
||||
## Showcase
|
||||
|
||||
|vsc & ncmpcpp & cava|rofi & dunst|
|
||||
|neofetch|vsc & ncmpcpp & cava|
|
||||
|-|-|
|
||||
|||
|
||||
|nemo & nvim & ranger|-|
|
||||
|||
|
||||
|-|i3lock-color|
|
||||
|||
|
||||
|||
|
||||
|rofi & dunst|nemo & nvim & ranger|
|
||||
|||
|
||||
|i3lock-color|sddm|
|
||||
|||
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
+2
-1
@@ -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
|
||||
@@ -290,4 +291,4 @@ mode "$mode_gaps_outer" {
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ window {
|
||||
border: 2px;
|
||||
border-color: @br;
|
||||
border-radius: 20px;
|
||||
height: 32%;
|
||||
height: 28%;
|
||||
width: 25%;
|
||||
location: center;
|
||||
x-offset: 0;
|
||||
|
||||
+2
-2
@@ -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."
|
||||
|
||||
@@ -167,4 +167,4 @@ do
|
||||
13) install_emoji_fonts;;
|
||||
14) install_sddm;;
|
||||
esac
|
||||
done
|
||||
done
|
||||
|
||||
+1
-1
@@ -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 \
|
||||
|
||||
Executable
+48
@@ -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 |
Reference in New Issue
Block a user