Phase 3: screenshot hotkeys, clipboard history, Papirus icon theme
Screenshots (PrintScreen / Shift+PrintScreen): - PrintScreen → full screenshot saved to ~/Pictures via scrot - Shift+PrintScreen → interactive region select via scrot -s - Both send a dunst notification on save - scrot added to packages Clipboard manager: - Replace janky PRIMARY/CLIPBOARD sync loop with parcellite - parcellite provides clipboard history, survives app close, shows a tray icon for browsing past entries - parcellite added to packages Icon theme: - Switch from Adwaita to Papirus-Dark across GTK2, GTK3 settings, and theme index.theme - papirus-icon-theme added to packages Also fix remaining stale sky* references in menu.c (skywallpaper, pkill skywm) and events.c (skylauncher). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
dc209e74fe
commit
98aeafc4f0
5 files changed
+22
-14
No files matched your search
@@ -84,6 +84,9 @@ xfce4-power-manager
|
|||||||
bluez
|
bluez
|
||||||
blueman
|
blueman
|
||||||
xclip
|
xclip
|
||||||
|
scrot
|
||||||
|
parcellite
|
||||||
|
papirus-icon-theme
|
||||||
zip
|
zip
|
||||||
unzip
|
unzip
|
||||||
p7zip
|
p7zip
|
||||||
@@ -283,7 +286,7 @@ cat > "$HOME/.config/gtk-3.0/settings.ini" <<EOF
|
|||||||
[Settings]
|
[Settings]
|
||||||
gtk-theme-name=OrionOS
|
gtk-theme-name=OrionOS
|
||||||
gtk-font-name=Sans 10
|
gtk-font-name=Sans 10
|
||||||
gtk-icon-theme-name=Adwaita
|
gtk-icon-theme-name=Papirus-Dark
|
||||||
gtk-cursor-theme-name=Adwaita
|
gtk-cursor-theme-name=Adwaita
|
||||||
EOF
|
EOF
|
||||||
cat > "$HOME/.gtkrc-2.0" <<EOF
|
cat > "$HOME/.gtkrc-2.0" <<EOF
|
||||||
@@ -307,13 +310,8 @@ nm-applet &
|
|||||||
# Compositor
|
# Compositor
|
||||||
picom --config /etc/orionos/picom.conf &
|
picom --config /etc/orionos/picom.conf &
|
||||||
|
|
||||||
# Clipboard sync: keep PRIMARY and CLIPBOARD selections in sync
|
# Clipboard manager: history survives app close, tray icon for paste menu
|
||||||
if command -v xclip &>/dev/null; then
|
parcellite &
|
||||||
while true; do
|
|
||||||
xclip -o -sel primary 2>/dev/null | xclip -i -sel clipboard 2>/dev/null || true
|
|
||||||
sleep 1
|
|
||||||
done &
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Screen locker daemon (locks after idle timeout)
|
# Screen locker daemon (locks after idle timeout)
|
||||||
xscreensaver -no-splash &
|
xscreensaver -no-splash &
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ style "entry" {
|
|||||||
class "GtkEntry" style "entry"
|
class "GtkEntry" style "entry"
|
||||||
|
|
||||||
gtk-theme-name = "OrionOS"
|
gtk-theme-name = "OrionOS"
|
||||||
gtk-icon-theme-name = "Adwaita"
|
gtk-icon-theme-name = "Papirus-Dark"
|
||||||
gtk-font-name = "Sans 10"
|
gtk-font-name = "Sans 10"
|
||||||
gtk-cursor-theme-name = "DMZ-White"
|
gtk-cursor-theme-name = "DMZ-White"
|
||||||
gtk-button-images = 0
|
gtk-button-images = 0
|
||||||
|
|||||||
@@ -7,6 +7,6 @@ Encoding=UTF-8
|
|||||||
[X-GNOME-Metatheme]
|
[X-GNOME-Metatheme]
|
||||||
GtkTheme=OrionOS
|
GtkTheme=OrionOS
|
||||||
MetacityTheme=OrionOS
|
MetacityTheme=OrionOS
|
||||||
IconTheme=Adwaita
|
IconTheme=Papirus-Dark
|
||||||
CursorTheme=DMZ-White
|
CursorTheme=DMZ-White
|
||||||
ButtonLayout=close:minimize,maximize
|
ButtonLayout=close:minimize,maximize
|
||||||
+11
-1
@@ -286,7 +286,17 @@ void on_key_press(WM *wm, XKeyEvent *e) {
|
|||||||
|
|
||||||
/* Alt+F1 — launcher */
|
/* Alt+F1 — launcher */
|
||||||
if ((e->state & Mod1Mask) && sym == XK_F1)
|
if ((e->state & Mod1Mask) && sym == XK_F1)
|
||||||
system("skylauncher &");
|
system("orionlauncher &");
|
||||||
|
|
||||||
|
/* PrintScreen — full screenshot to ~/Pictures */
|
||||||
|
if (sym == XK_Print) {
|
||||||
|
if (e->state & ShiftMask)
|
||||||
|
system("mkdir -p ~/Pictures && scrot -s ~/Pictures/screenshot_%Y%m%d_%H%M%S.png"
|
||||||
|
" && notify-send 'Screenshot' 'Region saved to ~/Pictures' &");
|
||||||
|
else
|
||||||
|
system("mkdir -p ~/Pictures && scrot ~/Pictures/screenshot_%Y%m%d_%H%M%S.png"
|
||||||
|
" && notify-send 'Screenshot' 'Saved to ~/Pictures' &");
|
||||||
|
}
|
||||||
|
|
||||||
/* Super+Left — snap left */
|
/* Super+Left — snap left */
|
||||||
if ((e->state & Mod4Mask) && sym == XK_Left && wm->focused)
|
if ((e->state & Mod4Mask) && sym == XK_Left && wm->focused)
|
||||||
|
|||||||
+3
-3
@@ -15,10 +15,10 @@ static const MenuItem MENU_ITEMS[] = {
|
|||||||
{ "Volume Control", "pavucontrol &" },
|
{ "Volume Control", "pavucontrol &" },
|
||||||
{ "Display Settings", "arandr &" },
|
{ "Display Settings", "arandr &" },
|
||||||
{ "──────────────────", NULL },
|
{ "──────────────────", NULL },
|
||||||
{ "Change Wallpaper", "skywallpaper --reset &" },
|
{ "Change Wallpaper", "orionwallpaper --reset &" },
|
||||||
{ "──────────────────", NULL },
|
{ "──────────────────", NULL },
|
||||||
{ "Restart OrionWM", "pkill skywm; sleep 0.2; skywm &" },
|
{ "Restart OrionWM", "pkill orionwm; sleep 0.2; orionwm &" },
|
||||||
{ "Quit OrionOS", "pkill skywm" },
|
{ "Quit OrionOS", "pkill orionwm" },
|
||||||
};
|
};
|
||||||
#define MENU_COUNT ((int)(sizeof(MENU_ITEMS) / sizeof(MENU_ITEMS[0])))
|
#define MENU_COUNT ((int)(sizeof(MENU_ITEMS) / sizeof(MENU_ITEMS[0])))
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user