Dev
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# _ _ _
|
||||
# | |__ _ _ _ __ _ __| | __ _ _ __ __| |
|
||||
# | '_ \| | | | '_ \| '__| |/ _` | '_ \ / _` |
|
||||
# _| | | | |_| | |_) | | | | (_| | | | | (_| |
|
||||
# (_)_| |_|\__, | .__/|_| |_|\__,_|_| |_|\__,_|
|
||||
# |___/|_|
|
||||
#
|
||||
# -----------------------------------------------------
|
||||
# Overwrite hyprland configuration with hyprctl
|
||||
# Individual scripts and settings possible
|
||||
# Copy this file into your home directory
|
||||
# -----------------------------------------------------
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Keyboard Layout
|
||||
# -----------------------------------------------------
|
||||
hyprctl keyword input:kb_layout de # to de
|
||||
# hyprctl keyword input:kb_layout us # to us
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Monitor Setup
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
# -----------------------------------------------------
|
||||
hyprctl keyword monitor ,2560x1440@120,auto,1
|
||||
# hyprctl keyword monitor ,preferred,auto,1
|
||||
|
||||
notify-send ".hyprland.sh exists" "hyprctl commands executed"
|
||||
@@ -2,13 +2,23 @@
|
||||
# Autostart
|
||||
# -----------------------------------------------------
|
||||
|
||||
exec-once = swww init
|
||||
# exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
# exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
# Load Dunst Notification Manager
|
||||
exec-once = dunst
|
||||
exec-once = ~/dotfiles/scripts/lockscreentime.sh
|
||||
exec-once = ~/dotfiles/scripts/updatewal-swww.sh
|
||||
exec-once = ~/dotfiles/gtk/gtk.sh
|
||||
|
||||
# Set Cursor Theme
|
||||
exec-once = hyprctl setcursor Bibata-Modern-Ice 24
|
||||
exec-once = ~/dotfiles/waybar/launch.sh
|
||||
|
||||
# Load GTK settings
|
||||
exec-once = ~/dotfiles/gtk/gtk.sh
|
||||
|
||||
# Load swayidle and define the lock screen time
|
||||
exec-once = ~/dotfiles/hypr/scripts/lockscreentime.sh
|
||||
|
||||
# Load cliphist history
|
||||
exec-once = wl-paste --watch cliphist store
|
||||
|
||||
# Initialize swww
|
||||
exec-once = swww query || swww init
|
||||
|
||||
# Load last wallpaper and waybar with pywal colors
|
||||
exec-once = ~/dotfiles/hypr/scripts/wallpaper.sh init
|
||||
|
||||
@@ -9,6 +9,7 @@ bind = $mainMod, Q, killactive
|
||||
bind = $mainMod, F, fullscreen
|
||||
bind = $mainMod, E, exec, dolphin
|
||||
bind = $mainMod, T, togglefloating
|
||||
bind = $mainMod SHIFT, T, exec, ~/dotfiles/hypr/scripts/toggleallfloat.sh
|
||||
bind = $mainMod, B, exec, chromium
|
||||
bind = $mainMod CTRL, B, exec, brave
|
||||
bind = $mainMod, J, togglesplit
|
||||
@@ -17,12 +18,14 @@ bind = $mainMod, right, movefocus, r
|
||||
bind = $mainMod, up, movefocus, u
|
||||
bind = $mainMod, down, movefocus, d
|
||||
|
||||
bind = $mainMod, PRINT, exec, ~/dotfiles/scripts/grim.sh
|
||||
bind = $mainMod, PRINT, exec, ~/dotfiles/hypr/scripts/screenshot.sh
|
||||
bind = $mainMod CTRL, Q, exec, wlogout
|
||||
bind = $mainMod SHIFT, W, exec, ~/dotfiles/scripts/updatewal-swww.sh
|
||||
bind = $mainMod CTRL, W, exec, ~/dotfiles/scripts/wallpaper-swww.sh
|
||||
bind = $mainMod CTRL, RETURN, exec, ~/dotfiles/scripts/applauncher.sh
|
||||
bind = $mainMod SHIFT, W, exec, ~/dotfiles/hypr/scripts/wallpaper.sh
|
||||
bind = $mainMod CTRL, W, exec, ~/dotfiles/hypr/scripts/wallpaper.sh select
|
||||
bind = $mainMod CTRL, RETURN, exec, rofi -show drun
|
||||
bind = $mainMod CTRL, H, exec, ~/dotfiles/hypr/scripts/keybindings.sh
|
||||
bind = $mainMod SHIFT, B, exec, ~/dotfiles/waybar/launch.sh
|
||||
bind = $mainMod SHIFT, R, exec, ~/dotfiles/hypr/scripts/loadconfig.sh
|
||||
bind = $mainMod CTRL, F, exec, ~/dotfiles/scripts/filemanager.sh
|
||||
bind = $mainMod CTRL, C, exec, ~/dotfiles/scripts/cliphist.sh
|
||||
bind = $mainMod CTRL, T, exec, ~/dotfiles/waybar/themeswitcher.sh
|
||||
@@ -60,8 +63,8 @@ bind = $mainMod SHIFT, left, resizeactive, -100 0
|
||||
bind = $mainMod SHIFT, up, resizeactive, 0 -100
|
||||
bind = $mainMod SHIFT, down, resizeactive, 0 100
|
||||
|
||||
binde = , XF86MonBrightnessUp, exec, brightnessctl set 100%
|
||||
binde = , XF86MonBrightnessDown, exec, brightnessctl set 70%
|
||||
binde = , XF86MonBrightnessUp, exec, brightnessctl -q s +20%
|
||||
binde = , XF86MonBrightnessDown, exec, brightnessctl -q s 20%-
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Passthrough SUPER KEY to Virtual Machine
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
# -----------------------------------------------------
|
||||
# Keyboard layout and mouse
|
||||
# -----------------------------------------------------
|
||||
|
||||
# Keyboard Layout
|
||||
# -----------------------------------------------------
|
||||
input {
|
||||
kb_layout = $keyboardlayout
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
kb_layout = de
|
||||
# kb_layout = us
|
||||
follow_mouse = 1
|
||||
touchpad {
|
||||
natural_scroll = false
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# -----------------------------------------------------
|
||||
# Monitor Setup
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
# -----------------------------------------------------
|
||||
|
||||
monitor=,preferred,auto,1
|
||||
# monitor=,1920x1080,auto,1
|
||||
# monitor=,2560x1440@120,auto,1
|
||||
+3
-12
@@ -9,18 +9,10 @@
|
||||
# -----------------------------------------------------
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Keyboard Layout
|
||||
# Keyboard & Monitor
|
||||
# -----------------------------------------------------
|
||||
# $keyboardlayout=de
|
||||
$keyboardlayout=us
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Monitor Setup
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
# -----------------------------------------------------
|
||||
monitor=,preferred,auto,1
|
||||
# monitor=,2560x1440@120,auto,1
|
||||
# monitor=,1920x1080,auto,1
|
||||
source = ~/dotfiles/hypr/conf/keyboard.conf
|
||||
source = ~/dotfiles/hypr/conf/monitor.conf
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Autostart & Environment
|
||||
@@ -36,7 +28,6 @@ source = ~/.cache/wal/colors-hyprland.conf
|
||||
# -----------------------------------------------------
|
||||
# Load configuration files
|
||||
# -----------------------------------------------------
|
||||
source = ~/dotfiles/hypr/conf/keyboard.conf
|
||||
source = ~/dotfiles/hypr/conf/window.conf
|
||||
source = ~/dotfiles/hypr/conf/decoration.conf
|
||||
source = ~/dotfiles/hypr/conf/layouts.conf
|
||||
|
||||
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
clear
|
||||
echo "Hyprland recommends the start with the tty login."
|
||||
echo "You can deactivate the current display manager (if exists)."
|
||||
echo ""
|
||||
echo "-> Do you really want to deactivate the display manager?"
|
||||
while true; do
|
||||
read -p "Do you want to enable the sddm display manager and setup theme? (Yy/Nn): " yn
|
||||
case $yn in
|
||||
[Yy]* )
|
||||
if [ -f /etc/systemd/system/display-manager.service ]; then
|
||||
sudo rm /etc/systemd/system/display-manager.service
|
||||
echo "Current display manager removed."
|
||||
else
|
||||
echo "No active display manager found."
|
||||
fi
|
||||
break;;
|
||||
[Nn]* )
|
||||
exit
|
||||
break;;
|
||||
* ) echo "Please answer yes or no.";;
|
||||
esac
|
||||
done
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# _ _ _ _ _
|
||||
# | | _____ _ _| |__ (_)_ __ __| (_)_ __ __ _ ___
|
||||
# | |/ / _ \ | | | '_ \| | '_ \ / _` | | '_ \ / _` / __|
|
||||
# | < __/ |_| | |_) | | | | | (_| | | | | | (_| \__ \
|
||||
# |_|\_\___|\__, |_.__/|_|_| |_|\__,_|_|_| |_|\__, |___/
|
||||
# |___/ |___/
|
||||
# by Stephan Raabe (2023)
|
||||
# -----------------------------------------------------
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Define keybindings.conf location
|
||||
# -----------------------------------------------------
|
||||
config_file=~/dotfiles/hypr/conf/keybindings.conf
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Parse keybindings
|
||||
# -----------------------------------------------------
|
||||
keybinds=$(grep -oP '(?<=bind = ).*' $config_file)
|
||||
keybinds=$(echo "$keybinds" | sed 's/$mainMod/SUPER/g'| sed 's/,\([^,]*\)$/ = \1/' | sed 's/, exec//g' | sed 's/^,//g')
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Show keybindings in rofi
|
||||
# -----------------------------------------------------
|
||||
rofi -dmenu -p "Keybinds" -config ~/dotfiles/rofi/config-compact.rasi <<< "$keybinds"
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
if [ -f ~/.hyprland.sh ]; then
|
||||
sleep 1
|
||||
~/.hyprland.sh
|
||||
fi
|
||||
@@ -0,0 +1,20 @@
|
||||
#/bin/sh
|
||||
# ___ _ _ _ _
|
||||
# |_ _|__| | | ___| |_(_)_ __ ___ ___
|
||||
# | |/ _` | |/ _ \ __| | '_ ` _ \ / _ \
|
||||
# | | (_| | | __/ |_| | | | | | | __/
|
||||
# |___\__,_|_|\___|\__|_|_| |_| |_|\___|
|
||||
#
|
||||
#
|
||||
# by Stephan Raabe (2023)
|
||||
# -----------------------------------------------------
|
||||
|
||||
timeswaylock=600
|
||||
timeoff=660
|
||||
|
||||
if [ -f "/usr/bin/swayidle" ]; then
|
||||
echo "swayidle is installed."
|
||||
swayidle -w timeout $timeswaylock 'swaylock -f' timeout $timeoff 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
|
||||
else
|
||||
echo "swayidle not installed."
|
||||
fi;
|
||||
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
# ____ _ _
|
||||
# / ___| ___ _ __ ___ ___ _ __ ___| |__ ___ | |_
|
||||
# \___ \ / __| '__/ _ \/ _ \ '_ \/ __| '_ \ / _ \| __|
|
||||
# ___) | (__| | | __/ __/ | | \__ \ | | | (_) | |_
|
||||
# |____/ \___|_| \___|\___|_| |_|___/_| |_|\___/ \__|
|
||||
#
|
||||
#
|
||||
# by Stephan Raabe (2023)
|
||||
# -----------------------------------------------------
|
||||
|
||||
DIR="$HOME/Pictures/screenshots/"
|
||||
NAME="screenshot_$(date +%d%m%Y_%H%M%S).png"
|
||||
|
||||
option2="Selected area"
|
||||
option3="Fullscreen (delay 3 sec)"
|
||||
|
||||
options="$option2\n$option3"
|
||||
|
||||
choice=$(echo -e "$options" | rofi -dmenu -config ~/dotfiles/rofi/config-screenshot.rasi -i -no-show-icons -l 2 -width 30 -p "Take Screenshot")
|
||||
|
||||
case $choice in
|
||||
$option2)
|
||||
grim -g "$(slurp)" - | swappy -f -
|
||||
notify-send "Screenshot created" "Mode: Selected area"
|
||||
;;
|
||||
$option3)
|
||||
sleep 3
|
||||
grim - | swappy -f -
|
||||
notify-send "Screenshot created" "Mode: Fullscreen"
|
||||
;;
|
||||
esac
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
# _ _ _ __ _ _
|
||||
# / \ | | |/ _| | ___ __ _| |_
|
||||
# / _ \ | | | |_| |/ _ \ / _` | __|
|
||||
# / ___ \| | | _| | (_) | (_| | |_
|
||||
# /_/ \_\_|_|_| |_|\___/ \__,_|\__|
|
||||
#
|
||||
# by Stephan Raabe (2023)
|
||||
# -----------------------------------------------------
|
||||
|
||||
hyprctl dispatch workspaceopt allfloat
|
||||
Executable
+81
@@ -0,0 +1,81 @@
|
||||
#!/bin/bash
|
||||
# _ _
|
||||
# __ ____ _| | |_ __ __ _ _ __ ___ _ __
|
||||
# \ \ /\ / / _` | | | '_ \ / _` | '_ \ / _ \ '__|
|
||||
# \ V V / (_| | | | |_) | (_| | |_) | __/ |
|
||||
# \_/\_/ \__,_|_|_| .__/ \__,_| .__/ \___|_|
|
||||
# |_| |_|
|
||||
#
|
||||
# by Stephan Raabe (2023)
|
||||
# -----------------------------------------------------
|
||||
|
||||
case $1 in
|
||||
|
||||
# Load wallpaper from .cache of last session
|
||||
"init")
|
||||
if [ -f ~/.cache/current_wallpaper.jpg ]; then
|
||||
wal -q -i ~/.cache/current_wallpaper.jpg
|
||||
else
|
||||
wal -q -i ~/wallpaper/
|
||||
fi
|
||||
;;
|
||||
|
||||
# Select wallpaper with rofi
|
||||
"select")
|
||||
selected=$(ls -1 ~/wallpaper | grep "jpg" | rofi -dmenu -config ~/dotfiles/rofi/config-wallpaper.rasi)
|
||||
if [ ! "$selected" ]; then
|
||||
echo "No wallpaper selected"
|
||||
exit
|
||||
fi
|
||||
wal -q -i ~/wallpaper/$selected
|
||||
;;
|
||||
|
||||
# Randomly select wallpaper
|
||||
*)
|
||||
wal -q -i ~/wallpaper/
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Load current pywal color scheme
|
||||
# -----------------------------------------------------
|
||||
source "$HOME/.cache/wal/colors.sh"
|
||||
echo "Wallpaper: $wallpaper"
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Copy selected wallpaper into .cache folder
|
||||
# -----------------------------------------------------
|
||||
cp $wallpaper ~/.cache/current_wallpaper.jpg
|
||||
|
||||
# -----------------------------------------------------
|
||||
# get wallpaper iamge name
|
||||
# -----------------------------------------------------
|
||||
newwall=$(echo $wallpaper | sed "s|$HOME/wallpaper/||g")
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Reload waybar with new colors
|
||||
# -----------------------------------------------------
|
||||
~/dotfiles/waybar/launch.sh
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Set the new wallpaper
|
||||
# -----------------------------------------------------
|
||||
transition_type="wipe"
|
||||
# transition_type="outer"
|
||||
# transition_type="random"
|
||||
|
||||
swww img $wallpaper \
|
||||
--transition-bezier .43,1.19,1,.4 \
|
||||
--transition-fps=60 \
|
||||
--transition-type=$transition_type \
|
||||
--transition-duration=0.7 \
|
||||
--transition-pos "$( hyprctl cursorpos )"
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Send notification
|
||||
# -----------------------------------------------------
|
||||
sleep 1
|
||||
notify-send "Colors and Wallpaper updated" "with image $newwall"
|
||||
|
||||
echo "DONE!"
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
export WLR_NO_HARDWARE_CURSORS=1
|
||||
export WLR_RENDERER_ALLOW_SOFTWARE=1
|
||||
exec Hyprland
|
||||
Reference in New Issue
Block a user