mirror of
https://github.com/mrfluffy-dev/dotfiles.git
synced 2026-01-17 05:40:34 +00:00
removed Region data_type
This commit is contained in:
@@ -8,9 +8,9 @@ use penrose::{
|
||||
},
|
||||
core::{
|
||||
config::Config,
|
||||
data_types::RelativePosition,
|
||||
helpers::index_selectors,
|
||||
hooks::Hook,
|
||||
data_types::{Region,RelativePosition},
|
||||
layout::{side_stack, Layout, LayoutConf},
|
||||
manager::WindowManager,
|
||||
xconnection::XConn,
|
||||
@@ -31,8 +31,7 @@ impl<X: XConn> Hook<X> for StartupHook {
|
||||
fn startup(&mut self, wm: &mut WindowManager<X>) -> Result<()> {
|
||||
if wm.n_screens() == 1 {
|
||||
spawn!("polybar --reload barbase2")
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
spawn!("polybar --reload barbase1");
|
||||
spawn!("polybar --reload barbase2")
|
||||
};
|
||||
@@ -42,7 +41,6 @@ impl<X: XConn> Hook<X> for StartupHook {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
struct Monitors {}
|
||||
impl<X> Hook<X> for Monitors
|
||||
where
|
||||
@@ -52,16 +50,12 @@ where
|
||||
update_monitors_via_xrandr("HDMI-A-0", "eDP", RelativePosition::Left);
|
||||
if wm.n_screens() != 1 {
|
||||
spawn!("polybar --reload barbase1")
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
spawn!("echo 'Only one screen connected'")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
fn main() -> penrose::Result<()> {
|
||||
// Initialise the logger (use LevelFilter::Debug to enable debug logging)
|
||||
if let Err(e) = SimpleLogger::init(LevelFilter::Info, simplelog::Config::default()) {
|
||||
@@ -76,9 +70,6 @@ fn main() -> penrose::Result<()> {
|
||||
sp.get_hook(),
|
||||
];
|
||||
|
||||
|
||||
|
||||
|
||||
// Created at startup. See keybindings below for how to access them
|
||||
let mut config_builder = Config::default().builder();
|
||||
config_builder
|
||||
@@ -119,7 +110,7 @@ fn main() -> penrose::Result<()> {
|
||||
"A-k" => run_internal!(cycle_client, Backward);
|
||||
"A-S-j" => run_internal!(drag_client, Forward);
|
||||
"A-S-k" => run_internal!(drag_client, Backward);
|
||||
"A-S-f" => run_internal!(toggle_client_fullscreen, &Selector::Focused);
|
||||
"A-t" => run_internal!(toggle_client_fullscreen, &Selector::Focused);
|
||||
"A-q" => run_internal!(kill_client);
|
||||
|
||||
// workspace management
|
||||
|
||||
Reference in New Issue
Block a user