Migrate to ulauncher and wlogout

pull/1/head
Ensar Sarajčić 2021-03-09 18:39:56 +01:00
parent 6c65751dfc
commit aa52c23a50
22 changed files with 140 additions and 135 deletions

View File

@ -1,9 +1,7 @@
azote
bitwarden-bin
libspotify
nerd-fonts-source-code-pro
nwg-launchers
python-pyspotify
slack-desktop
spotify
todoist-electron
todoist-appimage
ulauncher

View File

@ -18,9 +18,7 @@ flex
gcc
git
gnome-themes-extra
grub
gtk-chtheme
intel-ucode
kdeconnect
libtool
linux
@ -33,9 +31,7 @@ mesa
ncmpcpp
neovim
newsboat
ntfs-3g
openssh
os-prober
patch
pkgconf
pulseaudio
@ -43,7 +39,6 @@ pulseaudio-alsa
python-pip
python2
python2-pip
ranger
sudo
sway
swayidle

View File

@ -1 +0,0 @@
org.jetbrains.kotlin

View File

@ -1,5 +1,11 @@
<code_scheme name="Default" version="173">
<JetCodeStyleSettings>
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</JetCodeStyleSettings>
<ScalaCodeStyleSettings>
<option name="MULTILINE_STRING_CLOSING_QUOTES_ON_NEW_LINE" value="true" />
</ScalaCodeStyleSettings>
<codeStyleSettings language="kotlin">
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</codeStyleSettings>
</code_scheme>

View File

@ -1,6 +1,6 @@
<application>
<component name="DefaultFont">
<option name="FONT_SIZE" value="13" />
<option name="FONT_FAMILY" value="SauceCodePro Nerd Font" />
<option name="FONT_FAMILY" value="SauceCodePro Nerd Font Mono" />
</component>
</application>

View File

@ -0,0 +1,5 @@
<application>
<component name="UISettings">
<option name="OVERRIDE_NONIDEA_LAF_FONTS" value="true" />
</component>
</application>

View File

@ -28,7 +28,7 @@ vim.g.dap_virtual_text = true
-- Keymaps
local function set_keymap(...) vim.api.nvim_set_keymap(...) end
default_opts = {noremap = true, silent = true}
local default_opts = {noremap = true, silent = true}
set_keymap('n', '<Leader>db', "<cmd>lua require'dap'.toggle_breakpoint()<CR>", default_opts)
set_keymap('n', '<Leader>dc', "<cmd>lua require'dap'.continue()<CR>", default_opts)
set_keymap('n', '<Leader>dso', "<cmd>lua require'dap'.step_over()<CR>", default_opts)

View File

@ -1,22 +0,0 @@
[
{
"name": "Lock screen",
"exec": "~/bin/lockscreen",
"icon": "system-lock-screen"
},
{
"name": "Logout",
"exec": "swaymsg exit",
"icon": "system-log-out"
},
{
"name": "Reboot",
"exec": "systemctl reboot",
"icon": "system-reboot"
},
{
"name": "Shutdown",
"exec": "systemctl -i poweroff",
"icon": "system-shutdown"
}
]

View File

@ -1,28 +0,0 @@
#bar {
margin: 30px /* affects top/bottom & left/right alignment */
}
button, image {
background: none;
border-style: none;
box-shadow: none;
color: #999
}
button {
padding-left: 10px;
padding-right: 10px;
margin: 5px
}
button:hover {
background-color: rgba (255, 255, 255, 0.1)
}
button:focus {
box-shadow: 0 0 2px;
}
grid {
/* e.g. for common background to all buttons */
}

View File

@ -1,22 +0,0 @@
/* Don't delete, just in case: the menu anchor is a button */
button {
background: none;
border-style: none;
box-shadow: none;
}
box {
/* Uncomment to set vertical margin
margin-top: 30px;
margin-bottom: 30px;
*/
}
#searchbox {
/* Adjust to your taste */
}
/* Menu items */
label {
padding-left: 5px
}

View File

@ -1,39 +0,0 @@
button, label, image {
background: none;
border-style: none;
box-shadow: none;
color: #999;
}
button {
padding: 5px;
margin: 5px
}
button:hover {
background-color: rgba (255, 255, 255, 0.1);
}
button:focus {
box-shadow: 0 0 2px;
}
#searchbox {
background: none;
border-color: #999;
color: #ccc;
margin-top: 20px;
margin-bottom: 20px
}
#separator {
background-color: rgba(200, 200, 200, 0.5);
margin-left: 500px;
margin-right: 500px;
margin-top: 10px;
margin-bottom: 10px
}
#description {
margin-bottom: 20px
}

View File

@ -1 +0,0 @@
alacritty -e

View File

@ -1,6 +1,6 @@
# Main tools mapping
set $term alacritty
set $menu "wofi -G -modi drun,run --show drun"
set $menu "ulauncher"
set $filemanager thunar
set $processviewer $term -e htop

View File

@ -5,5 +5,6 @@ bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioStop exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous

View File

@ -1,6 +1,5 @@
# Read `man 5 sway` for a complete reference.
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
exec ~/.azotebg
# Font for window titles. Will also be used by the bar unless a different font
@ -21,6 +20,7 @@ for_window [window_role="Preferences"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable
for_window [window_role="About"] floating enable
for_window [app_id="ulauncher"] border none
include ~/.config/sway/conf.d/*
include /etc/sway/config.d/*

View File

@ -0,0 +1 @@
{}

View File

@ -0,0 +1,11 @@
{
"blacklisted-desktop-dirs": "/usr/share/locale:/usr/share/app-install:/usr/share/kservices5:/usr/share/fk5:/usr/share/kservicetypes5:/usr/share/applications/screensavers:/usr/share/kde4:/usr/share/mimelnk",
"clear-previous-query": true,
"grab-mouse-pointer": false,
"hotkey-show-app": "Super_Lspace",
"render-on-screen": "mouse-pointer-monitor",
"show-indicator-icon": true,
"show-recent-apps": "0",
"terminal-command": "",
"theme-name": "dark"
}

View File

@ -0,0 +1,22 @@
{
"feb919a9-ec3f-41dd-8cee-07be86cc0901": {
"id": "feb919a9-ec3f-41dd-8cee-07be86cc0901",
"name": "Stack Overflow",
"keyword": "so",
"cmd": "http://stackoverflow.com/search?q=%s",
"icon": "/usr/share/ulauncher/media/stackoverflow-icon.svg",
"is_default_search": true,
"run_without_argument": false,
"added": 1615309537.084131
},
"a61d5cbd-4e61-45ff-ae0e-a08e8f9242f5": {
"id": "a61d5cbd-4e61-45ff-ae0e-a08e8f9242f5",
"name": "Wikipedia",
"keyword": "wiki",
"cmd": "https://en.wikipedia.org/wiki/%s",
"icon": "/usr/share/ulauncher/media/wikipedia-icon.png",
"is_default_search": true,
"run_without_argument": false,
"added": 1615309537.0841668
}
}

View File

@ -39,8 +39,7 @@
"battery",
"tray",
"idle_inhibitor",
"custom/power-menu",
"custom/apps-menu"
"custom/power-menu"
],
@ -190,12 +189,6 @@
"custom/power-menu": {
"tooltip": false,
"format": "",
"on-click": "nwgbar"
"on-click": "wlogout"
},
"custom/apps-menu": {
"tooltip": false,
"format": "﩯",
"on-click": "nwggrid"
}
}

View File

@ -0,0 +1,36 @@
{
"label" : "lock",
"action" : "~/bin/lockscreen",
"text" : "Lock screen",
"keybind" : "l"
}
{
"label" : "hibernate",
"action" : "systemctl hibernate",
"text" : "Hibernate",
"keybind" : "h"
}
{
"label" : "logout",
"action" : "swaymsg exit",
"text" : "Logout",
"keybind" : "e"
}
{
"label" : "shutdown",
"action" : "systemctl poweroff",
"text" : "Shutdown",
"keybind" : "s"
}
{
"label" : "suspend",
"action" : "systemctl suspend",
"text" : "Suspend",
"keybind" : "u"
}
{
"label" : "reboot",
"action" : "systemctl reboot",
"text" : "Reboot",
"keybind" : "r"
}

View File

@ -0,0 +1,44 @@
* {
background-image: none;
}
window {
background-color: rgba(12, 12, 12, 0.5);
}
button {
color: #FFFFFF;
background-color: #1E1E1E;
border-style: solid;
border-width: 2px;
background-repeat: no-repeat;
background-position: center;
background-size: 25%;
}
button:focus, button:active, button:hover {
background-color: #3700B3;
outline-style: none;
}
#lock {
background-image: image(url("/usr/share/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png"));
}
#logout {
background-image: image(url("/usr/share/wlogout/icons/logout.png"), url("/usr/local/share/wlogout/icons/logout.png"));
}
#suspend {
background-image: image(url("/usr/share/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png"));
}
#hibernate {
background-image: image(url("/usr/share/wlogout/icons/hibernate.png"), url("/usr/local/share/wlogout/icons/hibernate.png"));
}
#shutdown {
background-image: image(url("/usr/share/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png"));
}
#reboot {
background-image: image(url("/usr/share/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png"));
}

View File

@ -10,6 +10,9 @@ set ideajoin
set idearefactormode=keep
" IdeaVIM mappings
nnoremap [c :action VcsShowPrevChangeMarker<cr>
nnoremap ]c :action VcsShowNextChangeMarker<cr>
nnoremap <C-P> :action SearchEverywhere<CR>
nnoremap gd :action GotoDeclaration<CR>
nnoremap gi :action GotoImplementation<CR>
@ -21,6 +24,9 @@ nnoremap <leader>tf :action RunClass<CR>
inoremap <C-K> :action ParameterInfo<CR>
nnoremap <C-K> :action ParameterInfo<CR>
nnoremap <leader>db :action ToggleLineBreakpoint<CR>
nnoremap <leader>dc :action ChooseDebugConfiguration<CR>
nnoremap <leader>ac :action ShowIntentionActions<CR>
command! Start action Run