Last active
September 13, 2022 21:40
-
-
Save Falieson/090af79f734371e64daeb75f989756a3 to your computer and use it in GitHub Desktop.
Fluxbox Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## KEYS | |
# Mod1 alt | |
# Mod4 win | |
# Control ctrl | |
# exit fluxbox | |
Control Mod1 Delete :Exit | |
# click on the desktop to get menus | |
OnDesktop Mouse1 :HideMenus | |
OnDesktop Mouse2 :WorkspaceMenu | |
OnDesktop Mouse3 :RootMenu | |
## APPS | |
# open a terminal | |
OnDesktop Mod1 F1 :Exec tilix | |
Mod4 space :Exec tilix -q | |
# open a dialog to run programs | |
OnDesktop Mod1 F2 :Exec albert toggle | |
Mod1 space :Exec albert toggle | |
# open chrome | |
OnDesktop Mod1 F3 :Exec google-chrome-stable | |
# open spotify | |
OnDesktop Mod1 F4 :Exec spotify | |
# open overview | |
# Mod4 Up :Exec qoverview | |
# volume settings, using common keycodes | |
# if these don't work, use xev to find out your real keycodes | |
F1 :Exec amixer sset Master,0 toggle # 160 | |
F2 :Exec amixer sset Master,0 5- # 174 | |
F3 :Exec amixer sset Master,0 5+ # 176 | |
F1 :Exec aumix -v 0 # XF86AudioMute | |
F2 :Exec aumix -v-10 # XF86AudioLowerVolume | |
F3 :Exec aumix -v+10 # XF86AudioRaiseVolume | |
# spotify player settings, using common keycodes | |
# https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html | |
F6 :Exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause # XF86AudioPlay | |
# F? :Exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop | |
F5 :Exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous # XF86AudioPrev | |
F7 :Exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next # XF86AudioNext | |
## WORKSPACES | |
# scroll on the desktop to change workspaces | |
OnDesktop Mouse4 :PrevWorkspace | |
OnDesktop Mouse5 :NextWorkspace | |
# scroll on the toolbar to change current window | |
OnToolbar Mouse4 :PrevWindow {static groups} (iconhidden=no) | |
OnToolbar Mouse5 :NextWindow {static groups} (iconhidden=no) | |
# change to previous/next workspace | |
Control Mod1 Left :PrevWorkspace | |
Control Mod1 Right :NextWorkspace | |
# change to a specific workspace | |
Control Mod1 1 :Workspace 1 | |
Control Mod1 2 :Workspace 2 | |
Control Mod1 3 :Workspace 3 | |
Control Mod1 4 :Workspace 4 | |
Control Mod1 5 :Workspace 5 | |
Control Mod1 6 :Workspace 6 | |
Control Mod1 7 :Workspace 7 | |
Control Mod1 8 :Workspace 8 | |
Control Mod1 9 :Workspace 9 | |
Control Mod1 0 :Workspace 10 | |
# send the current window and follow it to previous/next workspace | |
Control Mod1 Left :TakeToPrevWorkspace # Ctrl+Alt Left | |
Control Mod1 Right :TakeToNextWorkspace # Ctrl+Alt Right | |
# send the current window and change to a specific workspace | |
Control Mod1 1 :TakeToWorkspace 1 # Ctrl+Alt 1 | |
Control Mod1 2 :TakeToWorkspace 2 # Ctrl+Alt 2 | |
Control Mod1 3 :TakeToWorkspace 3 # Ctrl+Alt 3 | |
Control Mod1 4 :TakeToWorkspace 4 # Ctrl+Alt 4 | |
Control Mod1 5 :TakeToWorkspace 5 # Ctrl+Alt 5 | |
Control Mod1 6 :TakeToWorkspace 6 # Ctrl+Alt 6 | |
Control Mod1 7 :TakeToWorkspace 7 # Ctrl+Alt 7 | |
Control Mod1 8 :TakeToWorkspace 8 # Ctrl+Alt 8 | |
Control Mod1 9 :TakeToWorkspace 9 # Ctrl+Alt 9 | |
Control Mod1 0 :TakeToWorkspace 10 # Ctrl+Alt 0 | |
# send the current window to previous/next workspace | |
Control Mod1 Left :SendToPrevWorkspace | |
Control Mod1 Right :SendToNextWorkspace | |
# send the current window to a specific workspace | |
# Mod1 1 :SendToWorkspace 1 | |
# Mod1 2 :SendToWorkspace 2 | |
# Mod1 3 :SendToWorkspace 3 | |
# Mod1 4 :SendToWorkspace 4 | |
# Mod1 5 :SendToWorkspace 5 | |
# Mod1 6 :SendToWorkspace 6 | |
# Mod1 7 :SendToWorkspace 7 | |
# Mod1 8 :SendToWorkspace 8 | |
# Mod1 9 :SendToWorkspace 9 | |
# Mod1 0 :SendToWorkspace 10 | |
## WINDOW | |
# current window commands | |
Mod1 Mod4 F :Maximize # alt + ctrl + f | |
Mod4 F1 :Minimize # win + F1 | |
Mod4 F2 :Fullscreen | |
Mod4 F3 :Kill | |
Mod4 F4 :Close | |
# open the window menu | |
# Mod1 space :WindowMenu | |
# alt + middle click to lower the window | |
OnWindow Mod1 Mouse2 :Lower | |
# control-click a window's titlebar and drag to attach windows | |
OnTitlebar Control Mouse1 :StartTabbing | |
# double click on the titlebar to shade | |
OnTitlebar Double Mouse1 :Shade | |
# 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 + left/right click to move/resize a window | |
OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving} | |
OnWindowBorder Move1 :StartMoving | |
OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner} | |
OnLeftGrip Move1 :StartResizing bottomleft | |
OnRightGrip Move1 :StartResizing bottomright | |
# 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 | |
# cycle through tabs in the current window | |
Mod4 Tab :NextTab | |
Mod4 Shift Tab :PrevTab | |
# alt-tab | |
Mod1 Tab :NextWindow {groups} (workspace=[current]) | |
Mod1 Shift Tab :PrevWindow {groups} (workspace=[current]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# fluxbox startup-script: | |
# fbsetbg -C /usr/share/fluxbox/splash.jpg | |
# Change your keymap: | |
xmodmap "/home/falieson/.Xmodmap" | |
# Applications you want to run with fluxbox. | |
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END. | |
unclutter -idle 1 & | |
fbsetbg -l & # Reload last wallpaper | |
~/.screenlayout/default.sh & # Set Display Layout | |
xset mouse 10 2 & # MOUSE SENSITIVITY | |
gkrellm & | |
albert & | |
polychromatic-tray-applet & | |
slack & | |
volti & | |
spotify & | |
quicktile -d & | |
# Debian-local change: | |
# - fbautostart has been added with a quick hack to check to see if it | |
# exists. If it does, we'll start it up by default. | |
which fbautostart > /dev/null | |
if [ $? -eq 0 ]; then | |
fbautostart | |
fi | |
# 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 "/home/falieson/.fluxbox/log" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment