dotfiles add
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
# usage: import-gsettings
|
||||
config="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-3.0/settings.ini"
|
||||
if [ ! -f "$config" ]; then exit 1; fi
|
||||
|
||||
gnome_schema="org.gnome.desktop.interface"
|
||||
gtk_theme="$(grep 'gtk-theme-name' "$config" | sed 's/.*\s*=\s*//')"
|
||||
icon_theme="$(grep 'gtk-icon-theme-name' "$config" | sed 's/.*\s*=\s*//')"
|
||||
cursor_theme="$(grep 'gtk-cursor-theme-name' "$config" | sed 's/.*\s*=\s*//')"
|
||||
font_name="$(grep 'gtk-font-name' "$config" | sed 's/.*\s*=\s*//')"
|
||||
gsettings set "$gnome_schema" gtk-theme "$gtk_theme"
|
||||
gsettings set "$gnome_schema" icon-theme "$icon_theme"
|
||||
gsettings set "$gnome_schema" cursor-theme "$cursor_theme"
|
||||
gsettings set "$gnome_schema" font-name "$font_name"
|
||||
Executable
+44
@@ -0,0 +1,44 @@
|
||||
#!/bin/bash
|
||||
|
||||
option0=" Lock"
|
||||
option1=" Poweroff"
|
||||
option2=" Reboot"
|
||||
option3=" Exit"
|
||||
|
||||
option4="Enable Display"
|
||||
option5="Disable Display"
|
||||
|
||||
options="$option0\n$option1\n$option2\n$option3\n$option4\n$option5"
|
||||
|
||||
selected="$(echo -e "$options" | rofi -lines 4 -dmenu -P " Powermenu:")"
|
||||
|
||||
case $selected in
|
||||
$option0)
|
||||
swaylock \
|
||||
--screenshots \
|
||||
--clock \
|
||||
--indicator \
|
||||
--indicator-radius 100 \
|
||||
--indicator-thickness 7 \
|
||||
--effect-blur 6x5 \
|
||||
--effect-vignette 0.5:0.5 \
|
||||
--ring-color 1f2227 \
|
||||
--key-hl-color e06c75 \
|
||||
--line-color 00000000 \
|
||||
--inside-color 00000088 \
|
||||
--separator-color 00000000 \
|
||||
--grace 2 \
|
||||
--fade-in 0.2;;
|
||||
$option1)
|
||||
systemctl poweroff;;
|
||||
$option2)
|
||||
systemctl reboot;;
|
||||
$option3)
|
||||
swaymsg exit;;
|
||||
$option4)
|
||||
swaymsg output eDP-1 enable;;
|
||||
$option5)
|
||||
swaymsg output eDP-1 disable;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
slurp | grim -g - $HOME/$(date +'screenshot_%Y-%m-%d-%H%M%S.png')
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user