summaryrefslogtreecommitdiff
path: root/src/etc/stackrpms-thinkpad-p50s
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/stackrpms-thinkpad-p50s')
-rw-r--r--src/etc/stackrpms-thinkpad-p50s/Xmodmap20
-rw-r--r--src/etc/stackrpms-thinkpad-p50s/fluxbox.keys206
-rw-r--r--src/etc/stackrpms-thinkpad-p50s/fluxbox.startup92
3 files changed, 0 insertions, 318 deletions
diff --git a/src/etc/stackrpms-thinkpad-p50s/Xmodmap b/src/etc/stackrpms-thinkpad-p50s/Xmodmap
deleted file mode 100644
index 8d9cee6..0000000
--- a/src/etc/stackrpms-thinkpad-p50s/Xmodmap
+++ /dev/null
@@ -1,20 +0,0 @@
-! File: /etc/stackrpms-thinkpad-p50s/Xmodmap
-! Location: stackrpms-thinkpad-p50s package
-! Author: bgstack15
-! SPDX-License-Identifier: GPL-3.0
-! Startdate: 2019-12-26
-! Title: Common Xmodmap for Thinkpad P50s platform
-! Package: stackrpms-thinkpad-p50s
-! Purpose: custom Xmodmap for Thinkpad P50s
-! History:
-! 2022-11-03 adapted for package
-! Usage:
-! in ~/.fluxbox/startup (possibly symlinked to /etc/stackrpms-thinkpad-p50s/fluxbox.startup), run `xmodmap /etc/stackrpms-thinkpad-p50s/Xmodmap`
-! Reference:
-! xev
-! Improve:
-! Documentation:
-! last modified: 2022-11-03-5 14:36
-
-! turn calculator key into context menu key
-keycode 148 = Menu
diff --git a/src/etc/stackrpms-thinkpad-p50s/fluxbox.keys b/src/etc/stackrpms-thinkpad-p50s/fluxbox.keys
deleted file mode 100644
index 2ab169f..0000000
--- a/src/etc/stackrpms-thinkpad-p50s/fluxbox.keys
+++ /dev/null
@@ -1,206 +0,0 @@
-# File: /etc/stackrpms-thinkpad-p50s/fluxbox.keys
-# Location: stackrpms-thinkpad-p50s package
-# Author: bgstack15
-# Startdate: 2019-12-26
-# SPDX-License-Identifier: GPL-3.0
-# Title: Common fluxbox keys for Thinkpad P50s platform
-# Package: stackrpms-thinkpad-p50s
-# Purpose: standardize fluxbox config across systems
-# History:
-# 2019-12-26 started on ltb-018
-# 2022-11-03 adapted for this package
-# 2023-12-12 revised to be identical for stackrpms-thinkpad-p50s and bgconf
-# Usage:
-# symlink your ~/.fluxbox/keys to this file with:
-# ln -sf /etc/stackrpms-thinkpad-p50s/fluxbox.keys ~/.fluxbox/keys
-# Reference:
-# ltb-018:~/.fluxbox/keys
-# Improve:
-# Documentation:
-# last modified: 2023-12-12-3 18:25
-
-# click on the desktop to get menus
-OnDesktop Mouse1 :HideMenus
-OnDesktop Mouse2 :WorkspaceMenu
-OnDesktop Mouse3 :RootMenu
-
-Ctrl Shift Escape :RootMenu
-
-# scroll on the desktop to change workspaces
-OnDesktop Mouse4 :PrevWorkspace
-OnDesktop Mouse5 :NextWorkspace
-
-# scroll on the toolbar to change current window
-# disabling these allows the alsa icon to work
-#OnToolbar Mouse4 :PrevWindow {static groups} (iconhidden=no)
-#OnToolbar Mouse5 :NextWindow {static groups} (iconhidden=no)
-
-# alt + left/right click to move/resize a window
-#OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}
-OnWindow Mod1 Mouse1 :If {And {Matches (Fullscreen!=yes)} {Matches (@_NET_WM_STATE!=.*_FULLSCREEN.*)} } {MacroCmd {Raise} {Focus} {StartMoving}}
-OnWindowBorder Move1 :StartMoving
-
-#OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner}
-OnWindow Mod1 Mouse3 :If {And {Matches (Fullscreen!=yes)} {Matches (@_NET_WM_STATE!=.*_FULLSCREEN.*)} } {MacroCmd {Raise} {Focus} {StartResizing NearestCorner}}
-OnLeftGrip Move1 :StartResizing bottomleft
-OnRightGrip Move1 :StartResizing bottomright
-
-# alt + middle click to lower the window
-OnWindow Mod1 Mouse2 :Lower
-
-# control-click a window's titlebar and drag to attach windows
-OnTitlebar Ctrl Mouse1 :StartTabbing
-
-# double click on the titlebar to maximize instead of shade
-OnTitlebar Double Mouse1 :Maximize
-
-# left click on the titlebar to move the window
-OnTitlebar Mouse1 :MacroCmd {Raise} {Focus} {ActivateTab}
-OnTitlebar Move1 :StartMoving
-
-# middle click on the titlebar to lower
-#OnTitlebar Mouse2 :Lower
-
-# right click on the titlebar for a menu of options
-OnTitlebar Mouse3 :WindowMenu
-
-# alt-tab
-# handled by application alttab from startup
-#Mod1 Tab :NextWindow {groups} (workspace=[current])
-#Mod1 Shift Tab :PrevWindow {groups} (workspace=[current])
-
-# cycle through tabs in the current window
-Mod4 Tab :NextTab
-Mod4 Shift Tab :PrevTab
-
-# go to a specific tab in the current window
-Mod4 1 :Tab 1
-Mod4 2 :Tab 2
-Mod4 3 :Tab 3
-Mod4 4 :Tab 4
-Mod4 5 :Tab 5
-Mod4 6 :Tab 6
-Mod4 7 :Tab 7
-Mod4 8 :Tab 8
-Mod4 9 :Tab 9
-
-# open a terminal
-Mod1 F1 :Exec x-terminal-emulator
-Mod1 Shift F1 :Exec xterm
-
-# open a dialog to run programs
-Mod1 F2 :Exec fbrun
-
-# volume settings, using common keycodes
-# if these don't work, use xev to find out your real keycodes
-# alsa only, volume control
-#123 :Exec amixer sset Master,0 1+
-#122 :Exec amixer sset Master,0 1-
-#121 :Exec amixer sset Master,0 toggle
-# pulseaudio, volume control
-121 :Exec pulsemixer-notification toggle
-122 :Exec pulsemixer-notification down
-123 :Exec pulsemixer-notification up
-# alsa or pulseaudio, mute mic, on Thinkpad P50s
-# use Fn+F10 magnifying glass because Fn+F4 mic-mute is blocked by firmware?
-225 :Exec amixer sset Capture,0 toggle
-
-# screen brightness for Thinkpad P50s
-232 :Exec /usr/bin/hwset-thinkpad-p50s bright down 85
-233 :Exec /usr/bin/hwset-thinkpad-p50s bright up 85
-Ctrl 232 :Exec /usr/bin/hwset-thinkpad-p50s bright set min
-Ctrl 233 :Exec /usr/bin/hwset-thinkpad-p50s bright set max
-Ctrl 235 :Exec /usr/bin/hwset-thinkpad-p50s bright set safe
-
-# current window commands
-Mod1 F4 :Close
-Mod1 F5 :Kill
-Mod1 F9 :Minimize
-Mod1 F10 :Maximize
-Mod1 F11 :Fullscreen
-
-# open the window menu
-Mod1 space :WindowMenu
-
-# disabled because this is dangerous
-# exit fluxbox
-#Ctrl Mod1 Delete :Exit
-
-# change to previous/next workspace
-Ctrl Mod1 Left :PrevWorkspace
-Ctrl Mod1 Right :NextWorkspace
-
-# send the current window to previous/next workspace
-#Mod4 Left :SendToPrevWorkspace
-#Mod4 Right :SendToNextWorkspace
-
-# send the current window and follow it to previous/next workspace
-#Ctrl Mod4 Left :TakeToPrevWorkspace
-#Ctrl Mod4 Right :TakeToNextWorkspace
-
-# clipboard manager menu
-Ctrl Shift z :ExecCommand copyq menu
-
-# bgstack15 custom
-# adapted from https://abchk1234.wordpress.com/2015/02/01/native-window-snapping-window-tiling-with-fluxbox-openbox-and-xfwm4-xfce/
-# Up 111
-# Left 113 Right 114
-# Down 116
-Mod4 111 :MacroCmd {ResizeTo 100% 50%} {MoveTo 00 00 Up}
-Mod4 113 :MacroCmd {ResizeTo 50% 100%} {MoveTo 00 00 Left}
-Mod4 114 :MacroCmd {ResizeTo 50% 100%} {MoveTo 00 00 Right}
-Mod4 116 :MacroCmd {ResizeTo 100% 50%} {MoveTo 00 00 Bottom}
-
-Mod4 Mod1 111 :MacroCmd {ResizeTo 50% 50%} {MoveTo 50% 00% Up}
-Mod4 Mod1 113 :MacroCmd {ResizeTo 50% 50%} {MoveTo 00% 00% Up}
-Mod4 Mod1 114 :MacroCmd {ResizeTo 50% 50%} {MoveTo 50% 50% Up}
-Mod4 Mod1 116 :MacroCmd {ResizeTo 50% 50%} {MoveTo 00% 50% Up}
-Mod4 Return :ToggleCmd {Maximize} {Restore}
-
-# move to next monitor
-#Mod4 Shift 113 :ExecCommand move-to-next-monitor --reverse
-#Mod4 Shift 114 :ExecCommand move-to-next-monitor
-Mod4 Shift 113 :MacroCmd {SendToPrevHead}
-Mod4 Shift 114 :MacroCmd {SendToNextHead}
-
-107 :Exec scrot -z -e 'mv $f ~/Pictures'
-Mod1 107 :Exec scrot -ubz -e 'mv $f ~/Pictures'
-Ctrl 107 :Exec sleep 0.08 ; scrot -s -f -l 'style=dash,width=1' -z -e 'mv $f ~/Pictures'
-Mod4 Ctrl V :Exec veracrypt
-Mod4 Ctrl C :Exec FreeFileSync
-Mod4 D :ShowDesktop
-Mod4 E :Exec xfe
-Mod4 L :Exec xscreensaver-command -lock
-Mod4 O :Exec scite
-Mod4 R :Exec fbrun
-Mod4 Shift C :Exec x-terminal-emulator
-# librewolf used to use apulse
-Mod4 Shift F :Exec librewolf
-#Mod4 Shift F :Exec newmoon
-Mod4 Shift G :Exec firefox
-Mod4 Shift H :Exec waterfox
-Mod4 Shift I :Exec irfanview
-Mod4 Shift L :Exec keepass2
-Mod4 Shift V :Exec vlc
-Mod4 Shift W :Exec libreoffice --writer
-Mod4 Shift X :Exec libreoffice --calc
-
-Ctrl Mod4 R :Reconfigure
-Ctrl Shift Mod4 R :Restart
-
-#Ctrl Shift Mod4 X :Exec bin/move-to-end-of-taskbar.sh
-Ctrl Shift Mod4 X :Exec xdotool getactivewindow windowunmap windowmap
-
-# Numlock on
-# 16 17 18
-# 13 14 15
-# 10 11 12
-Mod4 Mod1 87 :MacroCmd {ResizeTo 33% 33%} {MoveTo 00% 67% Up}
-Mod4 Mod1 88 :MacroCmd {ResizeTo 34% 33%} {MoveTo 33% 67% Up}
-Mod4 Mod1 89 :MacroCmd {ResizeTo 33% 33%} {MoveTo 67% 67% Up}
-Mod4 Mod1 83 :MacroCmd {ResizeTo 33% 34%} {MoveTo 00% 33% Up}
-Mod4 Mod1 84 :MacroCmd {ResizeTo 34% 34%} {MoveTo 33% 33% Up}
-Mod4 Mod1 85 :MacroCmd {ResizeTo 33% 34%} {MoveTo 67% 33% Up}
-Mod4 Mod1 79 :MacroCmd {ResizeTo 33% 33%} {MoveTo 00% 00% Up}
-Mod4 Mod1 80 :MacroCmd {ResizeTo 34% 33%} {MoveTo 33% 00% Up}
-Mod4 Mod1 81 :MacroCmd {ResizeTo 33% 33%} {MoveTo 67% 00% Up}
diff --git a/src/etc/stackrpms-thinkpad-p50s/fluxbox.startup b/src/etc/stackrpms-thinkpad-p50s/fluxbox.startup
deleted file mode 100644
index ca38336..0000000
--- a/src/etc/stackrpms-thinkpad-p50s/fluxbox.startup
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/bin/sh
-# File: /etc/stackrpms-thinkpad-p50s/fluxbox.startup
-# Location: stackrpms-thinkpad-p50s package
-# Author: bgstack15
-# Startdate: 2019-12-26
-# SPDX-License-Identifier: GPL-3.0
-# Title: Common fluxbox startup file for Thinkpad P50s platform
-# Package: stackrpms-thinkpad-p50s
-# Purpose: standardize fluxbox config across systems
-# History:
-# 2019-12-26 started on ltb-018 from fluxbox startup example
-# 2022-11-03 adapted for this package
-# 2023-12-12 revised to be consistent across bgconf and stackrpms-thinkpad-p50s
-# Usage:
-# symlink your ~/.fluxbox/startup to this file with:
-# ln -sf /etc/stackrpms-thinkpad-p50s/fluxbox.startup ~/.fluxbox/startup
-# Reference:
-# ltb-018:~/.fluxbox/startup
-# Improve:
-# Documentation:
-# last modified: 2022-11-03-5 14:28
-
-# Change your keymap:
-test -f /etc/stackrpms-thinkpad-p50s/Xmodmap && xmodmap /etc/stackrpms-thinkpad-p50s/Xmodmap
-test -f .Xmodmap && xmodmap ".Xmodmap"
-
-echo "${PATH}" | grep -q "${HOME}/bin" 1>/dev/null 2>&1 && export PATH="${HOME}/bin:${PATH}"
-
-# for vlc on hidpi screens
-export QT_AUTO_SCREEN_SCALE_FACTOR=0
-export QT_SCREEN_SCALE_FACTORS=1
-
-# Applications you want to run with fluxbox.
-which fbautostart > /dev/null
-if [ $? -eq 0 ]; then
- fbautostart
-fi
-
-# for desktop icons. Because I use xfe for a file manager, spacefm would only be installed for xdg desktop icons
-spacefm --desktop &
-
-start-pulseaudio-x11 &
-volumeicon &
-copyq &
-xscreensaver -nosplash &
-# This might be redundant if /usr/share/services/com.example.Notifications.service but will not hurt.
-/usr/lib/notification-daemon/notification-daemon &
-telegram-desktop &
-alttab -w 1 -s 1 -theme Numix-Circle &
-# It is expected to only use one of: cbatticon powerkit
-cbatticon -i symbolic &
-DESKTOP_SESSION=gnome powerkit &
-sudo mount -a &
-# Obviously should not be installed on physical systems
-spice-vdagent 1>/dev/null 2>&1 &
-# Fallback:
-#xdgmenumaker -f fluxbox -i > ~/.fluxbox/xdg-menu &
-xdgmenumaker-user fluxbox &
-keyboard-leds-trayicons &
-xscreensaver-watch &
-logout-manager-trayicon &
-# probably only one of these will be used:
-wicd-client -t &
-connman-gtk &
-myautomountd &
-myautomount-trayicon &
-netmounts-trayicon &
-# vpn-trayicon is only useful on demand.
-#vpn-trayicon &
-# If fbxkb is installed, set up us(qwerty) and us(dvorak)
-which fbxkb 1>/dev/null 2>&1 && test -f /etc/use-fbxkb && {
- setxkbmap -option grp:switch,grp:shifts_toggle 'us,us(dvorak)' &
- fbxkb &
-}
-KRB5_AUTH_DIALOG_DEBUG="no-persistence,no-app-menu,no-header-bar" gtk3-nocsd krb5-auth-dialog &
-/usr/bin/printf "" | sudo tee /var/lib/dbus/machine-id 1>/dev/null 2>&1 &
-
-# set wallpaper
-# use by symlinking /etc/wallpaper to whatever you want
-fbsetbg -a /etc/wallpaper
-
-# Mask weird button presses 8, 9 on scroll-up, scroll-down
-xinput set-button-map "$( xinput | awk -F'[=]' '/ouse/{print $2}' | awk '{print $1}' | head -n1 )" 1 2 3 4 5 6 7 0 0 &
-
-# Make this extensible so I do not have to customize ~/.fluxbox/startup on each system
-test -f "${HOME}/.fluxbox/startup-local" && . "${HOME}/.fluxbox/startup-local" &
-
-# And last but not least we start fluxbox.
-# Because it is the last app you have to run it with ''exec'' before it.
-exec fluxbox
-# or if you want to keep a log:
-# exec fluxbox -log ~/fluxbox/log
bgstack15