This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
forked from material-shell/material-awesome
-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathapps.lua
138 lines (113 loc) · 4.54 KB
/
apps.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
local filesystem = require('gears.filesystem')
local config_dir = filesystem.get_configuration_dir()
local utils_dir = config_dir .. 'utilities/'
return {
-- The default applications that we will use in keybindings and widgets
default = {
-- Default terminal emulator
terminal = 'env kitty -T="Kitty Terminal"',
-- Default web browser
web_browser = 'env brave-browser',
-- Default text editor
text_editor = 'geany',
-- Default file manager
file_manager = 'nautilus',
-- Default media player
multimedia = 'celluloid',
-- Default game, can be a launcher like steam
game = 'env steam',
-- Default graphics editor
graphics = 'gimp',
-- Default sandbox
sandbox = 'virt-manager',
-- Default IDE
development = 'code',
-- Default network manager
network_manager = 'nm-connection-editor',
-- Default bluetooth manager
bluetooth_manager = 'blueman-manager',
-- Default power manager (leaving this here as example)
power_manager = 'xfce4-power-manager',
-- Default GUI package manager
package_manager = 'synaptic',
-- Default locker
lock = 'i3lock-fancy',
-- Default quake terminal
quake = 'env alacritty --title QuakeTerminal',
-- Default rofi global menu (This is not used in material-awesome as it sometimes froze rofi completely)
-- kept in the config in-case anyone wants to take a crack at supporting it
rofi_global = 'env rofi -dpi ' .. screen.primary.dpi ..
' -show "Global Search" -modi "Global Search":' .. config_dir ..
'/configuration/rofi/global/rofi-spotlight.sh' ..
' -theme ' .. config_dir ..
'/configuration/rofi/global/rofi.rasi',
-- Default app menu
rofi_appmenu = 'env rofi -dpi ' .. screen.primary.dpi ..
' -show drun -theme ' .. config_dir ..
'/configuration/rofi/appmenu/rofi.rasi -run-command "/bin/bash -c -i \'shopt -s expand_aliases; {cmd}\'"',
-- You can add more default applications here
},
-- List of apps to start once on start-up
run_on_start_up = {
-- Compositor
'picom -b --experimental-backends --dbus --config ' ..
config_dir .. '/configuration/picom.conf',
-- network applet for network connections
'nm-applet --indicator > /dev/null',
-- Blueman applet
'blueman-applet > /dev/null',
-- ibus keyboard daemon for keyboard management and emoji typing
'ibus-daemon --xim --daemonize',
-- scream audio sink for windows10 VM audio
'scream-start',
-- turn on numlock
'numlockx on',
-- start kdeconnect-indicator (script to handle awesome restarts)
utils_dir .. 'kdeconnect',
-- Music server
--'mpd',
-- Polkit and keyring (uncomment the one you use)
'/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 & ' ..
--'/usr/bin/lxqt-policykit-agent & ' ..
--'/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1 & ' ..
-- use the gnome keyring with the polkit from the line above (easiest one to integrate)
'eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg)',
-- Load X colors
'xrdb $HOME/.Xresources',
-- Audio equalizer
--'pulseeffects --gapplication-service',
-- Lockscreen timer
[[
xidlehook --not-when-fullscreen --not-when-audio --timer 600 \
"i3lock-fancy" ""
]],
-- Set brightness to 50% on LVDS output because my laptop battery is bad
utils_dir .. 'laptop-brightness set 50',
-- Load users custom xmodmap if they have one
'xmodmap $HOME/.Xmodmap',
-- Spawn "dirty" apps that can linger between sessions
-- It is suggested you copy the contents of awspawn into ~/.config/awesomestart
-- then remove the "$HOME/.config/awesomestart" line from the APPS array
'~/.config/awesome/configuration/awspawn > /dev/null'
-- You can add more start-up applications here
},
-- List of binaries/shell scripts that will execute for a certain task
utils = {
-- Hikari's screenshot utilities (requires ksnip to be installed)
screenshot = utils_dir .. 'screenshot -m -s',
region_screenshot = utils_dir .. 'screenshot -r -s',
delayed_screenshot = utils_dir .. 'screenshot -d 5 -c -r -s',
ss_and_edit_screenshot = utils_dir .. 'screenshot -r',
-- Other screenshot utilities using maim
-- Fullscreen screenshot
full_screenshot = utils_dir .. 'snap full',
-- Area screenshot
area_screenshot = utils_dir .. 'snap area',
-- Emoji keyboard toggle script
-- (edit the script inside ~/.config/awesome/utilities to use your keyboard layout settings!)
-- Requires: ibus and uniemoji to be installed
emoji_toggle = utils_dir .. 'emoji-toggle',
-- Update profile picture
update_profile = utils_dir .. 'profile-image'
}
}